Pjsip headers are being rejected or altered


#1

Hi,
Asterisk 13
pjproject-2.2.1
freepbx 12

I am trying to get my windows phone push to work with pjsips as I had it working with asterisk sip “http://www.zoiper.com/en/tutorials/push-notifications“
I am using asterisk with pjsip and I need to pull the custom uri from the register sip headers which usually looks like
Contact: sip:[email protected]:52685;rinstance=0667df2a9c36ce63;transport=UDP;X-PUSH-URI=http://db3.notify.live.net/throttledthirdparty/01.00/AQEVPwmdC_zuSZiednVGrPo6AgAAAAADOwAAAAQUZm52OkE0QUNBREI0MTdBQzBCNjQFBlVTTkMwMQ

With pjsips I had to compile with in order to even get the uri to even be able to add contact to Aor without errors
Echo “#define PJSIP_REGISTER_CLIENT_CHECK_CONTACT 0” > /usr/src/pjproject-2.2.1/pjlib/include/pj/config_site.h

After compiling this way I can see the X-PUSH-URI but the = and everything after is deleted which I need

ERROR[10018]: res_pjsip_registrar.c:504 rx_task: Unable to bind contact ‘sip:[email protected]:35542;rinstance=cbb95c4322359ec2;X-PUSH-URI=▒
’ to AOR ‘3003’
[2015-01-02 02:30:06] WARNING[10017]: res_pjsip_pubsub.c:2858 pubsub_on_rx_publish_request: No registered publish handler for event presence
[2015-01-02 02:30:06] WARNING[10017]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo
[2015-01-02 02:45:10] ERROR[10017]: res_pjsip_registrar.c:504 rx_task: Unable to bind contact ‘sip:[email protected]:35542;rinstance=cbb95c4322359ec2;X-PUSH-URI=▒
’ to AOR ‘3003’
[2015-01-02 02:45:10] WARNING[10017]: res_pjsip_pubsub.c:2858 pubsub_on_rx_publish_request: No registered publish handler for event presence
[2015-01-02 02:45:10] WARNING[10017]: res_pjsip_pubsub.c:608 subscription_get_handler_from_rdata: No registered subscribe handler for event presence.winfo

I got the information in asterisk by using this command exten => 1001,n,Set(location=${DB(SIP/Registry/1001)}) which gets from callie (not caller)
But I am trying to do it in pjsips now , and when i turn push notifications off it binds to aor fine

http://www.cyfordtechnologies.com/linux-servers/using-windows-8-push-notifications-on-asterisk-and-pjsips-or-iax