<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p><br>
    </p>
    <p>can you check to see if the UA is sending back same values for
      From/To as kamailio is sending to it?</p>
    <p><br>
    </p>
    <p>If not, then it doesn't really care for the constraint of not
      changing them, so you can skip auto restore of those headers. Or
      configure kamailio uac module to use dialog module for changing
      these headers instead of record routing.<br>
    </p>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 16/12/2016 15:37, AL S wrote:<br>
    </div>
    <blockquote
cite="mid:SN2PR0601MB0975F9BC9F69C01735EE94A5E69C0@SN2PR0601MB0975.namprd06.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
        dir="ltr">
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">Hi,</p>
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;"><br>
        </p>
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">An INVITE with following FROM and TO headers
          received by Kamailio:</p>
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;"><br>
        </p>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <span style="color: rgb(114, 50, 173);">From:
            <<a class="moz-txt-link-freetext" href="sip:+11111111111@">sip:+11111111111@</a></span><span style="color: rgb(114, 50,
            173);">10.10.10.10</span><span style="color: rgb(114, 50,
            173);">;user=phone>;tag=gK006cb08b</span></div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <span style="color: rgb(114, 50, 173);">To:
            <<a class="moz-txt-link-freetext" href="sip:+12222222222@">sip:+12222222222@</a></span><span style="color: rgb(114, 50,
            173);">20.20.20.20</span><span style="color: rgb(114, 50,
            173);">;user=phone></span></div>
        <br style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">Kamailio forward it to next node with
          following FROM and TO headers:</p>
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;"><br>
        </p>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <span style="color: rgb(114, 50, 173);">From: <<a class="moz-txt-link-freetext" href="sip:+">sip:+</a></span><span
            style="font-family: Calibri, Arial, Helvetica, sans-serif,
            "Apple Color Emoji", "Segoe UI Emoji",
            NotoColorEmoji, "Segoe UI Symbol", "Android
            Emoji", EmojiSymbols; color: rgb(114, 50, 173);">11111111111</span><span
            style="color: rgb(114, 50, 173);">@10.10.10.10>;tag=gK006cb08b</span></div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <span style="color: rgb(114, 50, 173);">To: <<a class="moz-txt-link-freetext" href="sip:+">sip:+</a></span><span
            style="font-family: Calibri, Arial, Helvetica, sans-serif,
            "Apple Color Emoji", "Segoe UI Emoji",
            NotoColorEmoji, "Segoe UI Symbol", "Android
            Emoji", EmojiSymbols; color: rgb(114, 50, 173);">12222222222</span><span
            style="color: rgb(114, 50, 173);">@20.20.20.20;user=phone></span></div>
        <br style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">After 15 min, reINVITE for the same
          call received by Kamailio with following FROM and TO headers:</p>
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;"><br>
        </p>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <span style="color: rgb(114, 50, 173);">From: <sip:<span
              style="color: rgb(114, 50, 173); font-family: Calibri,
              Arial, Helvetica, sans-serif, "Apple Color
              Emoji", "Segoe UI Emoji", NotoColorEmoji,
              "Segoe UI Symbol", "Android Emoji",
              EmojiSymbols; font-size: 16px;">12222222222</span>@<span
              style="color: rgb(114, 50, 173); font-family: Calibri,
              Arial, Helvetica, sans-serif; font-size: 16px;">20.20.20.20</span>;user=phone>;tag=gK04c77151</span></div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <span style="color: rgb(114, 50, 173);">To: <sip:<span
              style="color: rgb(114, 50, 173); font-family: Calibri,
              Arial, Helvetica, sans-serif, "Apple Color
              Emoji", "Segoe UI Emoji", NotoColorEmoji,
              "Segoe UI Symbol", "Android Emoji",
              EmojiSymbols; font-size: 16px;">11111111111</span>@<span
              style="color: rgb(114, 50, 173); font-family: Calibri,
              Arial, Helvetica, sans-serif; font-size: 16px;">10.10.10.10</span>>;tag=gK006cb08b</span></div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <br>
        </div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <p style="font-family: Calibri, Arial, Helvetica, sans-serif,
            "Apple Color Emoji", "Segoe UI Emoji",
            NotoColorEmoji, "Segoe UI Symbol", "Android
            Emoji", EmojiSymbols;">
            Kamailio forward reINVITE to next node with following
            unusual characters in TO headers</p>
          <div><br>
          </div>
        </div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <span style="color: rgb(114, 50, 173); font-size: 12pt;">From:
            <sip:<span style="color: rgb(114, 50, 173); font-family:
              Calibri, Arial, Helvetica, sans-serif, "Apple Color
              Emoji", "Segoe UI Emoji", NotoColorEmoji,
              "Segoe UI Symbol", "Android Emoji",
              EmojiSymbols; font-size: 16px;">12222222222</span>@<span
              style="color: rgb(114, 50, 173); font-family: Calibri,
              Arial, Helvetica, sans-serif; font-size: 16px;">20.20.20.20</span>;user=phone>;tag=gK04c77151</span><br>
        </div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
          <span style="color: rgb(114, 50, 173);">To: <sip:<span
              style="color: rgb(114, 50, 173); font-family: Calibri,
              Arial, Helvetica, sans-serif, "Apple Color
              Emoji", "Segoe UI Emoji", NotoColorEmoji,
              "Segoe UI Symbol", "Android Emoji",
              EmojiSymbols; font-size: 16px;">11111111111</span>@<span
              style="color: rgb(114, 50, 173); font-family: Calibri,
              Arial, Helvetica, sans-serif; font-size: 16px;">10.10.10.10</span></span><span
            style="color: rgb(255, 0, 0);">\000\000</span><span
            style="color: rgb(114, 50, 173);">;user=phone>;tag=gK006cb08b</span></div>
        <br style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">I was wondering if there is a bug in
          Kamailio to insert these unusual characters.</p>
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;"><br>
        </p>
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">Thanks,</p>
        <p style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 16px;">AS</p>
        <br>
      </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-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>