[asterisk-commits] file: trunk r196117 - in /trunk: ./ channels/chan_misdn.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 22 08:56:51 CDT 2009


Author: file
Date: Fri May 22 08:56:47 2009
New Revision: 196117

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

........
  r196116 | file | 2009-05-22 10:54:17 -0300 (Fri, 22 May 2009) | 5 lines
  
  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:
    trunk/   (props changed)
    trunk/channels/chan_misdn.c

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

Modified: trunk/channels/chan_misdn.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_misdn.c?view=diff&rev=196117&r1=196116&r2=196117
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Fri May 22 08:56:47 2009
@@ -8171,8 +8171,9 @@
 
 	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 asterisk-commits mailing list