[asterisk-commits] tilghman: trunk r88209 - /trunk/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 2 07:54:32 CDT 2007


Author: tilghman
Date: Fri Nov  2 07:54:31 2007
New Revision: 88209

URL: http://svn.digium.com/view/asterisk?view=rev&rev=88209
Log:
'h' extension doesn't execute past first priority
Reported by: dimas
Patch by: dimas
Closes bug #11146

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=88209&r1=88208&r2=88209
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Fri Nov  2 07:54:31 2007
@@ -2660,7 +2660,7 @@
 		if (c->cdr && ast_opt_end_cdr_before_h_exten)
 			ast_cdr_end(c->cdr);
 		set_ext_pri(c, "h", 1);
-		while ((res = ast_spawn_extension(c, c->context, c->exten, c->priority, c->cid.cid_num, &found,1))) {
+		while ((res = ast_spawn_extension(c, c->context, c->exten, c->priority, c->cid.cid_num, &found, 1)) == 0) {
 			c->priority++;
 		}
 		if (found && res) {




More information about the asterisk-commits mailing list