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

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Jan 15 19:43:34 CST 2015


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

Matt Jordan commented on ASTERISK-24654:
----------------------------------------

You were asked to open this issue by bug marshals in #asterisk (or any other IRC channel) because they couldn't determine what the problem was.

The problem is that Asterisk truncates your SIP URI in your Contact header when you append custom data to it. That's problematic for your implementation, but as a I said previously, that's not a bug. Asterisk doesn't support what your endpoint is doing. Changing that would be an improvement, but the fact that Asterisk's PJSIP channel driver doesn't support something that is custom to some other endpoint doesn't make it a bug. Nor is it a bug that {{chan_sip}} supports a longer string; that's merely a different implementation.

You are free to do any of the following:
# Provide a patch to the PJSIP stack. As an open source project, we'd be happy to have improvements made to it.
# Use {{chan_sip}} instead. While the focus of the project is on the PJSIP stack, you're more than welcome to use whatever is in Asterisk that works for you.

If you do provide a patch for this improvement, feel free to comment here and I'll be happy to reopen it. Please don't open more issues for this however - that makes bug marshal's lives more difficult, and - as I said elsewhere - wasting their time is not very nice.

> 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