[asterisk-bugs] [Asterisk 0017040]: [patch] Explicit context set in SIP peer overridden by default domain context

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 14 19:10:30 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17040 
====================================================================== 
Reported By:                pprindeville
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17040
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.6.2.6 
JIRA:                       https://reviewboard.asterisk.org/r/565/ 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-03-16 12:19 CDT
Last Modified:              2010-04-14 19:10 CDT
====================================================================== 
Summary:                    [patch] Explicit context set in SIP peer overridden
by default domain context
Description: 
I'm running a couple of different internal domains in a multi-tenant
configuration.  SIP phones (SPA-942's and PAP2T's) register in their
respective domains, but have explicit contexts set per peer-definition (for
instance, the Fax hanging off the PAP2T can only 7 and 10-digit dial... it
has no international and no internal extensions).

In trying to support E.164 (ENUM) dialling, we tried to enable incoming
SIP calls to the domains by specifying a default context for each domain,
e.g.

domain=redfish-solutions.com,redfish-internet

in the configuration snippet below.  Unfortunately, doing this also puts
all of the internal SIP phones registering in that domain into the
redfish-internet context as well, which is neither desirable nor
intuitive.

I posit that the proper behavior is to always use the "context=..."
specified in a [peer] SIP definition when present, and fallback on the
domain-associated context only when it isn't present.

Summary:

If "domain=redfish-solutions.com,redfish-internet" is commented out, then
calls made by "lab_1" use the [redfish-internal] context.  If it's
uncommented, then "lab_1" uses the [redfish-internet] context (making it
indistinguishable from an outside SIP caller [or hacker]).

====================================================================== 

---------------------------------------------------------------------- 
 (0120438) pprindeville (reporter) - 2010-04-14 19:10
 https://issues.asterisk.org/view.php?id=17040#c120438 
---------------------------------------------------------------------- 
https://reviewboard.asterisk.org/r/565/ 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-14 19:10 pprindeville   Note Added: 0120438                          
======================================================================




More information about the asterisk-bugs mailing list