<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>the To URI starts with < -- see:</p>
    <p><br>
    </p>
    <p>To: <<a class="moz-txt-link-freetext" href="sip:2057030997@72.31.12.161;tag=gK006cb08b">sip:2057030997@72.31.12.161;tag=gK006cb08b</a></p>
    <br>
    It needs an ending > -- it should be before ;tag= if you don't
    want tag to be uri parameter instead of to header parameter (as in
    rfc).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <div class="moz-cite-prefix">On 04/01/2017 16:00, AL S wrote:<br>
    </div>
    <blockquote
cite="mid:SN2PR0601MB09751263587FE3F6BFEA3154E6610@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>Hi,</p>
        <p><br>
        </p>
        <p>Kamailio is complaining about unexpected char [#015] in TO
          header of INVITE:</p>
        <p><br>
        </p>
        <div>Jan  3 14:55:41 tpa-ar-openser01 /usr/sbin/kamailio[4782]:
          ERROR: <core> [parser/parse_to.c:626]: ERROR: parse_to :
          unexpected char [#015] in status 6:
          <<<a class="moz-txt-link-rfc2396E" href="sip:2057030997@72.31.12.161;tag=gK006cb08b"><sip:2057030997@72.31.12.161;tag=gK006cb08b></a>>
          .</div>
        <div>Jan  3 14:55:41 tpa-ar-openser01 /usr/sbin/kamailio[4782]:
          ERROR: <core> [parser/msg_parser.c:180]: ERROR:
          get_hdr_field: bad to header</div>
        <div>Jan  3 14:55:41 tpa-ar-openser01 /usr/sbin/kamailio[4782]:
          INFO: <core> [parser/msg_parser.c:353]: ERROR: bad
          header field [To: <<a class="moz-txt-link-freetext" href="sip:2057030997@">sip:2057030997@</a>]</div>
        <div>Jan  3 14:55:41 tpa-ar-openser01 /usr/sbin/kamailio[4782]:
          ERROR: tm [t_lookup.c:1118]: ERROR: reply cannot be parsed</div>
        <div><br>
        </div>
        <div>Here is the TO header for the same call in both text and
          hex format. I am unable to see any ^M char in this TO header. </div>
        <div><br>
        </div>
        <div>To: <<a class="moz-txt-link-freetext" href="sip:2057030997@72.31.12.161;tag=gK006cb08b">sip:2057030997@72.31.12.161;tag=gK006cb08b</a></div>
        <div><br>
        </div>
        <div>546f3a203c7369703a323035373033303939374037322e33312e31322e3136313e3b7461673d674b30303663623038620d0a</div>
        <div><br>
        </div>
        <div>Any help would be appreciated. </div>
        <div><br>
        </div>
        <div>AS,</div>
        <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>