[asterisk-commits] crichter: branch 1.2 r73207 - /branches/1.2/channels/chan_misdn.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 4 03:20:54 CDT 2007


Author: crichter
Date: Wed Jul  4 03:20:54 2007
New Revision: 73207

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73207
Log:
bad bug in overlapdial case, we called start_pbx multiple times, because the state wasn't changed..

Modified:
    branches/1.2/channels/chan_misdn.c

Modified: branches/1.2/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_misdn.c?view=diff&rev=73207&r1=73206&r2=73207
==============================================================================
--- branches/1.2/channels/chan_misdn.c (original)
+++ branches/1.2/channels/chan_misdn.c Wed Jul  4 03:20:54 2007
@@ -3721,6 +3721,8 @@
 				if (ast_exists_extension(ch->ast, ch->context, "i", 1, bc->oad)) {
 					ast_log(LOG_WARNING, "Extension can never match, So jumping to 'i' extension. port(%d)\n",bc->port);
 					strcpy(ch->ast->exten, "i");
+
+					ch->state = MISDN_DIALING;
 					start_pbx(ch, bc, ch->ast);
 					break;
 				}
@@ -3749,8 +3751,11 @@
 				break;
 			}
 
-			if (ast_exists_extension(ch->ast, ch->context, bc->dad, 1, bc->oad)) 
+			if (ast_exists_extension(ch->ast, ch->context, bc->dad, 1, bc->oad))  {
+				
+				ch->state = MISDN_DIALING;
 				start_pbx(ch, bc, ch->ast);
+			}
 		} else {
 			/*  sending INFOS as DTMF-Frames :) */
 			struct ast_frame fr;




More information about the asterisk-commits mailing list