[OpenSIPS-Users] Removing header by contents

Răzvan Crainea razvan at opensips.org
Thu Jan 18 10:32:39 UTC 2024


Unfortunately there is no support for this in OpenSIPS - you can only 
remove a header by its name, and that would remove all occurrences.
I guess your only solution is what you already did: remove all and add 
back only what you want.

Best regards,

Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com / https://www.siphub.com

On 1/14/24 19:00, Ihor Olkhovskyi wrote:
> Hello!
> 
> Is there any easy possibility to remove header not by name, but name and 
> contents or just header number?
> 
> I have several Route headers and want to remove the first one only.
> 
> For the moment I'm thinking to remove all headers and add all but the 
> first in the loop, but maybe it's an overkill?
> 
> P.S.: Why I'm doing this - trying to implement own loose_route for some 
> experiments
> 
> Thanks in advance,
> Ihor
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list