[asterisk-bugs] [Asterisk 0013343]: Local channel does not support exten/callerid style dialplan entries (ast_exists_extension placement).

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 27 12:29:50 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13343 
====================================================================== 
Reported By:                efutch
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13343
Category:                   Channels/chan_local
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-19 15:25 CDT
Last Modified:              2008-08-27 12:29 CDT
====================================================================== 
Summary:                    Local channel does not support exten/callerid style
dialplan entries (ast_exists_extension placement).
Description: 
local_alloc in chan_local.c calls ast_exists_extension before any CallerID
information for the local channel is populated.  Therefore, it cannot pass
the CallerID number to ast_exists_extensions like other channel techs do. 
So calls will not match the exten/callerid style dialplan entries like
these:
7002001234/_212NXXNXXXXX,1,Noop(Call from 212 area.)

Either the CallerID information should be populated before
ast_exists_extension in local_alloc is called, or the call to
ast_exists_extension to be placed somewhere after the CallerID information
is established in local_call.

This problem also seems to exist in 1.6, after quickly checking
chan_local.c
====================================================================== 

---------------------------------------------------------------------- 
 (0091822) efutch (reporter) - 2008-08-27 12:29
 http://bugs.digium.com/view.php?id=13343#c91822 
---------------------------------------------------------------------- 
More importantly, if you remove the fall through case "exten =>
7002001234,1,NoOp(General incoming call)" as you have it... the Dial will
fail because it doesn't match the "exten =>
7002001234/_212NXXXXXX,1,NoOp(Call from 212)" line properly. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-27 12:29 efutch         Note Added: 0091822                          
======================================================================




More information about the asterisk-bugs mailing list