Problem: Bindport and register port

Hi all,

My asterisk (1.6.0) binds on 5060 (bindport=5060 in sip.conf) and it has a registration to an ITSP on port 5061 (register => UUU:PPP@:5061/UUU).
I don’t know why asterisk sends the REGISTER packet with the contact port 5061 instead of 5060:

U <MY_ASTERISK>:5060 -> :5061
REGISTER sip::5061 SIP/2.0.
Via: SIP/2.0/UDP <MY_ASTERISK>:5060;branch=zbK190c51b2;rport.
Max-Forwards: 70.
From: <sip:UUU:PPP@>;tag=as74befb19.
To: <sip:UUU:PPP@>.
Call-ID: 677b2a8901cf26ace2d5053d6ccd@<MY_ASTERISK>.
CSeq: 102 REGISTER.
User-Agent: Asterisk
Expires: 120.
Contact: sip:s@MY_ASTERISK:5061. <<------
Event: registration.
Content-Length: 0.
.

Why “Contact: sip:s@MY_ASTERISK:5061”??
This is a problem because ITSP sends INVITE to MY_ASTERISK on port 5061 instead of 5060…

Can you help me? Is a misconfiguration or a BUG?

Thanks

can you Post your sip.conf

Thanks,
Agni

Sure, my configuration is very simple:

;
; SIP.conf
;
[general]
context=default
allowoverlap=no
realm=asterisk
bindport=5060
bindaddr=<MY_ASTERISK>
tcpenable=no
srvlookup=yes
useragent=Asterisk
dtmfmode = auto
disallow=all
allow=gsm

register => UUU:PPP@:5061/UUU

I don’t remember very well, but I think that asterisk 1.4 sends the REGISTER packet with contact port 5060…

Best Regards

Has Anybody tried this configuration in asterisk 1.6 or 1.4?

Can you give me some suggestion?

Thanks!

I would like to know only if it is a BUG in asterisk 1.6.0 or a misconfiguration problem…

Thanks!

Ok, I’ve just upgraded to asterisk 1.6.1beta2 and the problem has been solved…

Regards