[asterisk-bugs] [JIRA] (ASTERISK-24654) Cant Register when extra data is added to Registers URI using PJSIP

Allen Ford (JIRA) noreply at issues.asterisk.org
Fri Jan 16 01:51:34 CST 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224516#comment-224516 ] 

Allen Ford commented on ASTERISK-24654:
---------------------------------------

after changing the transpor to tcp  ,  it looks like i get more data in form of blob..   however it does not add register to aor but still sends me a SIP/2.0 200 OK

<--- Received SIP request (1211 bytes) from UDP:76.122.73.37:47303 --->
REGISTER sip:191.237.65.201:5060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 76.122.73.37:47303;branch=z9hG4bK-d8754z-14f2a3e15e4e464e-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:3003 at 76.122.73.37:47303;rinstance=4ec4a0f4350268c6;transport=UDP;X-PUSH-URI=http://s.notify.live.net/u/1/bn1/HmQAAAATDCA5qF7w--acBUvAWKFDdybpUdixN8IklFWFbirVNTZJukGAxJw4l0pnwIorzlRB1jw_IIBBo9T80z0-1wPw/d2luZG93c3Bob25lZGVmYXVsdA/EW_BnIu3fUOH7FePoWYHNw/mdWiTaGBmvmq8Bc6a1kHWu41kJ4>
To: "3003"<sip:3003 at 191.237.65.201:5060;transport=UDP>
From: "3003"<sip:3003 at 191.237.65.201:5060;transport=UDP>;tag=47014e4f
Call-ID: MDI2MjJjMmY3ZmMwZGFkMDlhMmI5MTgzODc3YjQ5NDA.
CSeq: 3 REGISTER
Expires: 86400
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Zoiper r28204
Authorization: Digest username="3003",realm="asterisk",nonce="1421381084/eebc565fcf3bbee7040226fd24ad5434",uri="sip:191.237.65.201;transport=UDP",response="c10f71c5d4955fa1c84ddd3b85e8cdc4",cnonce="7c281e3ac7327be44a797107f58972d2",nc=00000002,qop=auth,algorithm=md5,opaque="39d117ff1c2adb7b"
Allow-Events: presence, kpml
Content-Length: 0


<--- Received SIP request (977 bytes) from TCP:76.122.73.37:52404 --->
PUBLISH sip:3003 at 191.237.65.201;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 76.122.73.37:52404;branch=z9hG4bK-d8754z-c8abe7bec5d45cd9-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:3003 at 76.122.73.37:52404;transport=TCP>
To: "3003"<sip:3003 at 191.237.65.201;transport=TCP>
From: "3003"<sip:3003 at 191.237.65.201;transport=TCP>;tag=8175d274
Call-ID: NzM1ODA3ZjBkMTI3YzY4YjU3MjZhZjI4NTI3ZTE3Njc.
CSeq: 1 PUBLISH
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/pidf+xml
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Zoiper r28204
Event: presence
Allow-Events: presence, kpml
Content-Length: 262

<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
          entity="sip:3003 at 191.237.65.201;transport=TCP">
  <tuple id="3003" >
     <status><basic>open</basic></status>
     <note>Online</note>
  </tuple>
</presence>
SUBSCRIBE sip:3003 at 191.237.65.201;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 76.122.73.37:52404;branch=z9hG4bK-d8754z-62dc0eb431798193-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:3003 at 76.122.73.37:52404;transport=TCP>
To: "3003"<sip:3003 at 191.237.65.201;transport=TCP>
From: "3003"<sip:3003 at 191.237.65.201;transport=TCP>;tag=a93c4936
Call-ID: YTRkYjU5NDM5MTMwYmVhZmYwNWQzYjMxYzE5MzA3MTY.
CSeq: 1 SUBSCRIBE
Expires: 600
Accept: application/watcherinfo+xml
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Zoiper r28204
Event: presence.winfo
Allow-Events: presence, kpml
Content-Length: 0


