Bad Request Line --- REGISTER sip:pcscf.open-ims.net:4060

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

 



On Sat, Apr 19, 2008 at 2:14 PM, Adeyeye Oluwasegun Michael
<micadeyeye at crg.ee.uct.ac.za> wrote:
>
>
>  Hi,
>  Here is an error, the log below shows that a REGISTER is sent to
>  sip.pcscf.open-ims.net:4060, and the ROUTE is sip:open-ims.net. The
>  reverse should be the appropriate way i.e. REGISTER to sip:open-ims.net
>  and ROUTE through sip.pcscf.open-ims.net:4060. To confirm, see
>  http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-April/002604.html
>
>
>  The P-CSCF always generates an error that the Authorization header isn't
>  found. Whenever I use "--proxy sip:pcscf.open-ims.test:4060" i.e. without
>  lr, an authorization header is formed and the REGISTER is still addressed
>  to sip:pcscf..... In this case, the P-CSCF does not indicate that a
>  message is sent to it, needless to say that the registration fails also. I
>  understand that "lr" is needed here and that's why I get a feedback from
>  P-CSCF whenever I include it.
>
>
>  Is there any reason why these REGISTER parameters are reversed??


It's because the route URI is a strict route. You'd probably want to
add ";lr" parameter in your route URI.

And btw there's no need to resend the mails, the first few ones got
through fine.

Cheers
 Benny

