Problem registering with pjsua on an Open-IMS network

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

 



Hi everyboy,

 I am new with pjsip (great work by the way !) and I would like to register
on an Open-IMS network. Here is the configuration file I tried to complete
thanks to the archives of this list :

--proxy sip:pcscf.open-ims.test:4060;lr
--id sip:alice at open-ims.test
--registrar sip:open-ims.test
--realm open-ims.test
--username alice at open-ims.test
--password alice

Unfortunately, when I try to launch pjsip, I get :



16:19:06.073   pjsua_core.c TX 453 bytes Request msg REGISTER/cseq=44711
> (tdta0x81b1d48) to UDP 137.122.89.83:4060:
> REGISTER sip:open-ims.test SIP/2.0
> Via: SIP/2.0/UDP 137.122.91.64:5060
> ;rport;branch=z9hG4bKPj15e40000000767458b6b
> Route: <sip:pcscf.open-ims.test:4060;lr>
> Max-Forwards: 70
> From: <sip:alice@xxxxxxxxxxxxx>;tag=15e40000000667458b6b
> To: <sip:alice at open-ims.test>
> Call-ID: 15e40000000567458b6b
> CSeq: 44711 REGISTER
> User-Agent: PJSUA v0.8.0/i686-pc-linux-gnu
> Contact: <sip:alice at 137.122.91.64:5060;transport=UDP>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  16:19:06.073    pjsua_acc.c Registration sent
> >>>  16:19:06.104   pjsua_core.c RX 907 bytes Response msg
> 401/REGISTER/cseq=44711 (rdata0x81addec) from UDP 137.122.89.83:4060:
> SIP/2.0 401 Unauthorized - Challenging the UE
> Via: SIP/2.0/UDP 137.122.91.64:5060
> ;rport=5060;branch=z9hG4bKPj15e40000000767458b6b
> From: <sip:alice@xxxxxxxxxxxxx>;tag=15e40000000667458b6b
> To: <sip:alice at open-ims.test>;tag=804e0bcb8aaf6d4dbc8395c1b33030b5-96f3
> Call-ID: 15e40000000567458b6b
> CSeq: 44711 REGISTER
> Path: <sip:term at pcscf.open-ims.test:4060;lr>
> Service-Route: <sip:orig at scscf.open-ims.test:6060;lr>
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
> MESSAGE, INFO
> Server: Sip EXpress router (2.1.0-dev1 OpenIMSCore (x86_64/linux))
> Content-Length: 0
> Warning: 392 137.122.89.83:6060 "Noisy feedback tells:  pid=13356
> req_src_ip=137.122.89.83 req_src_port=5060 in_uri=sip:scscf.open-ims.test:6060
> out_uri=sip:scscf.open-ims.test:6060 via_cnt==3"
> WWW-Authenticate: Digest realm="open-ims.test",
> nonce="v7xcBef1pM+7JKbzk1Hxl/94DmgxqAAACl13MxsIBUQ=", algorithm=AKAv1-MD5
>
>
> --end msg--
>  16:19:06.104   pjsua_core.c TX 675 bytes Request msg REGISTER/cseq=44712
> (tdta0x81b1d48) to UDP 137.122.89.83:4060:
> REGISTER sip:open-ims.test SIP/2.0
> Via: SIP/2.0/UDP 137.122.91.64:5060
> ;rport;branch=z9hG4bKPj15e40000000867458b6b
> Route: <sip:pcscf.open-ims.test:4060;lr>
> Max-Forwards: 70
> From: <sip:alice@xxxxxxxxxxxxx>;tag=15e40000000667458b6b
> To: <sip:alice at open-ims.test>
> Call-ID: 15e40000000567458b6b
> CSeq: 44712 REGISTER
> User-Agent: PJSUA v0.8.0/i686-pc-linux-gnu
> Contact: <sip:alice at 137.122.91.64:5060;transport=UDP>
> Expires: 300
> Authorization: Digest username="alice at open-ims.test", realm="open-ims.test",
> nonce="v7xcBef1pM+7JKbzk1Hxl/94DmgxqAAACl13MxsIBUQ=", uri="sip:
> open-ims.test", response="5fb9b06be9fdfe4f8054190974f23f91",
> algorithm=AKAv1-MD5
> Content-Length:  0
>
>
> --end msg--
>  16:19:06.134   pjsua_core.c RX 907 bytes Response msg
> 401/REGISTER/cseq=44712 (rdata0x81addec) from UDP 137.122.89.83:4060:
> SIP/2.0 401 Unauthorized - Challenging the UE
> Via: SIP/2.0/UDP 137.122.91.64:5060
> ;rport=5060;branch=z9hG4bKPj15e40000000867458b6b
> From: <sip:alice@xxxxxxxxxxxxx>;tag=15e40000000667458b6b
> To: <sip:alice at open-ims.test>;tag=804e0bcb8aaf6d4dbc8395c1b33030b5-8299
> Call-ID: 15e40000000567458b6b
> CSeq: 44712 REGISTER
> Path: <sip:term at pcscf.open-ims.test:4060;lr>
> Service-Route: <sip:orig at scscf.open-ims.test:6060;lr>
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
> MESSAGE, INFO
> Server: Sip EXpress router (2.1.0-dev1 OpenIMSCore (x86_64/linux))
> Content-Length: 0
> Warning: 392 137.122.89.83:6060 "Noisy feedback tells:  pid=13357
> req_src_ip=137.122.89.83 req_src_port=5060 in_uri=sip:scscf.open-ims.test:6060
> out_uri=sip:scscf.open-ims.test:6060 via_cnt==3"
> WWW-Authenticate: Digest realm="open-ims.test",
> nonce="50ZsAElIZ3zz6Y8X0v0zaAHIX8g2eQAA3tlYnlWJ2TE=", algorithm=AKAv1-MD5
>
>
> --end msg--
>  16:19:06.134 sip_auth_clien Authorization failed for alice at open-ims.test@
> open-ims.test: server rejected with stale=false
>  16:19:06.134    pjsua_acc.c SIP registration error: Credential failed to
> authenticate (PJSIP_EFAILEDCREDENTIAL) [status=171100]
>



