[Home]

Summary:ASTERISK-11709: [patch] immediate=yes treats s extension differently than others: doesn't return cause code 1 if doesn't exist
Reporter:Lionel Elie Mamane (lmamane)Labels:
Date Opened:2008-03-24 04:30:10Date Closed:2009-05-22 08:59:49
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_misdn
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 12286.patch
Description:On a TE PTP port, configured with immediate=yes, when the base number is called and the "s" extension doesn't exist in the configured context, chan-misdn jumps into the dialplan anyway, triggering the Asterisk fallback to 'default' context machinery. If the "s" extension does not exist in the 'default' context either, chan-misdn returns ISDN cause code 16 (normal call clearing) to the caller.

In contrast, if an extension is called and it doesn't exist in the configured context, chan-misdn returns cause code 1 (that is, "this number is not allocated"), without any fallback to "s" or the 'default' context.

I think the behaviour should be consistent, and always the second one (cause code 1).

****** ADDITIONAL INFORMATION ******

I use asterisk 1.4.18, but I have checked in the trunk on the SVN web browser that the code that causes this behaviour is still present.

Patch attached, it is so short that I consider that no copyright meaningfully holds on it.
Comments:By: Digium Subversion (svnbot) 2009-05-22 08:54:17

Repository: asterisk
Revision: 196116

U   branches/1.4/channels/chan_misdn.c

------------------------------------------------------------------------
r196116 | file | 2009-05-22 08:54:17 -0500 (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 ASTERISK-11709)
Reported by: lmamane

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=196116

By: Digium Subversion (svnbot) 2009-05-22 08:56:48

Repository: asterisk
Revision: 196117

_U  trunk/
U   trunk/channels/chan_misdn.c

------------------------------------------------------------------------
r196117 | file | 2009-05-22 08:56:48 -0500 (Fri, 22 May 2009) | 12 lines

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 ASTERISK-11709)
 Reported by: lmamane
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=196117

By: Digium Subversion (svnbot) 2009-05-22 08:57:57

Repository: asterisk
Revision: 196118

_U  branches/1.6.0/
U   branches/1.6.0/channels/chan_misdn.c

------------------------------------------------------------------------
r196118 | file | 2009-05-22 08:57:57 -0500 (Fri, 22 May 2009) | 19 lines

Merged revisions 196117 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r196117 | file | 2009-05-22 10:56:47 -0300 (Fri, 22 May 2009) | 12 lines
 
 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 ASTERISK-11709)
   Reported by: lmamane
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=196118

By: Digium Subversion (svnbot) 2009-05-22 08:58:59

Repository: asterisk
Revision: 196119

_U  branches/1.6.1/
U   branches/1.6.1/channels/chan_misdn.c

------------------------------------------------------------------------
r196119 | file | 2009-05-22 08:58:58 -0500 (Fri, 22 May 2009) | 19 lines

Merged revisions 196117 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r196117 | file | 2009-05-22 10:56:47 -0300 (Fri, 22 May 2009) | 12 lines
 
 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 ASTERISK-11709)
   Reported by: lmamane
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=196119

By: Digium Subversion (svnbot) 2009-05-22 08:59:49

Repository: asterisk
Revision: 196120

_U  branches/1.6.2/
U   branches/1.6.2/channels/chan_misdn.c

------------------------------------------------------------------------
r196120 | file | 2009-05-22 08:59:49 -0500 (Fri, 22 May 2009) | 19 lines

Merged revisions 196117 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r196117 | file | 2009-05-22 10:56:47 -0300 (Fri, 22 May 2009) | 12 lines
 
 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 ASTERISK-11709)
   Reported by: lmamane
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=196120