[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
Mon Sep 15 17:01:29 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-09-15 17:01 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
====================================================================== 

---------------------------------------------------------------------- 
 (0092538) Corydon76 (administrator) - 2008-09-15 17:01
 http://bugs.digium.com/view.php?id=13343#c92538 
---------------------------------------------------------------------- 
The only logical thing I can think of to do would be to remove the
optimization completely where we check that the extension exists, since we
won't know what the callerid will be until later on in the call process.

Would this change solve your issue? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-15 17:01 Corydon76      Note Added: 0092538                          
======================================================================




More information about the asterisk-bugs mailing list