[asterisk-commits] file: trunk r54925 - in /trunk: ./ apps/app_dial.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 16 11:53:18 MST 2007


Author: file
Date: Fri Feb 16 12:53:17 2007
New Revision: 54925

URL: http://svn.digium.com/view/asterisk?view=rev&rev=54925
Log:
Merged revisions 54924 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r54924 | file | 2007-02-16 13:51:15 -0500 (Fri, 16 Feb 2007) | 2 lines

Need to check macro extension as well as macro context for directed pickup.

........

Modified:
    trunk/   (props changed)
    trunk/apps/app_dial.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dial.c?view=diff&rev=54925&r1=54924&r2=54925
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Fri Feb 16 12:53:17 2007
@@ -1397,7 +1397,10 @@
 			ast_copy_string(tc->dialcontext, chan->macrocontext, sizeof(tc->dialcontext));
 		else
 			ast_copy_string(tc->dialcontext, chan->context, sizeof(tc->dialcontext));
-		ast_copy_string(tc->exten, chan->exten, sizeof(tc->exten));
+		if (!ast_strlen_zero(chan->macroexten))
+			ast_copy_string(tc->exten, chan->macroexten, sizeof(tc->exten));
+		else
+			ast_copy_string(tc->exten, chan->exten, sizeof(tc->exten));
 
 		res = ast_call(tc, numsubst, 0);	/* Place the call, but don't wait on the answer */
 



More information about the asterisk-commits mailing list