[OpenSIPS-Users] remove_hf take multiple headers?

Tyler Merritt tyler at fonality.com
Fri Feb 4 14:58:39 CET 2011


No issue at all - that's what I've been doing.  It's just a selfish "less
code is better" motive for posting the question.

It works fine as I have it configured ~ :)


On Fri, Feb 4, 2011 at 10:21 PM, Bogdan-Andrei Iancu <bogdan at opensips.org>wrote:

> Hi Tyler.
>
> remove_hf() does not accept multiple headers. What would be the issue with
> listing multiple remove_hf() for each header you need to take out?
>
> Regards,
> Bogdan
>
>
> Tyler Merritt wrote:
>
>> I tried this:
>>
>> remove_hf("Record-Route", "Server", "Supported");
>>
>> And it blows up with this:
>>
>> Feb  4 22:11:42 [32421] DBG:core:find_cmd_export_t: <remove_hf> not found
>> Feb  4 22:11:42 [32421] CRITICAL:core:yyerror: parse error in config file,
>> line 612, column 23-24: unknown command <remove_hf>, missing loadmodule?
>>
>> Can I suggest adding multiple headers to the remove_hf function in a later
>> release?  I'm working with a carrier who wants me to strip, well, about half
>> of everything Asterisk sends.
>>
>> If remove_hf supports multiple arguments - it's not documented in
>> textops.html
>>
>> Tyler
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Event - expo, conf, social, bootcamp
> 2 - 4 February 2011, ITExpo, Miami,  USA
> OpenSIPS solutions and "know-how"
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110204/ba7284de/attachment.htm>


More information about the Users mailing list