[OpenSIPS-Users] How to get all listening socket IP address as variable
Muhamad Putra Abdullah
m.putra77 at outlook.com
Wed Nov 17 03:20:37 EST 2021
Hi,
Sorry. I’m new to opensips. How can I do this?
Regards
From: Users <users-bounces at lists.opensips.org> On Behalf Of David Villasmil
Sent: Wednesday, 17 November, 2021 10:34 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] How to get all listening socket IP address as variable
You can pass it to opensips as a variable on startup.
On Wed, 17 Nov 2021 at 00:19, Muhamad Putra Abdullah <m.putra77 at outlook.com<mailto:m.putra77 at outlook.com>> wrote:
Hi,
Is there a way to get the IP address of DHCP interface to use in the script? I can get the call go through if I set both the interface as static.
Regards
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Bogdan-Andrei Iancu <bogdan at opensips.org<mailto:bogdan at opensips.org>>
Sent: Tuesday, November 16, 2021, 6:45 PM
To: OpenSIPS users mailling list; Muhamad Putra Abdullah
Subject: Re: [OpenSIPS-Users] How to get all listening socket IP address as variable
Hi,
via the socket_xx() vars you can get only the sockets relative to/used by that call, you cannot iterate thru the listening sockets.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
https://opensips.org/training/OpenSIPS_eBootcamp_2021/
On 11/15/21 9:39 AM, Muhamad Putra Abdullah wrote:
Hi,
I have 2 listening interface for opensips 3.2. How do I get both IP address to be used as variable in opensips config file? I try to use socket_in/ socket_out but failed to get the other interface IP address.
Thanks
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Regards,
David Villasmil
email: david.villasmil.work at gmail.com<mailto:david.villasmil.work at gmail.com>
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20211117/9132cdf8/attachment-0001.html>
More information about the Users
mailing list