[pjsip] IMS Registration Problem

Adeyeye Oluwasegun Michael micadeyeye at crg.ee.uct.ac.za
Thu Apr 17 09:22:22 EDT 2008


Hi Sasa,
Can you help me with the source you are using?
I am using version 0.8.0 excluding the trunk i.e. haven't sync with the
source. I guess the error might have been fixed in the trunk but I got
error the last time I tried to install the source pull from the trunk.

Can you help with this? Please mail to micadeyeye at gmail.com or send me a
link pointing at where I can pull it from.

Michael.


> Hi Michael!
>
> Well, I tried it on windows (version 0.8.0 and trunk) pjsua_app with
> almost
> the same parameters (just changed the addresses) and everything works
> fine.
> Config-site.h declares only #define PJSIP_HAS_DIGEST_AKA_AUTH 1 . The
> authorization header is included in the first Register. See the log below:
>
> Regards,
> sasa
>
>
> D:\cohlap\develop\voip\pjsip_0.8.0\pjsip-apps\bin>pjsua_vc8d.exe
> --registrar
> sip:192.168.60.25 --id sip:alice@
> open-ims.test --username alice at open-ims.test --password alice --local-port
> 5066 --realm open-ims.test --proxy
> sip:192.168.60.25:4060;lr --use-ims
>  10:50:45.127 os_core_win32. pjlib 0.8.0 for win32 initialized
>  10:50:45.158 sip_endpoint.c Creating endpoint instance...
>  10:50:45.158          pjlib select() I/O Queue created (00CA751C)
>  10:50:45.158 sip_endpoint.c Module "mod-msg-print" registered
>  10:50:45.158 sip_transport. Transport manager created.
>  10:50:45.158 sip_endpoint.c Module "mod-pjsua-log" registered
>  10:50:45.158 sip_endpoint.c Module "mod-tsx-layer" registered
>  10:50:45.174 sip_endpoint.c Module "mod-stateful-util" registered
>  10:50:45.174 sip_endpoint.c Module "mod-ua" registered
>  10:50:45.174 sip_endpoint.c Module "mod-100rel" registered
>  10:50:45.174 sip_endpoint.c Module "mod-pjsua" registered
>  10:50:45.174 sip_endpoint.c Module "mod-invite" registered
>  10:50:45.361      pasound.c PortAudio sound library initialized, status=0
>  10:50:45.361      pasound.c PortAudio host api count=3
>  10:50:45.361      pasound.c Sound device count=12
>  10:50:45.377          pjlib select() I/O Queue created (012DCC0C)
>  10:50:45.377 sip_endpoint.c Module "mod-evsub" registered
>  10:50:45.377 sip_endpoint.c Module "mod-presence" registered
>  10:50:45.377 sip_endpoint.c Module "mod-refer" registered
>  10:50:45.377 sip_endpoint.c Module "mod-pjsua-pres" registered
>  10:50:45.377 sip_endpoint.c Module "mod-pjsua-im" registered
>  10:50:45.377 sip_endpoint.c Module "mod-pjsua-options" registered
>  10:50:45.377   pjsua_core.c 1 SIP worker threads created
>  10:50:45.393   pjsua_core.c pjsua version 0.8.0 for win32 initialized
>  10:50:45.424   pjsua_core.c SIP UDP socket reachable at
> 192.168.60.124:5066
>  10:50:45.424    udp012F3EEC SIP UDP transport started, published address
> is
> 192.168.60.124:5066
>  10:50:45.424    pjsua_acc.c Account
> <sip:192.168.60.124:5066;transport=UDP>
> added with id 0
>  10:50:45.424    tcplis:5066 SIP TCP listener ready for incoming
> connections
> at 192.168.60.124:5066
>  10:50:45.424    pjsua_acc.c Account
> <sip:192.168.60.124:5066;transport=TCP>
> added with id 1
>  10:50:45.424    pjsua_acc.c Account sip:alice at open-ims.test added with id
> 2
>  10:50:45.424   pjsua_core.c TX 598 bytes Request msg REGISTER/cseq=18509
> (tdta012F8BA8) to UDP 192.168.60.25:
> 4060:
> REGISTER sip:192.168.60.25 SIP/2.0
> Via: SIP/2.0/UDP 192.168.60.124:5066
> ;rport;branch=z9hG4bKPje31be8d82eb3492c9c8e0c285b89085a
> Route: <sip:192.168.60.25:4060;lr>
> Max-Forwards: 70
> From: <sip:alice at open-ims.test>;tag=458cc4d680144db4902ab923497bef3e
> To: <sip:alice at open-ims.test>
> Call-ID: 89e6b8db524d4143aae52f002d822655
> CSeq: 18509 REGISTER
> Authorization: Digest username="alice at open-ims.test",
> realm="open-ims.test",
> nonce="", uri="sip:192.168.60.25"
> , response=""
> User-Agent: PJSUA v0.8.0/win32
> Contact: <sip:alice at 192.168.60.124:5066;transport=UDP>
> Expires: 300
> Content-Length:  0
>
>
>
>
>
>
>
>
> On Thu, Apr 17, 2008 at 1:36 AM, Adeyeye Michael <
> micadeyeye at crg.ee.uct.ac.za> wrote:
>
>> Hi Sasa,
>> I did. See:
>>
>> >> ::::::::::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
>>
>>
>> Yours,
>> Michael.
>>
>> Sasa Coh wrote:
>> > Hi Michael!
>> >
>> > Did you try with --use-ims config parameter?
>> >
>> > regards,
>> > sasa
>> >
>> > On Thu, Apr 17, 2008 at 9:43 AM, Adeyeye Oluwasegun Michael
>> > <micadeyeye at crg.ee.uct.ac.za <mailto:micadeyeye at crg.ee.uct.ac.za>>
>> wrote:
>> >
>> >     Hi,
>> >     I am using pjsua_app which already has all these definitions. I
>> was
>> >     thinking  that my config_site.h should not include "#define
>> >     PJSIP_HAS_TLS_TRANSPORT 1" again.
>> >     Maybe, I am missing something in my parameters also because the
>> >     REGISTER
>> >     should include DIGEST INFO.
>> >
>> >
>> >
>> >     Michael.
>> >
>> >
>> >
>> >
>> >     > 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
>> >     <mailto: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 <http://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 <http://169.254.10.219:5066>
>> >     >>  00:20:35.001   udp0x81dc904 SIP UDP transport started,
>> published
>> >     >> address
>> >     >> is 169.254.10.219:5066 <http://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 <http://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 <http://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 at open-ims.test>;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 at open-ims.test>;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 <http://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 at open-ims.test>;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 <http://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 at open-ims.test>;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 <http://127.0.0.1:4060>:
>> >     >> SIP/2.0 504 Server Time-Out
>> >     >> Via: SIP/2.0/UDP
>> >     >> 169.254.10.219:5066 <http://169.254.10.219:5066>
>> >     >>
>> >
>> ;received=127.0.0.1;received=127.0.0.1;rport=5066;branch=z9hG4bKPj49770000000367458b6b
>> >     >> From: <sip:alice at open-ims.test>;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 <http://127.0.0.1:4060> "Noisy
>> >     feedback tells:  pid=16689
>> >     >> req_src_ip=127.0.0.1 <http://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 <mailto:pjsip at lists.pjsip.org>
>> >     >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>> >     >>
>> >     > _______________________________________________
>> >     > Visit our blog: http://blog.pjsip.org
>> >     >
>> >     > pjsip mailing list
>> >     > pjsip at lists.pjsip.org <mailto:pjsip at lists.pjsip.org>
>> >     > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>> >     >
>> >
>> >
>> >
>>
>>
>






More information about the pjsip mailing list