I have also tried to use "username=alice" in the config file and I get :



16:21:01.377   pjsua_core.c TX 453 bytes Request msg REGISTER/cseq=44711
> (tdta0x81e28e0) to UDP 137.122.89.83:4060:
> REGISTER sip:open-ims.test SIP/2.0
> Via: SIP/2.0/UDP 137.122.91.64:5060
> ;rport;branch=z9hG4bKPj15f30000000767458b6b
> Route: <sip:pcscf.open-ims.test:4060;lr>
> Max-Forwards: 70
> From: <sip:alice@xxxxxxxxxxxxx>;tag=15f30000000667458b6b
> To: <sip:alice at open-ims.test>
> Call-ID: 15f30000000567458b6b
> CSeq: 44711 REGISTER
> User-Agent: PJSUA v0.8.0/i686-pc-linux-gnu
> Contact: <sip:alice at 137.122.91.64:5060;transport=UDP>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  16:21:01.377    pjsua_acc.c Registration sent
> >>>  16:21:01.410   pjsua_core.c RX 907 bytes Response msg
> 401/REGISTER/cseq=44711 (rdata0x81addec) from UDP 137.122.89.83:4060:
> SIP/2.0 401 Unauthorized - Challenging the UE
> Via: SIP/2.0/UDP 137.122.91.64:5060
> ;rport=5060;branch=z9hG4bKPj15f30000000767458b6b
> From: <sip:alice@xxxxxxxxxxxxx>;tag=15f30000000667458b6b
> To: <sip:alice at open-ims.test>;tag=804e0bcb8aaf6d4dbc8395c1b33030b5-3e59
> Call-ID: 15f30000000567458b6b
> CSeq: 44711 REGISTER
> Path: <sip:term at pcscf.open-ims.test:4060;lr>
> Service-Route: <sip:orig at scscf.open-ims.test:6060;lr>
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
> MESSAGE, INFO
> Server: Sip EXpress router (2.1.0-dev1 OpenIMSCore (x86_64/linux))
> Content-Length: 0
> Warning: 392 137.122.89.83:6060 "Noisy feedback tells:  pid=13357
> req_src_ip=137.122.89.83 req_src_port=5060 in_uri=sip:scscf.open-ims.test:6060
> out_uri=sip:scscf.open-ims.test:6060 via_cnt==3"
> WWW-Authenticate: Digest realm="open-ims.test",
> nonce="ytvtgRvj/KKtEhj770VMbQbbmnt5kAAAyACgNA4lw5I=", algorithm=AKAv1-MD5
>
>
> --end msg--
>  16:21:01.411   pjsua_core.c TX 661 bytes Request msg REGISTER/cseq=44712
> (tdta0x81e28e0) to UDP 137.122.89.83:4060:
> REGISTER sip:open-ims.test SIP/2.0
> Via: SIP/2.0/UDP 137.122.91.64:5060
> ;rport;branch=z9hG4bKPj15f30000000867458b6b
> Route: <sip:pcscf.open-ims.test:4060;lr>
> Max-Forwards: 70
> From: <sip:alice@xxxxxxxxxxxxx>;tag=15f30000000667458b6b
> To: <sip:alice at open-ims.test>
> Call-ID: 15f30000000567458b6b
> CSeq: 44712 REGISTER
> User-Agent: PJSUA v0.8.0/i686-pc-linux-gnu
> Contact: <sip:alice at 137.122.91.64:5060;transport=UDP>
> Expires: 300
> Authorization: Digest username="alice", realm="open-ims.test",
> nonce="ytvtgRvj/KKtEhj770VMbQbbmnt5kAAAyACgNA4lw5I=", uri="sip:
> open-ims.test", response="410f317c7006f2a2e024d5406f36cf2a",
> algorithm=AKAv1-MD5
> Content-Length:  0
>
>
> --end msg--
>  16:21:01.419   pjsua_core.c RX 573 bytes Response msg
> 403/REGISTER/cseq=44712 (rdata0x81addec) from UDP 137.122.89.83:4060:
> SIP/2.0 403 Forbidden - HSS User Unknown
> Via: SIP/2.0/UDP 137.122.91.64:5060
> ;rport=5060;branch=z9hG4bKPj15f30000000867458b6b
> From: <sip:alice@xxxxxxxxxxxxx>;tag=15f30000000667458b6b
> To: <sip:alice at open-ims.test>;tag=cc38e6329f0977c35824866f0fef1449-6e0b
> Call-ID: 15f30000000567458b6b
> CSeq: 44712 REGISTER
> Server: Sip EXpress router (2.1.0-dev1 OpenIMSCore (x86_64/linux))
> Content-Length: 0
> Warning: 392 137.122.89.83:5060 "Noisy feedback tells:  pid=13273
> req_src_ip=137.122.89.83 req_src_port=4060 in_uri=sip:open-ims.testout_uri=sip:
> open-ims.test via_cnt==2"
>
>
> --end msg--
>  16:21:01.419    pjsua_acc.c SIP registration failed, status=403
> (Forbidden - HSS User Unknown)
>  16:21:04.545   sound_port.c EC suspended because of inactivity


I hope someone could help me !

Damien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080318/adaca56b/attachment-0001.html 


[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