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

Julia Boudniatsky juliabo at gmail.com
Sun Mar 8 17:49:48 CET 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150308/17f84a55/attachment.html>


More information about the sr-users mailing list