<div dir="ltr">Here it is <div>version: opensips 3.4.2 (x86_64/linux)<br></div><div>git revision: 8a6e78dde<br></div><div><br></div><div><div><br class="gmail-Apple-interchange-newline">Regards,</div><div>Jason</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 24 Feb 2024 at 01:53, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<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">What version / revision (opensips -v) do you
have there ?<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.02.2024 14:02, nz deals wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Bogdan,
<div><br>
</div>
<div>The opensips is only listening on 192.xx. internal ip. It
is Google VM so the public IP 202.x is assigned.</div>
<div><br>
</div>
<div>Yes, that is correct. I advertise from a script
like set_advertised_address("192.x")</div>
<div>but I have the following in the config.</div>
<div><br>
</div>
<div>advertised_address=202.x<br>
alias=202.x<br>
</div>
<div><br>
</div>
<div>Yes, I use t_relay for INVITE and CANCEL.</div>
<div><br>
</div>
<div>Just more detail for CANCEL. I use the following:-</div>
<div>if (is_method("CANCEL")) {<br>
</div>
<div> if (t_check_trans())<br>
t_relay();<br>
exit;<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>
<div>Regards,</div>
<div>Jason</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, 24 Feb 2024 at 00:53,
Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
Jason<br>
<br>
So you advertise fro m script the 192.x address and also have
the global <br>
advertise with 202.x ? is you opensips listening on a totally
different IP?<br>
<br>
And for the INVITE and CANCEL, you use t_relay(), right ?<br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
<br>
OpenSIPS Founder and Developer<br>
<a href="https://www.opensips-solutions.com" rel="noreferrer" target="_blank">https://www.opensips-solutions.com</a><br>
<a href="https://www.siphub.com" rel="noreferrer" target="_blank">https://www.siphub.com</a><br>
<br>
On 22.02.2024 23:08, nz deals wrote:<br>
> Hello everyone,<br>
><br>
> I have a weird issue, when i send the invite i force the
following.<br>
> set_advertised_address("192.168.XX.XX");<br>
> so it is using my internal IP in the VIA.<br>
><br>
> When i send CANCEL, it is using my Public IP which is
also defined in <br>
> the config as a global. advertised_address=202.xx.xx.xx<br>
> alias= 202.xx.xx.xx<br>
><br>
> Anyway to fix my CANCEL's VIA so it starts using my
internal ip i.e <br>
> 192.168.xx.xx ?<br>
> I tried it manually via setting set_advertised but it
does not get <br>
> changed on CANCEL.<br>
><br>
> Thanks.<br>
><br>
> Regards,<br>
> Jason<br>
><br>
> _______________________________________________<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>
<br>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote></div>