diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-16 14:39:29 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-16 14:39:29 +0000 |
commit | d17ff1ea42571817d74962062410ca54a06b2053 (patch) | |
tree | 1236d574745c7d4d49bb3fb658e3a6bdd3e88a22 /apps/app_osplookup.c | |
parent | 9e24ed5ccff762fa9d412d1a1321df2de1b26423 (diff) |
Applications no longer need to call ast_module_user_add and ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75200 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_osplookup.c')
-rw-r--r-- | apps/app_osplookup.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c index ce1417ec9..dd75b57fd 100644 --- a/apps/app_osplookup.c +++ b/apps/app_osplookup.c @@ -1262,7 +1262,6 @@ static int ospauth_exec( void* data) { int res; - struct ast_module_user* u; const char* provider = OSP_DEF_PROVIDER; struct varshead* headp; struct ast_var_t* current; @@ -1279,11 +1278,8 @@ static int ospauth_exec( AST_APP_ARG(options); ); - u = ast_module_user_add(chan); - if (!(tmp = ast_strdupa(data))) { ast_log(LOG_ERROR, "Out of memory\n"); - ast_module_user_remove(u); return -1; } @@ -1332,8 +1328,6 @@ static int ospauth_exec( res = 0; } - ast_module_user_remove(u); - return res; } @@ -1348,7 +1342,6 @@ static int osplookup_exec( void* data) { int res, cres; - struct ast_module_user* u; const char* provider = OSP_DEF_PROVIDER; struct varshead* headp; struct ast_var_t* current; @@ -1371,11 +1364,8 @@ static int osplookup_exec( return -1; } - u = ast_module_user_add(chan); - if (!(tmp = ast_strdupa(data))) { ast_log(LOG_ERROR, "Out of memory\n"); - ast_module_user_remove(u); return -1; } @@ -1426,7 +1416,6 @@ static int osplookup_exec( ast_debug(1, "OSPLookup: source device '%s'\n", srcdev); if ((cres = ast_autoservice_start(chan)) < 0) { - ast_module_user_remove(u); return -1; } @@ -1498,7 +1487,6 @@ static int osplookup_exec( } if ((cres = ast_autoservice_stop(chan)) < 0) { - ast_module_user_remove(u); return -1; } @@ -1508,8 +1496,6 @@ static int osplookup_exec( res = 0; } - ast_module_user_remove(u); - return res; } @@ -1524,7 +1510,6 @@ static int ospnext_exec( void* data) { int res; - struct ast_module_user* u; const char* provider = OSP_DEF_PROVIDER; int cause = 0; struct varshead* headp; @@ -1546,11 +1531,8 @@ static int ospnext_exec( return -1; } - u = ast_module_user_add(chan); - if (!(tmp = ast_strdupa(data))) { ast_log(LOG_ERROR, "Out of memory\n"); - ast_module_user_remove(u); return -1; } @@ -1668,8 +1650,6 @@ static int ospnext_exec( res = 0; } - ast_module_user_remove(u); - return res; } @@ -1684,7 +1664,6 @@ static int ospfinished_exec( void* data) { int res = 1; - struct ast_module_user* u; int cause = 0; struct varshead* headp; struct ast_var_t* current; @@ -1702,11 +1681,8 @@ static int ospfinished_exec( AST_APP_ARG(options); ); - u = ast_module_user_add(chan); - if (!(tmp = ast_strdupa(data))) { ast_log(LOG_ERROR, "Out of memory\n"); - ast_module_user_remove(u); return -1; } @@ -1792,8 +1768,6 @@ static int ospfinished_exec( res = 0; } - ast_module_user_remove(u); - return res; } |