[patch] Remove headers by name

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

 



Hi,

Today I found myself in the need for removing from a SIP request and I 
found that the only function to do this is pjsip_msg_find_remove_hdr, 
which receives a pjsip_hdr_e header identifier.

I didn't find how to remove a header if its not defined by PJSIP, so I 
created pjsip_msg_find_remove_hdr_by_name function, analogous to 
pjsip_msg_find_hdr_by_name, which takes a pj_str_t pointer with the 
header name instead of a pjsip_hdr_e.

Patch is attached, hope is useful.


Kind regards,

-- 
Sa?l Ibarra Corretg?
AG Projects
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pjsip-3368-remove_hdr_by_name.patch
Type: text/x-diff
Size: 1455 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110223/693b4b3a/attachment.patch>


[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