[asterisk-commits] file: branch 1.2 r73318 - /branches/1.2/channels/chan_local.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 5 08:26:02 CDT 2007


Author: file
Date: Thu Jul  5 08:26:02 2007
New Revision: 73318

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73318
Log:
Actually check to make sure a PBX was started on one of the Local channels instead of blindly assuming it was. (issue #10112 reported by makoto)

Modified:
    branches/1.2/channels/chan_local.c

Modified: branches/1.2/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_local.c?view=diff&rev=73318&r1=73317&r2=73318
==============================================================================
--- branches/1.2/channels/chan_local.c (original)
+++ branches/1.2/channels/chan_local.c Thu Jul  5 08:26:02 2007
@@ -391,10 +391,10 @@
 		}
 	}
 
-	p->launchedpbx = 1;
-
 	/* Start switch on sub channel */
-	res = ast_pbx_start(p->chan);
+	if (!(res = ast_pbx_start(p->chan)))
+		p->launchedpbx = 1;
+
 	ast_mutex_unlock(&p->lock);
 	return res;
 }




More information about the asterisk-commits mailing list