<--- Transmitting SIP response (558 bytes) to TCP:76.122.73.37:52404 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 76.122.73.37:52404;rport=52404;received=76.122.73.37;branch=z9hG4bK-d8754z-c8abe7bec5d45cd9-1---d8754z-
Call-ID: NzM1ODA3ZjBkMTI3YzY4YjU3MjZhZjI4NTI3ZTE3Njc.
From: "3003" <sip:3003 at 191.237.65.201>;tag=8175d274
To: "3003" <sip:3003 at 191.237.65.201>;tag=z9hG4bK-d8754z-c8abe7bec5d45cd9-1---d8754z-
CSeq: 1 PUBLISH
WWW-Authenticate: Digest  realm="asterisk",nonce="1421393822/1a0e8a97eb38651fdf05ab18c6f0883d",opaque="3ba848a40f496b47",algorithm=md5,qop="auth"
Server: FPBX-12.0.25(13.1.0)
Content-Length:  0


<--- Received SIP request (725 bytes) from TCP:76.122.73.37:52404 --->
PUBLISH sip:3003 at 191.237.65.201;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 76.122.73.37:52404;branch=z9hG4bK-d8754z-c8abe7bec5d45cd9-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:3003 at 76.122.73.37:52404;transport=TCP>
To: "3003"<sip:3003 at 191.237.65.201;transport=TCP>
From: "3003"<sip:3003 at 191.237.65.201;transport=TCP>;tag=8175d274
Call-ID: NzM1ODA3ZjBkMTI3YzY4YjU3MjZhZjI4NTI3ZTE3Njc.
CSeq: 1 PUBLISH
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/pidf+xml
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Zoiper r28204
Event: presence
Allow-Events: presence, kpml
Content-Length: 262

<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
          entity="sip:3003 at 191.237.65.201;transport=TCP">
  <tuple id="3003" >
     <status><basic>open</basic></status>
     <note>Online</note>
  </tuple>
</presence>
SUBSCRIBE sip:3003 at 191.237.65.201;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 76.122.73.37:52404;branch=z9hG4bK-d8754z-62dc0eb431798193-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:3003 at 76.122.73.37:52404;transport=TCP>
To: "3003"<sip:3003 at 191.237.65.201;transport=TCP>
From: "3003"<sip:3003 at 191.237.65.201;transport=TCP>;tag=a93c4936
Call-ID: YTRkYjU5NDM5MTMwYmVhZmYwNWQzYjMxYzE5MzA3MTY.
CSeq: 1 SUBSCRIBE
Expires: 600
Accept: application/watcherinfo+xml
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Zoiper r28204
Event: presence.winfo
Allow-Events: presence, kpml
Content-Length: 0


<--- Transmitting SIP response (560 bytes) to TCP:76.122.73.37:52404 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 76.122.73.37:52404;rport=52404;received=76.122.73.37;branch=z9hG4bK-d8754z-62dc0eb431798193-1---d8754z-
Call-ID: YTRkYjU5NDM5MTMwYmVhZmYwNWQzYjMxYzE5MzA3MTY.
From: "3003" <sip:3003 at 191.237.65.201>;tag=a93c4936
To: "3003" <sip:3003 at 191.237.65.201>;tag=z9hG4bK-d8754z-62dc0eb431798193-1---d8754z-
CSeq: 1 SUBSCRIBE
WWW-Authenticate: Digest  realm="asterisk",nonce="1421393822/1a0e8a97eb38651fdf05ab18c6f0883d",opaque="3c8d11405d1d6833",algorithm=md5,qop="auth"
Server: FPBX-12.0.25(13.1.0)
Content-Length:  0


<--- Received SIP request (1196 bytes) from TCP:76.122.73.37:52404 --->
REGISTER sip:191.237.65.201;transport=TCP SIP/2.0
Via: SIP/2.0/TCP 76.122.73.37:52404;branch=z9hG4bK-d8754z-eddccdf04f76f8f1-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:3003 at 76.122.73.37:52404;rinstance=3e6db54c4fe6cf2a;transport=TCP;X-PUSH-URI=http://s.notify.live.net/u/1/bn1/HmQAAAATDCA5qF7w--acBUvAWKFDdybpUdixN8IklFWFbirVNTZJukGAxJw4l0pnwIorzlRB1jw_IIBBo9T80z0-1wPw/d2luZG93c3Bob25lZGVmYXVsdA/EW_BnIu3fUOH7FePoWYHNw/mdWiTaGBmvmq8Bc6a1kHWu41kJ4>
To: "3003"<sip:3003 at 191.237.65.201;transport=TCP>
From: "3003"<sip:3003 at 191.237.65.201;transport=TCP>;tag=364fbc3a
Call-ID: MGQxYzYwMjQ4ZjEzMjAwZDAzYmYwOTE3NDk1ODFmZDU.
CSeq: 4 REGISTER
Expires: 86400
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Zoiper r28204
Authorization: Digest username="3003",realm="asterisk",nonce="1421393822/1a0e8a97eb38651fdf05ab18c6f0883d",uri="sip:191.237.65.201;transport=TCP",response="4599ff43e23d8c901987d31e16ab88d4",cnonce="bcaa8a5bb8f411d28d6213604ed6b592",nc=00000001,qop=auth,algorithm=md5,opaque="15b312297a0c81fc"
Allow-Events: presence, kpml
Content-Length: 0


