PJSip: How to modify SIP headers, like From, To and Contact fields?

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

 



I am using P J Sip of pjproject-1.2, in linux.

I have a need to modify / add to the core SIP header fields, like To, From and Contact.

Here is an example:
This is the current contact message that PJSIP INVITE creates (for outgoing INVITE):
Contact: <sip:858*610*10000 at 10.8.39.34:5060>

I need to change this to something like this: Contact: <sip:858*610*10000 at 10.8.39.34:5060>;cache;range="23,24,25,26"

Modifying the "local Contact" argument of pjsip_dlg_create_uac, and passing it "<sip:858*610*10000 at 10.8.39.34:5060>;cache;range="23,24,25,26"" causes a failure of pjsip_dlg_create_uac.

Any ideas how to do this?
Bala


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090617/fb4afa4d/attachment.html>


[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