<div dir="ltr">I agree, but it's very confusing. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 28 nov 2023 om 10:35 schreef Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<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 cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
<a href="https://www.siphub.com" target="_blank">https://www.siphub.com</a></pre>
<div>On 23.11.2023 21:36, Robert Dyck wrote:<br>
</div>
<blockquote type="cite">
<p style="margin:0px">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:0px"><span style="color:rgb(0,0,0)"><span style="font-family:monospace"><span style="background-color:rgb(255,255,255)">INVITE <a>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><sip:7@192.168.1.2></a>;<strong>tag=GSq6JzXiH </strong><br>
To: <a>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>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>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><sip:7@192.168.1.2></a>;<strong>tag=cbp~iz4fq</strong> <br>
To: <a>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:0px">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>sip:7@192.168.1.2</a> </p>
<p> </p>
<p style="margin:0px">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:0px">SUBSCRIBE
<a>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><sip:7@192.168.1.2></a>;<strong>tag=g2aNdkn4o </strong><br>
To: <a>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>sip:rls@192.168.1.2</a> </p>
<p> </p>
<p style="margin:0px">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></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>