[2015-01-16 07:37:02] ERROR[32886]: res_pjsip_registrar.c:504 rx_task: Unable to bind contact 'sip:3003 at 76.122.73.37:52404;transport=TCP;rinstance=3e6db54c4fe6cf2a;X-PUSH-URI=▒▒▒' to AOR '3003'
<--- Transmitting SIP response (439 bytes) to TCP:76.122.73.37:52404 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP 76.122.73.37:52404;rport=52404;received=76.122.73.37;branch=z9hG4bK-d8754z-eddccdf04f76f8f1-1---d8754z-
Call-ID: MGQxYzYwMjQ4ZjEzMjAwZDAzYmYwOTE3NDk1ODFmZDU.
From: "3003" <sip:3003 at 191.237.65.201>;tag=364fbc3a
To: "3003" <sip:3003 at 191.237.65.201>;tag=z9hG4bK-d8754z-eddccdf04f76f8f1-1---d8754z-
CSeq: 4 REGISTER
Date: Fri, 16 Jan 2015 07:37:02 GMT
Server: FPBX-12.0.25(13.1.0)
Content-Length:  0

> Cant Register when extra data is added to Registers URI using PJSIP
> -------------------------------------------------------------------
>
>                 Key: ASTERISK-24654
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24654
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 12.1.0, 13.1.0
>         Environment: centos 6.6
> asterisk 13
> freepbx 12
> pjsips 2.2.1
>            Reporter: Allen Ford
>            Assignee: Allen Ford
>         Attachments: pjsip-debug.txt, pjsip-trace.txt
>
>
> when trying to get Push notifications to work  our soft phones on the mobile device  sends uri like the following:
> {noformat}
> '0.0.0.4:12345:3600:3003:sip:3003 at 192.168.111.34:48574,rinstance=1d02f625bec01f51,transport=UDP,X-PUSH-URI=http://s.notify.live.net/u/1/bn1/HmQAAABIJvDa7TlcHYdOD8P8GKw5K14l7MmE_eS_NeuMzo4h-AF32Y-pf_8Ux0XF24N5AIY1fV3InvnglTNyjJlFRByH/d2luZG93c3Bob25lZGVmYXVsdA/EW_BnIu3fUOH7FePoWYHNw/mdWiTaGBmvmq8Bc6a1kHWu41kJ4
> {noformat}
> If i disable push and remove extra uri headers it registers fine, Also registers fine with chan_sip.
> full debug log is here:  http://pastebin.com/raw.php?i=7e8Bm9Hi    (searching for X-PUSH-URI  would help see what i mean)
> After recompiling Pjsips to disable strict registration i am sometime able to register with 
> {noformat}
> 0.0.0.4:12345:3600:3003:sip:3003 at 192.168.111.34:48574,rinstance=1d02f625bec01f51,transport=UDP,X-PUSH-URI
> {noformat}
> (somehow it cuts  the rest of the data off starting with =)
> but when it doesn't cut the data off i get errors like this
> {noformat}
> [2015-01-02 14:41:55] ERROR[9487]: res_pjsip_registrar.c:504 rx_task: Unable to bind contact 'sip:3003 at 76.122.73.37:40300;rinstance=4e9e15dba6b67bf4;X-PUSH-URI=▒94' to AOR '3003'
> [2015-01-02 14:41:55] WARNING[9487]: res_pjsip_pubsub.c:2858 pubsub_on_rx_publish_request: No registered publish handler for event presence
> [2015-01-02 14:41:55] WARNING[9487]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
>     -- Attempted to remove non-existent contact 'sip:3003 at 76.122.73.37:40300;rinstance=4e9e15dba6b67bf4;X-PUSH-URI=if' from AOR '3003' by request
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list