<div dir="auto">I will send this evening a small trace. </div><br><div class="gmail_quote"><div dir="ltr">On Thu, 31 Jan 2019, 13:27 Răzvan Crainea, <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you upload somewhere a SIP trace, so we can understand the setup and <br>
SIP flow.<br>
Also, is the VIA appearing only in ACK, or in INVITE too?<br>
<br>
Best regards,<br>
Razvan<br>
<br>
On 1/31/19 2:21 PM, Johan De Clercq wrote:<br>
> 2 different ones and I use 244<br>
> <br>
> On Thu, 31 Jan 2019, 13:20 Răzvan Crainea, <<a href="mailto:razvan@opensips.org" target="_blank" rel="noreferrer">razvan@opensips.org</a> <br>
> <mailto:<a href="mailto:razvan@opensips.org" target="_blank" rel="noreferrer">razvan@opensips.org</a>>> wrote:<br>
> <br>
>     Hi, Johan!<br>
> <br>
>     Are there two identical via headers, or only one?<br>
>     What is the OpenSIPS version you are using?<br>
> <br>
>     Best regards,<br>
>     Răzvan<br>
> <br>
>     On 1/30/19 9:27 PM, johan de clercq wrote:<br>
>      > Hi,<br>
>      ><br>
>      > I found it :<br>
>      ><br>
>      > 1. This code results in having only one VIA header:<br>
>      >      ##initial INVITE<br>
>      >      if (is_method("INVITE") && !has_totag())<br>
>      >      {<br>
>      >          xlog("callid=$ci: Route[0]: initial INVITE is coming in<br>
>     from A: $fU to B: $rU");<br>
>      >          xlog("callid=$ci: Route[0]: let's do accounting first");<br>
>      >          do_accounting("db","cdr");<br>
>      >          topology_hiding();<br>
>      ><br>
>      > 2. The code resulting in 2 VIA headers:<br>
>      >      ##initial INVITE<br>
>      >      if (is_method("INVITE") && !has_totag())<br>
>      >      {<br>
>      >          xlog("callid=$ci: Route[0]: initial INVITE is coming in<br>
>     from A: $fU to B: $rU");<br>
>      >          xlog("callid=$ci: Route[0]: let's do accounting first");<br>
>      >          topology_hiding();<br>
>      >          do_accounting("db","cdr");<br>
>      ><br>
>      > Is this now a bug or can somebody please explain why the code in<br>
>     2 results in 2 VIA headers ?<br>
>      ><br>
>      > -----Original Message-----<br>
>      > From: Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank" rel="noreferrer">users-bounces@lists.opensips.org</a><br>
>     <mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank" rel="noreferrer">users-bounces@lists.opensips.org</a>>> On Behalf Of vasilevalex<br>
>      > Sent: Wednesday, January 30, 2019 8:13 AM<br>
>      > To: <a href="mailto:users@lists.opensips.org" target="_blank" rel="noreferrer">users@lists.opensips.org</a> <mailto:<a href="mailto:users@lists.opensips.org" target="_blank" rel="noreferrer">users@lists.opensips.org</a>><br>
>      > Subject: Re: [OpenSIPS-Users] topology_hiding : ACK has extra via<br>
>     header.<br>
>      ><br>
>      > Hi Johan,<br>
>      ><br>
>      > We are using topology_hiding in tm mode.<br>
>      > I've checked your case, ACK has only one VIA header.<br>
>      ><br>
>      > What about BYE from the phone (if phone ends call)? Does it has<br>
>     extra VIA?<br>
>      > Do you use dialog or tm mode for topology hiding?<br>
>      ><br>
>      ><br>
>      ><br>
>      > -----<br>
>      > ---<br>
>      > Alexey Vasilyev<br>
>      > --<br>
>      > Sent from:<br>
>     <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html" rel="noreferrer noreferrer" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html</a><br>
>      ><br>
>      > _______________________________________________<br>
>      > Users mailing list<br>
>      > <a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a>><br>
>      > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>      ><br>
>      ><br>
>      > _______________________________________________<br>
>      > Users mailing list<br>
>      > <a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a>><br>
>      > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>      ><br>
> <br>
>     -- <br>
>     Răzvan Crainea<br>
>     OpenSIPS Core Developer<br>
>     <a href="http://www.opensips-solutions.com" rel="noreferrer noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
>     Meet the OpenSIPS team at the next OpenSIPS Summit:<br>
>     <a href="https://www.opensips.org/events" rel="noreferrer noreferrer" target="_blank">https://www.opensips.org/events</a><br>
> <br>
>     _______________________________________________<br>
>     Users mailing list<br>
>     <a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a>><br>
>     <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
<br>
-- <br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
   <a href="http://www.opensips-solutions.com" rel="noreferrer noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
Meet the OpenSIPS team at the next OpenSIPS Summit:<br>
   <a href="https://www.opensips.org/events" rel="noreferrer noreferrer" target="_blank">https://www.opensips.org/events</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>