SIP registration problems - please help!

<< < (6/7) > >>

ichigo:
Sorry if I did not get you correctly, but I wasn't sure if I should use a different $nonce from the one that you already put in your script - 1332608824. If I keep that and put in the actual userid and password in the file, then running your perl script in Terminal gives me 5aab2584f7ebc78b94337030683ec13b and it matches what I sent in the earlier post. Is that what you were looking for?

Stewart:
I assume that X-Lite works correctly with the new router.

Your test was as I requested, so there must be some other reason why the REGISTER with Authorization is still being rejected.

1. I see expires=60 in the Contact header and don't know why the OBi would be sending that.  Did you change the default value of RegisterExpires in the OBi?  If so, see whether resetting it to the default (3600) helps.

2. Conceivably, ASAHI will only accept certain User-Agent values.  Try setting X_UserAgentName to
X-Lite 4 release 4.1 stamp 63215

If neither helps, I'll post a perl script that will force the Contact header to look like X-Lite's.

RonR:
Quote from: Stewart on March 25, 2012, 05:14:48 am

1. I see expires=60 in the Contact header and don't know why the OBi would be sending that.  Did you change the default value of RegisterExpires in the OBi?  If so, see whether resetting it to the default (3600) helps.


The OBi sends the value of RegistrationPeriod for expires= in the Contact header, not the value of RegisterExpires.  The default value of RegistrationPeriod in the OBi is 60.

I just confirmed this with WireShark.

Stewart:
Quote from: RonR on March 25, 2012, 06:22:11 am

The OBi sends the value of RegistrationPeriod for expires= in the Contact header, not the value of RegisterExpires.  The default value of RegistrationPeriod in the OBi is 60.
Thanks for catching that.  The OP should try setting RegistrationPeriod to 3600.  If no luck, we'll try tweaking the Contact header next.

ichigo:
X-Lite does manage to register with the new router.
I changed RegistrationPeriod to 3600.
RegisterExpires was already 3600.
I hadn't touched these settings earlier.

Results:
No change from previous outcome.

Logs:

A) Obi masquerading as X-Lite:

REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: e8349bcb@192.168.0.3
Content-Length: 0
CSeq: 4143 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-350c1561
User-Agent: X-Lite 4 release 4.1 stamp 63215
Contact: <sip:050xxxxxxxx@192.168.0.3:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

SIP/2.0 401 Unauthorized
Call-ID: e8349bcb@192.168.0.3
l: 0
CSeq: 4143 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-350c1561
User-Agent: X-Lite 4 release 4.1 stamp 63215
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Mon, 26 Mar 2012 16:11:10 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1332778071", opaque="", stale=FALSE, algorithm=MD5

REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: e8349bcb@192.168.0.3
Content-Length: 0
CSeq: 4144 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-4276ab87
Authorization: DIGEST algorithm=MD5,nonce="1332778071",opaque="",realm="ocn.ne.jp",response="862cbfd068e9d548a6af50d50f5c2bda",uri="sip:asahi-net.or.jp:5060",username="XXXXXXXX"
User-Agent: X-Lite 4 release 4.1 stamp 63215
Contact: <sip:050xxxxxxxx@118.xx.xx.xx:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

SIP/2.0 401 Unauthorized
Call-ID: e8349bcb@192.168.0.3
l: 0
CSeq: 4144 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
To: <sip:050xxxxxxxx@asahi-net.or.jp>
v: SIP/2.0/UDP 192.168.0.3:5060;received=118.xx.xx.xx;branch=z9hG4bK-4276ab87
User-Agent: X-Lite 4 release 4.1 stamp 63215
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces
Date: Mon, 26 Mar 2012 16:11:11 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1332778071", opaque="", stale=FALSE, algorithm=MD5

REGISTER sip:asahi-net.or.jp:5060 SIP/2.0
Call-ID: e8349bcb@192.168.0.3
Content-Length: 0
CSeq: 4145 REGISTER
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=SP17e1d28d65c47b151
Max-Forwards: 70
To: <sip:050xxxxxxxx@asahi-net.or.jp>
Via: SIP/2.0/UDP 192.168.0.3:5060;branch=z9hG4bK-4a59f0aa
Authorization: DIGEST algorithm=MD5,nonce="1332778071",opaque="",realm="ocn.ne.jp",response="862cbfd068e9d548a6af50d50f5c2bda",uri="sip:asahi-net.or.jp:5060",username="XXXXXXXX"
User-Agent: X-Lite 4 release 4.1 stamp 63215
Contact: <sip:050xxxxxxxx@118.xx.xx.xx:5060>;expires=3600;+sip.instance="<urn:uuid:00000000-0000-0000-0000-9cadef1035b2>"
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,REFER
Supported: replaces

*****************************
B) The real X-lite:

REGISTER sip:asahi-net.or.jp SIP/2.0
Via: SIP/2.0/UDP 192.168.0.4:5060;branch=z9hG4bK-d8754z-5f44145cc126604c-1---d8754z-
Max-Forwards: 70
Contact: <sip:050xxxxxxxx@192.168.0.4:5060;rinstance=98c1394d3a1d0472;transport=udp>
To: <sip:050xxxxxxxx@asahi-net.or.jp>
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=206f6044
Call-ID: ZmJkMTgxZjY2MzU1OGUxMDZjN2ZkMjk0ZmVjYWE1YzI.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
Content-Length: 0

SIP/2.0 401 Unauthorized
v: SIP/2.0/UDP 192.168.0.4:5060;received=118.xx.xx.xx;branch=z9hG4bK-d8754z-5f44145cc126604c-1---d8754z-
To: <sip:050xxxxxxxx@asahi-net.or.jp>
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=206f6044
Call-ID: ZmJkMTgxZjY2MzU1OGUxMDZjN2ZkMjk0ZmVjYWE1YzI.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
l: 0
Date: Mon, 26 Mar 2012 15:53:29 GMT
WWW-Authenticate: Digest realm="ocn.ne.jp", domain="sip:210.227.109.205", nonce="1332774470", opaque="", stale=FALSE, algorithm=MD5

REGISTER sip:asahi-net.or.jp SIP/2.0
Via: SIP/2.0/UDP 192.168.0.4:5060;branch=z9hG4bK-d8754z-a5508568d1e8bc1d-1---d8754z-
Max-Forwards: 70
Contact: <sip:050xxxxxxxx@192.168.0.4:5060;rinstance=98c1394d3a1d0472;transport=udp>
To: <sip:050xxxxxxxx@asahi-net.or.jp>
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=206f6044
Call-ID: ZmJkMTgxZjY2MzU1OGUxMDZjN2ZkMjk0ZmVjYWE1YzI.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
Authorization: Digest username="XXXXXXXX",realm="ocn.ne.jp",nonce="1332774470",uri="sip:asahi-net.or.jp",response="2de5d19ea8105380f6f8d6c05f01f424",algorithm=MD5
Content-Length: 0

SIP/2.0 200 OK
v: SIP/2.0/UDP 192.168.0.4:5060;received=118.xx.xx.xx;branch=z9hG4bK-d8754z-a5508568d1e8bc1d-1---d8754z-
m: <sip:050xxxxxxxx@192.168.0.4:5060>;expires=3600
To: <sip:050xxxxxxxx@asahi-net.or.jp>
From: <sip:050xxxxxxxx@asahi-net.or.jp>;tag=206f6044
Call-ID: ZmJkMTgxZjY2MzU1OGUxMDZjN2ZkMjk0ZmVjYWE1YzI.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63215
Content-Length: 0
Date: Mon, 26 Mar 2012 15:53:29 GMT

*****************

Over to you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page