<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>You have another function that is changing the contact header
      (like fix_nated_contact() or add_contact_alias()). If you want to
      keep both, then you have to use msg_apply_changes() after the
      first one that changes the contact.<br>
    </p>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 26/09/16 08:53, Igor Olhovskiy
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJTkRNu1YGUTNjGHHW2xci63zJ4X6JF62VhiE_+VNiPR4ai5dA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Also tried to do this.
        <div><br>
        </div>
        <div>Got as result</div>
        <div>…</div>
        <div>CSeq: 58923 SUBSCRIBE</div>
        <div><span style="font-size:13px">Contact: <</span><a
            moz-do-not-send="true"
            href="mailto:sip%3A11@master.rufan.at" target="_blank"
            style="font-size:13px">sip:11@master.rufan.at</a><span
            style="font-size:13px">></span></div>
        <div><span style="font-size:13px"><a class="moz-txt-link-freetext" href="sip:*">sip:*</a></span><a
            moz-do-not-send="true" href="http://97@10.0.20.81:5060/"
            target="_blank" style="font-size:13px">9<wbr>7@10.0.20.81:5060</a>Expires:
          80<br>
        </div>
        <div>…</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-09-26 3:52 GMT+03:00 Alex Balashov
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Igor,<br>
            <br>
            It might be simpler to do this:<br>
            <br>
               remove_hf("Contact")<br>
               append_hf("Contact: <$fu>\r\n");<br>
            <br>
            -- Alex<br>
            <br>
            -- <br>
            Alex Balashov | Principal | Evariste Systems LLC<br>
            1447 Peachtree Street NE, Suite 700<br>
            Atlanta, GA 30309<br>
            United States<br>
            <br>
            Tel: <a moz-do-not-send="true" href="tel:%2B1-800-250-5920"
              value="+18002505920" target="_blank">+1-800-250-5920</a>
            (toll-free) / <a moz-do-not-send="true"
              href="tel:%2B1-678-954-0671" value="+16789540671"
              target="_blank">+1-678-954-0671</a> (direct)<br>
            Web: <a moz-do-not-send="true"
              href="http://www.evaristesys.com/" rel="noreferrer"
              target="_blank">http://www.evaristesys.com/</a>, <a
              moz-do-not-send="true" href="http://www.csrpswitch.com/"
              rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
            <br>
            ______________________________<wbr>_________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org"
              target="_blank">sr-users@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
              rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">
          <div dir="ltr">Best regards,
            <div>Igor</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 Advanced Training, Berlin, Oct 24-26, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>