[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 Oct 6 11:41:15 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13343 
====================================================================== 
Reported By:                efutch
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13343
Category:                   Channels/chan_local
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
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-10-06 11:41 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
====================================================================== 

---------------------------------------------------------------------- 
 (0093233) svnbot (reporter) - 2008-10-06 11:41
 http://bugs.digium.com/view.php?id=13343#c93233 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 146711

U   branches/1.4/channels/chan_local.c

------------------------------------------------------------------------
r146711 | tilghman | 2008-10-06 11:41:14 -0500 (Mon, 06 Oct 2008) | 9
lines

Check whether an extension exists in the _call method, rather than the
_alloc
method, because we need to evaluate the callerid (since that data affects
whether an extension exists).
(closes issue http://bugs.digium.com/view.php?id=13343)
 Reported by: efutch
 Patches: 
       20080915__bug13343.diff.txt uploaded by Corydon76 (license 14)
 Tested by: efutch

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-06 11:41 svnbot         Checkin                                      
2008-10-06 11:41 svnbot         Note Added: 0093233                          
======================================================================




More information about the asterisk-bugs mailing list