IMS Registration Problem

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

 



Hi Michael!

Read http://www.pjsip.org/pjsip/docs/html/group__PJSIP__AUTH__AKA__API.htm !

and don't forget to activate IMS settings: cur_acc->auth_pref.initial_auth =
PJ_TRUE;

That's all!

Regards,
sasa

On Thu, Apr 17, 2008 at 12:39 AM, Adeyeye Oluwasegun Michael <
micadeyeye at crg.ee.uct.ac.za> wrote:

> Hi,
> I couldn't register PJSUA with IMS. The SIP REGISTER lacks an
> authentication header. Am I missing an config parameter when running the
> PJSUA? I already have config_site.h set. I checked the mailing list
> archive for possible solution but it was futile.
>
>
> :::::::::::MY CONFIG_SITE.H FILE::::::::::
> #define PJSIP_HAS_TLS_TRANSPORT 1
> #define PJSIP_HAS_DIGEST_AKA_AUTH 1
>
>
>
>
> ::::::::::ERROR MESSAGE FROM P-CSCF::::::::::
> 1(16685) DBG:P-CSCF:P_remove_header_tag(): Original <Require> -> <path>
>  1(16685) DBG:P-CSCF:P_verify_security: Looking for <1://127.0.0.1:4060>
>  1(16685) ERR:P-CSCF:cscf_get_authorization: Message does not contain
> Authorization header.
>  1(16685) INF:P-CSCF:P_add_integrity_protected: No authorization header
> found.
>
>
> ::::::::::RUNNING PJSUA:::::::::::::
> micadeyeye at micadeyeye-desktop:/opt/pjproject-0.8.0/pjsip-apps/bin$
> ./pjsua-i686-pc-linux-gnu --registrar sip:open-ims.test --id
> sip:alice at open-ims.test --username alice at open-ims.test --password alice
> --local-port 5066 --realm open-ims.test --proxy
> sip:pcscf.open-ims.test:4060;lr --use-ims
>
>
>
> ::::::PJSUA LOG::::::::::::::
>  00:20:35.000   pjsua_core.c 1 SIP worker threads created
>  00:20:35.000   pjsua_core.c pjsua version 0.8.0 for i686-pc-linux-gnu
> initialized
>  00:20:35.001   pjsua_core.c SIP UDP socket reachable at
> 169.254.10.219:5066
>  00:20:35.001   udp0x81dc904 SIP UDP transport started, published address
> is 169.254.10.219:5066
>  00:20:35.001    pjsua_acc.c Account
> <sip:169.254.10.219:5066;transport=UDP> added with id 0
>  00:20:35.002    tcplis:5066 SIP TCP listener ready for incoming
> connections at 169.254.10.219:5066
>  00:20:35.002    pjsua_acc.c Account
> <sip:169.254.10.219:5066;transport=TCP> added with id 1
>  00:20:35.002    pjsua_acc.c Account sip:alice at open-ims.test added with id
> 2
>  00:20:35.053   pjsua_core.c TX 452 bytes Request msg REGISTER/cseq=64678
> (tdta0x81e1480) to UDP 127.0.0.1:4060:
> REGISTER sip:pcscf.open-ims.test:4060 SIP/2.0
> Via: SIP/2.0/UDP
> 169.254.10.219:5066;rport;branch=z9hG4bKPj49770000000367458b6b
> Max-Forwards: 70
> From: <sip:alice@xxxxxxxxxxxxx>;tag=49770000000267458b6b
> To: <sip:alice at open-ims.test>
> Call-ID: 49770000000167458b6b
> CSeq: 64678 REGISTER
> User-Agent: PJSUA v0.8.0/i686-pc-linux-gnu
> Contact: <sip:alice at 169.254.10.219:5066;transport=UDP>
> Expires: 300
> Route: <sip:open-ims.test>
> Content-Length:  0
>
>
> --end msg--
>  00:20:35.053    pjsua_acc.c Registration sent
>
>
> REGISTER sip:pcscf.open-ims.test:4060 SIP/2.0
> Via: SIP/2.0/UDP
> 169.254.10.219:5066;rport;branch=z9hG4bKPj49770000000367458b6b
> Max-Forwards: 70
> From: <sip:alice@xxxxxxxxxxxxx>;tag=49770000000267458b6b
> To: <sip:alice at open-ims.test>
> Call-ID: 49770000000167458b6b
> CSeq: 64678 REGISTER
> User-Agent: PJSUA v0.8.0/i686-pc-linux-gnu
> Contact: <sip:alice at 169.254.10.219:5066;transport=UDP>
> Expires: 300
> Route: <sip:open-ims.test>
> Content-Length:  0
>
>
> --end msg--
>  00:20:36.554   pjsua_core.c TX 452 bytes Request msg REGISTER/cseq=64678
> (tdta0x81e1480) to UDP 127.0.0.1:4060:
> REGISTER sip:pcscf.open-ims.test:4060 SIP/2.0
> Via: SIP/2.0/UDP
> 169.254.10.219:5066;rport;branch=z9hG4bKPj49770000000367458b6b
> Max-Forwards: 70
> From: <sip:alice@xxxxxxxxxxxxx>;tag=49770000000267458b6b
> To: <sip:alice at open-ims.test>
> Call-ID: 49770000000167458b6b
> CSeq: 64678 REGISTER
> User-Agent: PJSUA v0.8.0/i686-pc-linux-gnu
> Contact: <sip:alice at 169.254.10.219:5066;transport=UDP>
> Expires: 300
> Route: <sip:open-ims.test>
> Content-Length:  0
>
>
> --end msg--
>  00:20:38.560   pjsua_core.c TX 452 bytes Request msg REGISTER/cseq=64678
> (tdta0x81e1480) to UDP 127.0.0.1:4060:
> REGISTER sip:pcscf.open-ims.test:4060 SIP/2.0
> Via: SIP/2.0/UDP
> 169.254.10.219:5066;rport;branch=z9hG4bKPj49770000000367458b6b
> Max-Forwards: 70
> From: <sip:alice@xxxxxxxxxxxxx>;tag=49770000000267458b6b
> To: <sip:alice at open-ims.test>
> Call-ID: 49770000000167458b6b
> CSeq: 64678 REGISTER
> User-Agent: PJSUA v0.8.0/i686-pc-linux-gnu
> Contact: <sip:alice at 169.254.10.219:5066;transport=UDP>
> Expires: 300
> Route: <sip:open-ims.test>
> Content-Length:  0
>
>
> --end msg--
>  00:21:05.026   pjsua_core.c RX 611 bytes Response msg
> 504/REGISTER/cseq=64678 (rdata0x81dcd14) from UDP 127.0.0.1:4060:
> SIP/2.0 504 Server Time-Out
> Via: SIP/2.0/UDP
> 169.254.10.219:5066
> ;received=127.0.0.1;received=127.0.0.1;rport=5066;branch=z9hG4bKPj49770000000367458b6b
> From: <sip:alice@xxxxxxxxxxxxx>;tag=49770000000267458b6b
> To: <sip:alice at open-ims.test>;tag=f4c6194fd3f02ff08827e179165a540f-0245
> Call-ID: 49770000000167458b6b
> CSeq: 64678 REGISTER
> Server: Sip EXpress router (2.1.0-dev1 OpenIMSCore (i386/linux))
> Content-Length: 0
> Warning: 392 127.0.0.1:4060 "Noisy feedback tells:  pid=16689
> req_src_ip=127.0.0.1 req_src_port=4060 in_uri=sip:pcscf.open-ims.test:4060
> out_uri=sip:pcscf.open-ims.test:4060 via_cnt==0"
>
>
> --end msg--
>  00:21:05.026    pjsua_acc.c SIP registration failed, status=504 (Server
> Time-Out)
>
>
>
> Thanks,
> Michael.
>
>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080417/01a11610/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