[Home]

Summary:ASTERISK-06422: "sip show registry" shows an incorrect remote port when using "register => 2345:password@sip_proxy" syntax
Reporter:alexb (alexb)Labels:
Date Opened:2006-02-25 12:59:47.000-0600Date Closed:2006-03-27 17:35:54.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Registration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hi,

to register my Asterisk with a SIP provider I use the following syntax, as shown in the default sip.conf:

register => 2345:password@sip_proxy

where

[sip_proxy]
type=peer
context=from-messagenet
host=sip.messagenet.it
port=5061 <------------- please note this one!!!

5061 is provider's port I have to register to.

However, while "sip show registry" shows:
Host                  Username  Refresh State
sip_proxy:5060        *******       105 Registered
----------^^^^

"sip show peer sip_proxy" shows:
ToHost : sip.messagenet.it
Addr->IP : 212.97.59.76 Port 5061
-----------------------------^^^^

At a first glance I thought that Asterisk didn't care about the specified port value. I performed several tests and now I can state that Asterisk is correctly registered at remote port 5061 although 5060 is shown.

"sip show registry" indeed shows an incorrect and misleading information when using "register => 2345:password@sip_proxy".
Comments:By: Olle Johansson (oej) 2006-03-27 17:32:48.000-0600

Fixed in 1.2 rev 15376, trunk 15377.

Thanks for reporting this.