Summary:ASTERISK-12539: Registering asterisk to other port apart from by default 5060 port
Reporter:destiny6628 (destiny6628)Labels:
Date Opened:2008-08-08 02:15:05Date Closed:2011-06-07 14:07:25
Versions:Frequency of

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 #1 (no NAT) to
Via: SIP/2.0/UDP;branch=z9hG4bK58dcb721;rport
From: <sip:052231881@>;tag=as1aa8835b
To: <sip:052231881@>
Call-ID: 0e63f0cf6f16b67e37a465c64a7d24da@
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: <sip:052231881@>
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;branch=z9hG4bK58dcb721;rport



I have spoken to the providers as well , they have the problem with this request URI

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

We are using asterisk-

register => 052241881:4827@

This is the register line i am using .

Comments:By: Mark Michelson (mmichelson) 2008-08-08 17:22:40

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.

By: destiny6628 (destiny6628) 2008-08-11 04:51:05


Yes you are absolutely correct and this defintely violation of RFC3261.

bind port in the meanwhile time worked.

Thanks for the prompt response .

By: Mark Michelson (mmichelson) 2008-08-17 17:34:30

All right, then I'm going to close this since this is definitely an issue with your provider and not Asterisk.