Problem registering with pjsua on an Open-IMS network

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

 



On 3/18/08, Damien Herraud <d.herraud at gmail.com> wrote:
> 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

I checked my sample IMS config, and I think it looks pretty much
similar to yours, except that mine has "--use-ims" option to somewhat
activate IMS related settings. Can you try that?

Cheers,
 -benny


> 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@xxxxxxxxxxxxx: 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.test
> out_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
>
>
>
> _______________________________________________
>  Visit our blog: http://blog.pjsip.org
>
>  pjsip mailing list
>  pjsip at lists.pjsip.org
> 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