[OpenSIPS-Users] remove_hf take multiple headers?
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Feb 4 15:02:42 CET 2011
I had a similar issue in a project, and what I did it to "simulate" the
list by using M4 macro (to expand the list of remove_hf() from a list of
hdr names). It works like a charm ;)
Regards,
Bogdan
Tyler Merritt wrote:
> 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 <mailto: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 <mailto: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"
>
>
--
Bogdan-Andrei Iancu
OpenSIPS Event - expo, conf, social, bootcamp
2 - 4 February 2011, ITExpo, Miami, USA
OpenSIPS solutions and "know-how"
More information about the Users
mailing list