<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Robert,<br>
      <br>
      As from SIP perspective both TO and FROM hdrs have the same
      syntax, internally OpenSIPS uses the same function "parse_to()"
      for parsing both hdrs. So, we are all good here :)<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 23.11.2023 21:36, Robert Dyck wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:3640051.V25eIC5XRa@leno.mylan">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">While
        running opensips in debug mode I noticed that for initial
        requests of dialog creating methods the debug logs were showing
        a To tag where none actually exists. The tag displayed was
        actually the From tag.</p>
      <br>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span
          style="color:#000000;"><span style="font-family:monospace;"><span
              style="background-color:#ffffff;">INVITE <a class="moz-txt-link-freetext" href="sip:8@192.168.1.2">sip:8@192.168.1.2</a>
              SIP/2.0 </span></span></span><br>
        Via: SIP/2.0/UDP 192.168.1.3:5060;branch=z9hG4bK.k7nLoQHpR;rport
        <br>
        From: <a class="moz-txt-link-rfc2396E" href="sip:7@192.168.1.2"><sip:7@192.168.1.2></a>;<strong>tag=GSq6JzXiH </strong><br>
        To: <a class="moz-txt-link-freetext" href="sip:8@192.168.1.2">sip:8@192.168.1.2</a> <br>
        CSeq: 21 INVITE <br>
        Call-ID: VCALnmUf8V <br>
        <br>
        <br>
        Nov 23 11:02:32 [1131200] DBG:maxfwd:is_maxfwd_present: value =
        70 <br>
        Nov 23 11:02:32 [1131200] <strong>DBG:sipmsgops:has_totag: no
          totag </strong><br>
        Nov 23 11:02:32 [1131200] Initial request, method is INVITE, URI
        is <a class="moz-txt-link-freetext" href="sip:8@192.168.1.2">sip:8@192.168.1.2</a> <br>
        <br>
        Nov 23 11:02:32 [1131200] DBG:core:check_self: host != me <br>
        Nov 23 11:02:32 [1131200] DBG:core:parse_headers: flags=78 <br>
        Nov 23 11:02:32 [1131200] DBG:tm:t_lookup_request: start
        searching: hash=42361, isACK=0 <br>
        Nov 23 11:02:32 [1131200] DBG:tm:matching_3261: RFC3261
        transaction matching failed <br>
        Nov 23 11:02:32 [1131200] DBG:tm:t_lookup_request: no
        transaction found <br>
        Nov 23 11:02:32 [1131200] <strong>DBG:core:parse_to_param:
          tag=GSq6JzXiH </strong><br>
        Nov 23 11:02:32 [1131200] DBG:core:parse_to_param: end of header
        reached, state=11 <br>
        <br>
        <br>
        PUBLISH <a class="moz-txt-link-freetext" href="sip:7@192.168.1.2">sip:7@192.168.1.2</a> SIP/2.0 <br>
        Via: SIP/2.0/UDP 192.168.1.3:5060;branch=z9hG4bK.myBdBZt3P;rport
        <br>
        From: <a class="moz-txt-link-rfc2396E" href="sip:7@192.168.1.2"><sip:7@192.168.1.2></a>;<strong>tag=cbp~iz4fq</strong> <br>
        To: <a class="moz-txt-link-freetext" href="sip:7@192.168.1.2">sip:7@192.168.1.2</a> <br>
        CSeq: 21 PUBLISH <br>
        Call-ID: cRC6Gw590w <br>
        Max-Forwards: 70 </p>
      <p> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Nov
        23 11:07:08 [1133909] DBG:maxfwd:is_maxfwd_present: value = 70 <br>
        Nov 23 11:07:08 [1133909] <strong>DBG:sipmsgops:has_totag: no
          totag</strong> <br>
        Nov 23 11:07:08 [1133909] Initial request, method is PUBLISH,
        URI is <a class="moz-txt-link-freetext" href="sip:7@192.168.1.2">sip:7@192.168.1.2</a> </p>
      <p> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Nov
        23 11:07:08 [1133909] DBG:core:check_self: host != me <br>
        Nov 23 11:07:08 [1133909] DBG:core:parse_headers: flags=78 <br>
        Nov 23 11:07:08 [1133909] DBG:tm:t_lookup_request: start
        searching: hash=7222, isACK=0 <br>
        Nov 23 11:07:08 [1133909] DBG:tm:matching_3261: RFC3261
        transaction matching failed <br>
        Nov 23 11:07:08 [1133909] DBG:tm:t_lookup_request: no
        transaction found <br>
        Nov 23 11:07:08 [1133909] <strong>DBG:core:parse_to_param:
          tag=cbp~iz4fq</strong> <br>
        Nov 23 11:07:08 [1133909] DBG:core:parse_to_param: end of header
        reached, state=11 </p>
      <p> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">SUBSCRIBE
        <a class="moz-txt-link-freetext" href="sip:rls@192.168.1.2">sip:rls@192.168.1.2</a> SIP/2.0 <br>
        Via: SIP/2.0/UDP 192.168.1.3:5060;branch=z9hG4bK.OkkDHBafu;rport
        <br>
        From: <a class="moz-txt-link-rfc2396E" href="sip:7@192.168.1.2"><sip:7@192.168.1.2></a>;<strong>tag=g2aNdkn4o </strong><br>
        To: <a class="moz-txt-link-freetext" href="sips:rls@192.168.1.2">sips:rls@192.168.1.2</a> <br>
        CSeq: 21 SUBSCRIBE <br>
        Call-ID: L9LKmnZVY7 <br>
        Max-Forwards: 69 <br>
        <br>
        <br>
        Nov 23 11:07:07 [1133909] DBG:maxfwd:is_maxfwd_present: value =
        70 <br>
        Nov 23 11:07:07 [1133909] <strong>DBG:sipmsgops:has_totag: no
          totag</strong> <br>
        Nov 23 11:07:07 [1133909] Initial request, method is SUBSCRIBE,
        URI is <a class="moz-txt-link-freetext" href="sip:rls@192.168.1.2">sip:rls@192.168.1.2</a> </p>
      <p> </p>
      <p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Nov
        23 11:07:07 [1133909] DBG:core:check_self: host != me <br>
        Nov 23 11:07:07 [1133909] DBG:core:parse_headers: flags=78 <br>
        Nov 23 11:07:07 [1133909] DBG:tm:t_lookup_request: start
        searching: hash=33557, isACK=0 <br>
        Nov 23 11:07:07 [1133909] DBG:tm:matching_3261: RFC3261
        transaction matching failed <br>
        Nov 23 11:07:07 [1133909] DBG:tm:t_lookup_request: no
        transaction found <br>
        Nov 23 11:07:07 [1133909] <strong>DBG:core:parse_to_param:
          tag=g2aNdkn4o </strong><br>
        Nov 23 11:07:07 [1133909] DBG:core:parse_to_param: end of header
        reached, state=1</p>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>