<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    can you try with latest version from branch 4.2, I pushed a patch
    that should fix the case for f flag.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 08/03/15 17:49, Julia Boudniatsky
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAASaakajCibDweYbdzNrkbM2or5jO33bfahxR+9QNecOR9PUxg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
          <div>I received INVITE with 3 Diversion headers. <br>
            <div>I try to make <span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">substitutions
                in the body of a first Diversion header field by using
                flag "f",</span></div>
            <div><br>
            </div>
            <div><font face="Helvetica, Arial"><font
                  style="font-size:12px" color="#000000">command </font><b><font
                    style="font-size:12px" color="#000000">subst_hf("Diversion",
                    /<a class="moz-txt-link-freetext" href="sip:(.*)@/sip:$var(dU)@/">sip:(.*)@/sip:$var(dU)@/</a>", "</font><font
                    color="#ff0000" size="4">f</font><font
                    style="font-size:12px" color="#000000">") ;</font></b></font></div>
            <div><font face="Helvetica, Arial"><span
                  style="font-size:12px"><font color="#000000">substitutes
                  </font><font color="#ff0000"><b>all headers </b></font><font
                    color="#000000">Diversion instead of only first
                    header,</font></span></font></div>
            <div><font color="#000000" face="Helvetica, Arial"><span
                  style="font-size:12px"><br>
                </span></font></div>
            <div><font color="#000000" face="Helvetica, Arial"><span
                  style="font-size:12px">command </span></font><b
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px">subst_hf("Diversion",
                /<a class="moz-txt-link-freetext" href="sip:(.*)@/sip:$var(dU)@/">sip:(.*)@/sip:$var(dU)@/</a>", "</b><span
                style="font-family:Helvetica,Arial"><font
                  color="#0000ff" size="4">l</font></span><b
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px">")
                ;</b></div>
            <div><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px">substitutes
                 only </span><span
                style="font-family:Helvetica,Arial;font-size:12px"><font
                  color="#0000ff"><b>last</b></font></span><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px">
                Diversion header.</span><br>
            </div>
            <div><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px"><br>
              </span></div>
            <div><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px">Thanks
                for help,</span></div>
            <div><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px">Julia.</span></div>
            <div>
              <pre style="color:rgb(0,0,0)">
</pre>
            </div>
            <div><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px"><br>
              </span></div>
            <div><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px"><br>
              </span></div>
            <div><font color="#000000" face="Helvetica, Arial"><span
                  style="font-size:12px"><br>
                </span></font></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>