[asterisk-bugs] [Asterisk 0013355]: Dial(SIP/exten at host:port) ignores port

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 27 11:10:01 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13355 
====================================================================== 
Reported By:                acunningham
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   13355
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.4.21.1 
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-21 09:02 CDT
Last Modified:              2008-08-27 11:10 CDT
====================================================================== 
Summary:                    Dial(SIP/exten at host:port) ignores port
Description: 
If you do a Dial to a non-standard port, for example:

Dial(SIP/conference at 1.2.3.4:5070)

the port (5070) is ignored by Asterisk.
====================================================================== 

---------------------------------------------------------------------- 
 (0091806) putnopvut (administrator) - 2008-08-27 11:10
 http://bugs.digium.com/view.php?id=13355#c91806 
---------------------------------------------------------------------- 
acunningham: I see what you're saying, but I do see a potential downside.
If we attempt to match a peer based on both the name and port, and come up
with no match, then Asterisk will route the call the the IP address and
port specified in the Dial string. The problem is that if this occurs, then
none of the settings in sip.conf for that peer will be applied for the
call. While this may not be a problem for your setup, it could cause
problems for others.

My idea for a change was a bit simpler. If a port is specified in the
string to Dial, never ignore it and always route calls to that destination
port, no matter what may be listed in sip.conf. This way, you would still
get your peer settings for the call but it would routed to the port that
was specified in Dial. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-27 11:10 putnopvut      Note Added: 0091806                          
======================================================================




More information about the asterisk-bugs mailing list