[svn-commits] file: branch 1.4 r196116 - /branches/1.4/channels/chan_misdn.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri May 22 08:54:21 CDT 2009


Author: file
Date: Fri May 22 08:54:17 2009
New Revision: 196116

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=196116
Log:
Fix a bug where using immediate with mISDN caused a cause code of 16 to get sent back instead of 1 if the 's' extension did not exist.

(closes issue #12286)
Reported by: lmamane

Modified:
    branches/1.4/channels/chan_misdn.c

Modified: branches/1.4/channels/chan_misdn.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/channels/chan_misdn.c?view=diff&rev=196116&r1=196115&r2=196116
==============================================================================
--- branches/1.4/channels/chan_misdn.c (original)
+++ branches/1.4/channels/chan_misdn.c Fri May 22 08:54:17 2009
@@ -3785,9 +3785,10 @@
 	chan_misdn_log(1, bc->port, "* Starting Ast ctx:%s dad:%s oad:%s with 's' extension\n", ast->context, ast->exten, ast->cid.cid_num);
   
 	strcpy(ast->exten, "s");
-  
-	if (pbx_start_chan(ch) < 0) {
+ 
+	if (!ast_canmatch_extension(ast, ast->context, ast->exten, 1, bc->oad) || pbx_start_chan(ch) < 0) {
 		ast = NULL;
+		bc->out_cause = AST_CAUSE_UNALLOCATED;
 		hangup_chan(ch);
 		hanguptone_indicate(ch);
 




More information about the svn-commits mailing list