>  Michael.
>
>
>
>  micadeyeye at micadeyeye-desktop
>  <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>:/opt/pjproject-0.8.0/pjsip-apps/bin$
>  ./pjsua-i686-pc-linux-gnu --registrar sip:open-ims.test --id
>  sip:bob at open-ims.test
>  <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> --username
>  bob at
>  open-ims.test <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>
>  --password bob
>  --local-port 5066 --realm open-ims.test --proxy
>  sip:pcscf.open-ims.test:4060;lr --use-ims
>   09:04:33.689 os_core_unix.c pjlib 0.8.0-trunk for POSIX initialized
>   09:04:33.691 sip_endpoint.c Creating endpoint instance...
>   09:04:33.784          pjlib select() I/O Queue created (0xb7b2b098)
>   09:04:33.784 sip_endpoint.c Module "mod-msg-print" registered
>   09:04:33.785 sip_transport. Transport manager created.
>   09:04:33.785 sip_endpoint.c Module "mod-pjsua-log" registered
>   09:04:33.785 sip_endpoint.c Module "mod-tsx-layer" registered
>   09:04:33.786 sip_endpoint.c Module "mod-stateful-util" registered
>   09:04:33.787 sip_endpoint.c Module "mod-ua" registered
>   09:04:33.787 sip_endpoint.c Module "mod-100rel" registered
>   09:04:33.787 sip_endpoint.c Module "mod-pjsua" registered
>   09:04:33.787 sip_endpoint.c Module "mod-invite" registered
>   09:04:33.841      pasound.c PortAudio sound library initialized, status=0
>   09:04:33.841      pasound.c PortAudio host api count=2
>   09:04:33.841      pasound.c Sound device count=8
>   09:04:33.841          pjlib select() I/O Queue created (0x81cd78c)
>   09:04:33.842 sip_endpoint.c Module "mod-evsub" registered
>   09:04:33.842 sip_endpoint.c Module "mod-presence" registered
>   09:04:33.842 sip_endpoint.c Module "mod-refer" registered
>   09:04:33.842 sip_endpoint.c Module "mod-pjsua-pres" registered
>   09:04:33.843 sip_endpoint.c Module "mod-pjsua-im" registered
>   09:04:33.843 sip_endpoint.c Module "mod-pjsua-options" registered
>   09:04:33.843   pjsua_core.c 1 SIP worker threads created
>   09:04:33.843   pjsua_core.c pjsua version 0.8.0-trunk for
>  i686-pc-linux-gnu initialized
>   09:04:33.843   pjsua_core.c SIP UDP socket reachable at 192.168.0.1:5066
>   09:04:33.843   udp0x81d9818 SIP UDP transport started, published address
>  is 192.168.0.1:5066
>   09:04:33.843    pjsua_acc.c Account <sip:192.168.0.1:5066> added with id 0
>   09:04:33.844    tcplis:5066 SIP TCP listener ready for incoming
>  connections at 192.168.0.1:5066
>   09:04:33.844    pjsua_acc.c Account <sip:192.168.0.1:5066;transport=TCP>
>  added with id 1
>   09:04:33.844    pjsua_acc.c Account sip:bob at open-ims.test
>  <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> added with
>  id 2
>   09:04:33.919   pjsua_core.c TX 468 bytes Request msg REGISTER/cseq=65040
>  (tdta0x81dd658) to UDP 127.0.0.1:4060:
>  REGISTER sip:pcscf.open-ims.test:4060 SIP/2.0
>  Via: SIP/2.0/UDP
>  192.168.0.1:5066;rport;branch=z9hG4bKPjHG6meV4A2cM3P-d9jQ1t-1T8GKsVxl8u
>  Max-Forwards: 70
>  From: <sip:bob@xxxxxxxxxxxxx
>  <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>;tag=tEhWFyEVplbCvWw6oDe8g32cqVCAmlk1
>  To: <sip:bob at open-ims.test
>  <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>
>  Call-ID: leUbaAM2vvqvzrdcNucYXOGuRWfJFstv
>  CSeq: 65040 REGISTER
>  User-Agent: PJSUA v0.8.0-trunk/i686-pc-linux-gnu
>  Contact: <sip:bob at 192.168.0.1
>  <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>:5066>
>  Expires: 300
>  Route: <sip:open-ims.test>
>  Content-Length:  0
>
>
>  --end msg--
>   09:04:33.919    pjsua_acc.c Registration sent
>
>   09:05:03.972   pjsua_core.c RX 621 bytes Response msg
>  504/REGISTER/cseq=65040 (rdata0x81d9c8c) from UDP 127.0.0.1:4060:
>  SIP/2.0 504 Server Time-Out
>  Via: SIP/2.0/UDP
>  192.168.0.1:5066;rport=5066;branch=z9hG4bKPjHG6meV4A2cM3P-d9jQ1t-1T8GKsVxl8u;received=127.0.0.1
>  From: <sip:bob@xxxxxxxxxxxxx
>  <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>;tag=tEhWFyEVplbCvWw6oDe8g32cqVCAmlk1
>  To: <sip:bob at open-ims.test
>  <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>;tag=f4c6194fd3f02ff08827e179165a540f-d611
>  Call-ID: leUbaAM2vvqvzrdcNucYXOGuRWfJFstv
>  CSeq: 65040 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=25086
>  req_src_ip=127.0.0.1 req_src_port=5066 in_uri=sip:pcscf.open-ims.test:4060
>  out_uri=sip:pcscf.open-ims.test:4060 via_cnt==0"
>
>
>  --end msg--
>   09:05:03.972    pjsua_acc.c SIP registration failed, status=504 (Server
>  Time-Out)
>
>
>
>
>
>  P-CSCF ERROR MESSAGE
>
>   2(25083) DBG:P-CSCF:P_remove_header_tag(): Original <Require> -> <path>
>   2(25083) DBG:P-CSCF:P_remove_header_tag(): Original <Require> -> <path>
>   2(25083) DBG:P-CSCF:P_verify_security: Looking for <1://127.0.0.1:4060
>  <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-April/1://127.0.0.1:4060>>
>   2(25083) ERR:P-CSCF:cscf_get_authorization: Message does not contain
>  Authorization header.
>   2(25083) INF:P-CSCF:P_add_integrity_protected: No authorization header
>  found.
>   2(25083) DBG:P-CSCF:P_remove_header_tag(): Original <Require> -> <path>
>   2(25083) DBG:P-CSCF:P_remove_header_tag(): Original <Require> -> <path>
>   2(25083) DBG:P-CSCF:P_remove_header_tag(): Original <Require> -> <path>
>   2(25083) DBG:P-CSCF:P_remove_header_tag(): Original <Require> -> <path>
>
>
>
>
>
>
>
>  Yours,
>  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
>



[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