SIP registration problem with asterisk 1.2.xx

To register with my SIP provider, I need to configure the SIP port to [color=red]5065[/color].

in sip.conf
register => 1XXXXXXXXXX:xxxxxxxx@sip.babytel.ca:[color=red]5065 [/color]

in the asterisk console it’s show that the port is correctly set to 5065

asterisk -r

Connected to Asterisk 1.2.0 currently running on miller (pid = 10064)
miller*CLI> sip show registry
Host Username Refresh State
sip.babytel.ca:[color=red]5065[/color] 1XXXXXXXXXX 120 Request Sent

Aug 27 23:29:37 NOTICE[10080]: chan_sip.c:5267 sip_reg_timeout: – Registration for '1XXXXXXXXXX@sip.babytel.ca’ timed out, trying again (Attempt #1)

It did not want to register, so I did a tcpdump and it seem that the configured port is not used.

tcpdump -i eth1 host sip.babytel.ca

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
23:32:49.302965 IP 192.168.1.130.[color=red]5060[/color] > sip.babytel.ca.5060: SIP, length: 406
23:32:53.303343 IP 192.168.1.130.[color=red]5060[/color] > sip.babytel.ca.5060: SIP, length: 406
23:32:57.303990 IP 192.168.1.130.[color=red]5060[/color] > sip.babytel.ca.5060: SIP, length: 406
23:32:58.303810 IP 192.168.1.130.[color=red]5060[/color] > sip.babytel.ca.5060: SIP, length: 406
23:32:59.303880 IP 192.168.1.130.[color=red]5060[/color] > sip.babytel.ca.5060: SIP, length: 406

It used to work with asterisk 1.0.xx but now seems broken with 1.2.xx,
specifying the port # does not change the port it uses anymore, but since it show the good port in the “sip show registery” I was wondering if there is something that is not linked correctly in the chan_sip.c

run “sip debug” on the asterisk CLI.
Post the SIP information during the call.

ping sip.babytel.ca

PING sip.babytel.ca (216.18.125.7) 56(84) bytes of data.
64 bytes from sip.babytel.ca (216.18.125.7): icmp_seq=1 ttl=56 time=30.5 ms

Retransmitting #1 (NAT) to 216.18.125.7:[color=red]5060[/color]:
REGISTER sip:sip.babytel.ca SIP/2.0
Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bK5831560e;rport
From: sip:1XXXXXXXXXX@sip.babytel.ca;tag=as34ed5279
To: sip:1XXXXXXXXXX@sip.babytel.ca
Call-ID: 618faf8460afbbc75bcd7b4652c84245@sip.babytel.ca
CSeq: 108 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: sip:s@192.168.1.130
Event: registration
Content-Length: 0


Retransmitting #2 (NAT) to 216.18.125.7:[color=red]5060[/color]:
REGISTER sip:sip.babytel.ca SIP/2.0
Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bK4cd448d2;rport
From: sip:1XXXXXXXXXX@sip.babytel.ca;tag=as76534e1b
To: sip:1XXXXXXXXXX@sip.babytel.ca
Call-ID: 31a86146251df5db27c96a9e06cfa3db@sip.babytel.ca
CSeq: 2895 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: sip:s@192.168.1.130
Event: registration
Content-Length: 0


Retransmitting #2 (NAT) to 216.18.125.7:[color=red]5060[/color]:
REGISTER sip:sip.babytel.ca SIP/2.0
Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bK4385452e;rport
From: sip:1XXXXXXXXXX@sip.babytel.ca;tag=as43eb4519
To: sip:1XXXXXXXXXX@sip.babytel.ca
Call-ID: 608fcf8769afacd95bcc7c5346d84545@sip.babytel.ca
CSeq: 108 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: sip:s@192.168.1.130
Event: registration
Content-Length: 0


Aug 29 10:28:04 NOTICE[11764]: chan_sip.c:5267 sip_reg_timeout: – Registration for '1XXXXXXXXXX@sip.babytel.ca’ timed out, trying again (Attempt #9)
REGISTER 12 headers, 0 lines
Reliably Transmitting (NAT) to 216.18.125.7:[color=red]5060[/color]:
REGISTER sip:sip.babytel.ca SIP/2.0
Via: SIP/2.0/UDP 192.168.1.130:5060;branch=z9hG4bK2c38d057;rport
From: sip:1XXXXXXXXXX@sip.babytel.ca;tag=as522feab3
To: sip:1XXXXXXXXXX@sip.babytel.ca
Call-ID: 1a9da07871bbba2c65946f7b22693ff6@sip.babytel.ca
CSeq: 111 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: sip:s@192.168.1.130
Event: registration
Content-Length: 0


Destroying call '1a9da07871bbba2c65946f7b22693ff6@sip.babytel.ca
millerCLI> sip show registry
Host Username Refresh State
sip.babytel.ca:[color=blue]5065[/color] 1XXXXXXXXXX 120 Request Sent
miller
CLI> quit

[quote=“jeanb”]#…

Destroying call '1a9da07871bbba2c65946f7b22693ff6@sip.babytel.ca
millerCLI> sip show registry
Host Username Refresh State
sip.babytel.ca:[color=blue]5065[/color] 1XXXXXXXXXX 120 Request Sent
miller
CLI> quit[/quote]

Did you find any solution???
I have the same problem with my Sip provider.