[asterisk-bugs] [Asterisk 0013258]: Registering asterisk to other port apart from by default 5060 port

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 8 17:22:41 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13258 
====================================================================== 
Reported By:                destiny6628
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13258
Category:                   Applications/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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-08 02:15 CDT
Last Modified:              2008-08-08 17:22 CDT
====================================================================== 
Summary:                    Registering asterisk to other port apart from by
default 5060 port
Description: 
Hi 

I am trying to register a user id based and password account on asterisk
of net4india but on 2345 port apart from by default SIP port 5060 .

But i am unable to register on same because of the following reason 

Retransmitting http://bugs.digium.com/view.php?id=1 (no NAT) to
202.71.134.13:2345:
REGISTER sip:202.71.134.13:2345 SIP/2.0
Via: SIP/2.0/UDP 220.227.2.234:5060;branch=z9hG4bK58dcb721;rport
From: <sip:052231881 at 202.71.134.13>;tag=as1aa8835b
To: <sip:052231881 at 202.71.134.13>
Call-ID: 0e63f0cf6f16b67e37a465c64a7d24da at 127.0.0.1
CSeq: 117 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: <sip:052231881 at 220.227.2.234>
Event: registration
Content-Length: 0


The problem i can see instead of sending the request on another port 2345
its still taking the port 5060 in 

Via: SIP/2.0/UDP 220.227.2.234:5060;branch=z9hG4bK58dcb721;rport

.
====================================================================== 

---------------------------------------------------------------------- 
 (0091246) putnopvut (administrator) - 2008-08-08 17:22
 http://bugs.digium.com/view.php?id=13258#c91246 
---------------------------------------------------------------------- 
It appears that Asterisk is sending the REGISTER on the port that you
specified. If the provider is complaining because you are expecting to
receive the response to the REGISTER on a specific port, then the provider
is in violation of RFC 3261. The RFC is clear that responses must be sent
to the same host and port from which the request was sent.

I may be misunderstanding the problem (or it may be that Asterisk is not
actually sending the request to port 2345 as it claims). Can you provide a
packet capture of the problem so that we can verify that Asterisk is
sending the request to the proper port and that the provider is sending the
response to the same place from which the request was sent?

If the provider claims that you have to receive SIP traffic on port 2345,
then you can get around their non-compliance by setting bindport=2345 in
sip.conf. The problem with this is that you will have to either set all of
your phones to also send their SIP signaling to Asterisk on port 2345 or
you will have to set up a proxy on port 5060 which relays the traffic to
Asterisk on port 2345.

If I have misunderstood the problem, please let me know. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-08 17:22 putnopvut      Note Added: 0091246                          
======================================================================




More information about the asterisk-bugs mailing list