Hi Jason,
Not sure about that, as time as I'm not sure about the misbehavior here.
Usually the "advertising" per message is tricky to use because there is
no persistence (across sip packages) of the advertising you did on the
request.
The best / safer way to go is with advertising per socket/listener, if
possible.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 26.02.2024 22:36, nz deals wrote:
Hi Bogdan,
Do you believe that removing the 'advertised_address' from the global
configuration will solve the issue?
Regards,
Jason
On Sat, 24 Feb 2024 at 10:09, nz deals <[email protected]> wrote:
Here it is
version: opensips 3.4.2 (x86_64/linux)
git revision: 8a6e78dde
Regards,
Jason
On Sat, 24 Feb 2024 at 01:53, Bogdan-Andrei Iancu
<[email protected]> wrote:
What version / revision (opensips -v) do you have there ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 23.02.2024 14:02, nz deals wrote:
Hi Bogdan,
The opensips is only listening on 192.xx. internal ip. It is
Google VM so the public IP 202.x is assigned.
Yes, that is correct. I advertise from a script
like set_advertised_address("192.x")
but I have the following in the config.
advertised_address=202.x
alias=202.x
Yes, I use t_relay for INVITE and CANCEL.
Just more detail for CANCEL. I use the following:-
if (is_method("CANCEL")) {
if (t_check_trans())
t_relay();
exit;
}
Thanks
Regards,
Jason
On Sat, 24 Feb 2024 at 00:53, Bogdan-Andrei Iancu
<[email protected]> wrote:
Hi Jason
So you advertise fro m script the 192.x address and also
have the global
advertise with 202.x ? is you opensips listening on a
totally different IP?
And for the INVITE and CANCEL, you use t_relay(), right ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 22.02.2024 23:08, nz deals wrote:
> Hello everyone,
>
> I have a weird issue, when i send the invite i force
the following.
> set_advertised_address("192.168.XX.XX");
> so it is using my internal IP in the VIA.
>
> When i send CANCEL, it is using my Public IP which is
also defined in
> the config as a global. advertised_address=202.xx.xx.xx
> alias= 202.xx.xx.xx
>
> Anyway to fix my CANCEL's VIA so it starts using my
internal ip i.e
> 192.168.xx.xx ?
> I tried it manually via setting set_advertised but it
does not get
> changed on CANCEL.
>
> Thanks.
>
> Regards,
> Jason
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users