[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
Tue Jan 6 15:09:34 CST 2015


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

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

cd /usr/src
wget http://www.pjsip.org/release/2.3/pjproject-2.3.tar.bz2
tar -xjvf pjproject-2.3.tar.bz2
cdpjproject-2.3
CFLAGS='-DPJ_HAS_IPV6=1' ./configure --prefix=/usr --enable-shared --disable-sound\
  --disable-resample --disable-video --disable-opencore-amr --libdir=/usr/lib64
make dep
make
make install
___________________________________________________
    -- Added contact 'sip:3003 at 76.122.73.37:49320;rinstance=32ef8869166cacee' to AOR '3003' with expiration of 7200 seconds
    -- Unregistered SIP '3004'
    -- Removed contact 'sip:3003 at 76.122.73.37:49320;rinstance=32ef8869166cacee' from AOR '3003' due to request
    -- Added contact 'sip:3003 at 76.122.73.37:49320;rinstance=a94550d0f1513591' to AOR '3003' with expiration of 7200 seconds
[2015-01-06 21:01:51] WARNING[9053]: res_pjsip_pubsub.c:2858 pubsub_on_rx_publish_request: No registered publish handler for event presence
[2015-01-06 21:01:51] WARNING[9053]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
    -- Removed contact 'sip:3003 at 76.122.73.37:49320;rinstance=a94550d0f1513591' from AOR '3003' due to request
    -- Registered SIP '3004' at 76.122.73.37:49320
failed to extend from 256 to 371
    -- Added contact 'sip:3003 at 76.122.73.37:49320;rinstance=50642915820d2265;X-PUSH-URI=' to AOR '3003' with expiration of 7200 seconds
[2015-01-06 21:02:06] WARNING[9054]: res_pjsip_pubsub.c:2858 pubsub_on_rx_publish_request: No registered publish handler for event presence
[2015-01-06 21:02:06] WARNING[9054]: 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:49320;rinstance=50642915820d2265;X-PUSH-URI=' from AOR '3003' by request
______________________________________________________________
shutdown -r now
______________________________________________________________
    -- Added contact 'sip:3003 at 76.122.73.37:49320;rinstance=6373f168fb6f5fe9;X-PUSH-URI=' to AOR '3003' with expiration of 7200 seconds
[2015-01-06 21:07:40] WARNING[1748]: res_pjsip_pubsub.c:2858 pubsub_on_rx_publish_request: No registered publish handler for event presence
[2015-01-06 21:07:40] WARNING[1748]: 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:49320;rinstance=6373f168fb6f5fe9;X-PUSH-URI=' from AOR '3003' by request
    -- Added contact 'sip:3003 at 76.122.73.37:49320;rinstance=e5bfd96f7d2cfeb1;X-PUSH-URI=' to AOR '3003' with expiration of 7200 seconds
[2015-01-06 21:07:48] WARNING[1748]: res_pjsip_pubsub.c:2858 pubsub_on_rx_publish_request: No registered publish handler for event presence
[2015-01-06 21:07:48] WARNING[1748]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
[2015-01-06 21:07:54] WARNING[1774]: chan_sip.c:4047 retrans_pkt: Retransmission timeout reached on transmission 2839e0ea56cd18a3149450951af919c8 at 191.237.69.118:5061 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response




> 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-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