[Asterisk-cvs] asterisk/apps app_macro.c,1.11,1.12

markster at lists.digium.com markster at lists.digium.com
Thu Mar 4 01:06:50 CST 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv32017/apps

Modified Files:
	app_macro.c 
Log Message:
Copy old extension unless it's ASYNCGOTO (bug #1141)


Index: app_macro.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_macro.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- app_macro.c	21 Aug 2003 23:26:13 -0000	1.11
+++ app_macro.c	4 Mar 2004 05:57:47 -0000	1.12
@@ -202,7 +202,7 @@
   	/* If we're leaving the macro normally, restore original information */
 	chan->priority = oldpriority;
 	strncpy(chan->context, oldcontext, sizeof(chan->context) - 1);
-	if (!chan->_softhangup) {
+	if (!(chan->_softhangup & AST_SOFTHANGUP_ASYNCGOTO)) {
 		/* Copy the extension, so long as we're not in softhangup, where we could be given an asyncgoto */
 		strncpy(chan->exten, oldexten, sizeof(chan->exten) - 1);
 		if ((offsets = pbx_builtin_getvar_helper(chan, "MACRO_OFFSET"))) {




More information about the svn-commits mailing list