static int app_vonferencecount_main(struct ast_channel* chan, const char* data) { int res ; struct ast_module_user *u ; u = ast_module_user_add(chan); // call count thread function res = count_exec( chan, data ) ; ast_module_user_remove(u); return res ; }
static int app_konferencecount_main(struct ast_channel* chan, ast_application_parameter data) { int res ; struct ast_module_user *u ; u = ast_module_user_add(chan); // call count thread function res = count_exec(chan, (const char *) data); ast_module_user_remove(u); return res ; }