Can't use HKBN 2b

Comment on asterisk settings HKBN 2b
chandave
Joined: Sun 05 of Jun, 2005

Re: Can't use HKBN 2b

Posted:Thu 06 of Jul, 2006 (09:12 UTC)
Are you behind a D-Link Router? If so, the problem is that D-Link routers do not honor the source port when NATing outgoing packets. As a result, the information about how to reach you (in this case via UDP port 5060 at IP address 202.181.234.21) did not match what HKBN saw you use when communicating with them. As a result, HKBN will terminate the dialog. I have a work around for placing calls (requires a my modified chan_sip.so module) but I haven't finished the workaround for Registration. BTW, the workaround is to incorporate STUN support into Asterisk.

See ya...

d.c.
eddy
Joined: Wed 17 of May, 2006

Can't use HKBN 2b

Posted:Thu 06 of Jul, 2006 (04:28 UTC)
I'd register a new account in 2b in June2006. But I can't auth. from A@H box. The status is always at "Sent" only. I can't use it for in/out. Is that HKBN changed their login policy and I can't use another SIP client to login except the client program provided by them ?

CLI> sip show registry
Host Username Refresh State
s2hkbntel.net:5060 3xxxxxx9hk 120 Auth. Sent

When I try dialout 9xxxxxx2, the debug output is :
— Executing Dial("SIP/3881-ed32", "SIP/9xxxxxx2@hkbnline") in new stack
We're at 202.181.234.21 port 10038
Adding codec 0x8 (alaw) to SDP
Adding codec 0x2 (gsm) to SDP
13 headers, 9 lines
Reliably Transmitting (no NAT) to 203.80.89.135:5060:
INVITE sip:9xxxxxx2@s2hkbntel.net SIP/2.0
Via: SIP/2.0/UDP 202.181.234.21:5060;branch=z9hG4bK645b8836;rport
From: "Eddy Lai" <sip:3xxxxxx9hk@s2hkbntel.net>;tag=as60c5a249
To: <sip:9xxxxxx2@s2hkbntel.net>
Contact: <sip:3xxxxxx9hk@202.181.234.21>
Call-ID: 6d1babc9689c11ee41af6be322729c7c@s2hkbntel.net
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Thu, 06 Jul 2006 04:10:27 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 185

v=0
o=root 2686 2686 IN IP4 202.181.234.21
s=session
c=IN IP4 202.181.234.21
t=0 0
m=audio 10038 RTP/AVP 8 3
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=silenceSupp:off - - - -


— Called 9xxxxxx2@hkbnline
pbx*CLI>
<-- SIP read from 203.80.89.135:5060:
SIP/2.0 100 Trying
t: <sip:9xxxxxx2@s2hkbntel.net>
f: "Eddy Lai" <sip:3xxxxxx9hk@s2hkbntel.net>;tag=as60c5a249
i: 6d1babc9689c11ee41af6be322729c7c@s2hkbntel.net
CSeq: 102 INVITE
v: SIP/2.0/UDP 202.181.234.21:5060;rport;branch=z9hG4bK645b8836
Server: MCS5x00_3.0
k: com.nortelnetworks.firewall,p-3rdpartycontrol,nosec
l: 0



pbx*CLI>
<-- SIP read from 203.80.89.135:5060:
SIP/2.0 487 Request Terminated
t: <sip:90338862@s2hkbntel.net>;tag=451488082
f: "Eddy Lai" <sip:3xxxxxx9@s2hkbntel.net>;tag=as60c5a249
i: 6d1babc9689c11ee41af6be322729c7c@s2hkbntel.net
CSeq: 102 INVITE
v: SIP/2.0/UDP 202.181.234.21:5060;rport;branch=z9hG4bK645b8836
k: com.nortelnetworks.firewall,p-3rdpartycontrol,nosec
l: 0