[asterisk-commits] file: trunk r103319 - /trunk/res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Feb 11 12:29:19 CST 2008


Author: file
Date: Mon Feb 11 12:29:18 2008
New Revision: 103319

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103319
Log:
Remove ast_module_user usage from res_agi. This is taken care of in the core.

Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?view=diff&rev=103319&r1=103318&r2=103319
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Mon Feb 11 12:29:18 2008
@@ -2866,7 +2866,6 @@
 static int agi_exec_full(struct ast_channel *chan, void *data, int enhanced, int dead)
 {
 	enum agi_result res;
-	struct ast_module_user *u;
 	char buf[AGI_BUF_LEN] = "", *tmp = buf;
 	int fds[2], efd = -1, pid;
 	AST_DECLARE_APP_ARGS(args,
@@ -2884,15 +2883,11 @@
 	memset(&agi, 0, sizeof(agi));
 	AST_STANDARD_APP_ARGS(args, tmp);
 	args.argv[args.argc] = NULL;
-
-	u = ast_module_user_add(chan);
 #if 0
 	 /* Answer if need be */
 	if (chan->_state != AST_STATE_UP) {
-		if (ast_answer(chan)) {
-			ast_module_user_remove(u);
+		if (ast_answer(chan))
 			return -1;
-		}
 	}
 #endif
 	res = launch_script(chan, args.argv[0], args.argv, fds, enhanced ? &efd : NULL, &pid);
@@ -2914,7 +2909,6 @@
 			close(efd);
 		ast_unreplace_sigchld();
 	} 
-	ast_module_user_remove(u);
 
 	switch (res) {
 	case AGI_RESULT_SUCCESS:




More information about the asterisk-commits mailing list