PJSIP registration Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello,

Can some help me troubleshoot this small registration issue? 

Client is sending

######
192.168.86.73:51776 -> 192.168.212.219:5070 [AP]
REGISTER sip:phone.domain.com:5070;transport=tcp SIP/2.0.
Via: SIP/2.0/TCP 192.168.1.24:51776;rport;branch=z9hG4bKPjOHIF64viYJs7.tqvZdvrGFoW00g39bOv;alias.
Max-Forwards: 70.
From: <sip:3333331401@xxxxxxxxxxxxxxxx>;tag=FPD8atihhLeRHySmQTCaWgSCKilOayRZ.
To: <sip:3333331401@xxxxxxxxxxxxxxxx>.
Call-ID: ATS5FAzJ5zq2EAYb07uZMiMSN86hVQy4.
CSeq: 27035 REGISTER.
Supported: outbound, path.
Contact: <sip:3333331401@192.168.1.24:5070;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-00008340d0fa>".
Expires: 300.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length:  0.
.

Responding 401 (Normal as expected)
##
192.168.212.219:5070 -> 192.168.86.73:51776 [AP]
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/TCP 192.168.1.24:51776;received=192.168.86.73;rport=51776;branch=z9hG4bKPjOHIF64viYJs7.tqvZdvrGFoW00g39bOv;alias.
From: <sip:3333331401@xxxxxxxxxxxxxxxx>;tag=FPD8atihhLeRHySmQTCaWgSCKilOayRZ.
To: <sip:3333331401@xxxxxxxxxxxxxxxx>;tag=b1eab96f5e317aeed15d7d983cd6a57a.5ee8.
Call-ID: ATS5FAzJ5zq2EAYb07uZMiMSN86hVQy4.
CSeq: 27035 REGISTER.
WWW-Authenticate: Digest realm="phone.domain.com", nonce="5c9b1d7d000008d1ac3940669816334b2844844f87cc0d61".
Server: OpenSIPS (2.4.4 (x86_64/linux)).
Content-Length: 0.
.

Now Client is not sending authorization string in the SIP header. 
###
192.168.86.73:51776 -> 192.168.212.219:5070 [AP]
REGISTER sip:phone.domain.com:5070;transport=tcp SIP/2.0.
Via: SIP/2.0/TCP 192.168.1.24:51776;rport;branch=z9hG4bKPjK14sfI9ZcYFQdkbU.3cQmDzSZuHnCFI2;alias.
Max-Forwards: 70.
From: <sip:3333331401@xxxxxxxxxxxxxxxx>;tag=8-Yjprgu-tqzLUl6K9Woot8OtbA45XG..
To: <sip:3333331401@xxxxxxxxxxxxxxxx>.
Call-ID: E8FaNOF-ShLPmkINx7YAbU0vL7A3X9-W.
CSeq: 1904 REGISTER.
Supported: outbound, path.
Contact: <sip:3333331401@192.168.1.24:5070;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-00008340d0fa>".
Expires: 300.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length:  0.


It should be something like this. 
###
192.168.86.73:51776 -> 192.168.212.219:5070 [AP]
REGISTER sip:phone.domain.com:5070;transport=tcp SIP/2.0.
Via: SIP/2.0/TCP 192.168.1.24:51776;rport;branch=z9hG4bKPjK14sfI9ZcYFQdkbU.3cQmDzSZuHnCFI2;alias.
Max-Forwards: 70.
From: <sip:3333331401@xxxxxxxxxxxxxxxx>;tag=8-Yjprgu-tqzLUl6K9Woot8OtbA45XG..
To: <sip:3333331401@xxxxxxxxxxxxxxxx>.
Call-ID: E8FaNOF-ShLPmkINx7YAbU0vL7A3X9-W.
CSeq: 1904 REGISTER.
Supported: outbound, path.
Contact: <sip:3333331401@192.168.1.24:5070;transport=TCP;ob>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-00008340d0fa>".
Expires: 300.
Authorization: Digest username="3333331401", realm="phone.domain.com", nonce="5c9b1d0d000008d0a3685893e9b9332887b96ca4ff2a0963", uri="sip:phone.domain.com:5070", response="8233c8f96b16ab62ddfef08633555687", algorithm=MD5.
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS.
Content-Length:  0.


I am calling: 
        if ((status = sip_connect(_app_config.pool, &_sip_acc_id)) != PJ_SUCCESS)
sip_connect is calling
status = pjsua_acc_add(&acc_cfg, PJ_TRUE, acc_id);
As per document that should take care proper SIP headers. 
Can some point me in the right direction? 
--
Best Regards 

Vivek Shukla 
Sr. iOS Developer 

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux