pjsip headers extraction

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

 



Hi,
Asterisk 13
pjproject-2.2.1

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:909 at 10.8.3.36: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:3003 at 76.122.73.37: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:3003 at 76.122.73.37: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



"Success is not measured by the positions you reach in life but by the obstacles you overcome -B.T.W"

[cid:part1.02070508.07080606 at cyfordtechnologies.com]<http://mandrillapp.com/track/click/30058279/www.cyfordtechnologies.com?p=eyJzIjoiZnlGTjZuSURrTEZaMDdVckszbjd5eFAyQ0tjIiwidiI6MSwicCI6IntcInVcIjozMDA1ODI3OSxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvd3d3LmN5Zm9yZHRlY2hub2xvZ2llcy5jb21cXFwvXCIsXCJpZFwiOlwiMTlmYWY1MzlhNGM1NGZhNDhjZTgzN2E0Yzc1NWIyMzFcIixcInVybF9pZHNcIjpbXCJkNjFmOWU5N2Y5YmZkNTFjYzZjMmMyOTc4OGJmZTlmOWNhODc2ZmVkXCJdfSJ9>Director of Technology
Allen D. Ford
4290-106 Bells Ferry Road, Suite 20,
Kennesaw, GA 30144
Tel: (404) 913-1821  ext. 2000:
Email: allen at cyfordtechnologies.com<mailto:allen at cyfordtechnologies.com>
Web Address: http://mandrillapp.com/track/click/30058279/www.cyfordtechnologies.comhttp?p=eyJzIjoibVZlOERtZDI0UXc5T0ZhTnhTck1fajNjWmVvIiwidiI6MSwicCI6IntcInVcIjozMDA1ODI3OSxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvd3d3LmN5Zm9yZHRlY2hub2xvZ2llcy5jb208aHR0cDpcXFwvXFxcL3d3dy5jeWZvcmR0ZWNobm9sb2dpZXMuY29tXFxcL1wiLFwiaWRcIjpcIjE5ZmFmNTM5YTRjNTRmYTQ4Y2U4MzdhNGM3NTViMjMxXCIsXCJ1cmxfaWRzXCI6W1wiMWM3OTIwYTAxMGExZmNjYTAzMmE1MWRjODRjZTMxMzJmMmVhZWVhM1wiXX0ifQ>
LinkedIn:   http://mandrillapp.com/track/click/30058279/www.linkedin.com?p=eyJzIjoiQkZoOEk2RjZOS1NSM2VoQWRvU0dGTDU2OFZ3IiwidiI6MSwicCI6IntcInVcIjozMDA1ODI3OSxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvd3d3LmxpbmtlZGluLmNvbVxcXC9pblxcXC9jeWZvcmRcIixcImlkXCI6XCIxOWZhZjUzOWE0YzU0ZmE0OGNlODM3YTRjNzU1YjIzMVwiLFwidXJsX2lkc1wiOltcIjI2MmE0MjVhMmExMWRlNWExZjdmZGQxNDMzMjg4NzgwMWQyYmU4MzlcIl19In0
FaceBook: http://mandrillapp.com/track/click/30058279/www.facebook.com?p=eyJzIjoiVFU5WFJ2RE80b2hEWkVNRG9hejZ6NHJsVEdZIiwidiI6MSwicCI6IntcInVcIjozMDA1ODI3OSxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvd3d3LmZhY2Vib29rLmNvbVxcXC9wcm9maWxlLnBocD9pZD0xMDAwMDIyNjA5NzU0NTBcIixcImlkXCI6XCIxOWZhZjUzOWE0YzU0ZmE0OGNlODM3YTRjNzU1YjIzMVwiLFwidXJsX2lkc1wiOltcImViZGY1ZjQ1OWMxYzFiMzkxNjcyN2NjMTlmNzk1ODZkODZjNWMyNThcIl19In0



NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please destroy all copies of the original message and notify the sender so that our address record can be corrected. Thank you




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150102/46bff43f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 5740 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150102/46bff43f/attachment.jpe>


[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