[SR-Users] 4.2.3 textops: flag "f" doesn't work in subst_hf(hf, subexp, flags)

Julia Boudniatsky juliabo at gmail.com
Mon Mar 9 13:10:38 CET 2015


Hello Daniel,

Thank you so much, it's working now!

BR,
Julia

On Mon, Mar 9, 2015 at 1:43 PM, Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

>  Hello,
>
> can you try with latest version from branch 4.2, I pushed a patch that
> should fix the case for f flag.
>
> Cheers,
> Daniel
>
>
> On 08/03/15 17:49, Julia Boudniatsky wrote:
>
> Hello,
>
> I received INVITE with 3 Diversion headers.
> I try to make substitutions in the body of a first Diversion header field
> by using flag "f",
>
>  command *subst_hf("Diversion", /sip:(.*)@/sip:$var(dU)@/", "f") ;*
> substitutes *all headers *Diversion instead of only first header,
>
>  command *subst_hf("Diversion", /sip:(.*)@/sip:$var(dU)@/", "*l*") ;*
> substitutes  only *last* Diversion header.
>
>  Thanks for help,
> Julia.
>
>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Kamailio World Conference, May 27-29, 2015
> Berlin, Germany - http://www.kamailioworld.com
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150309/33af27cc/attachment.html>


More information about the sr-users mailing list