[OpenSIPS-Users] How to get all listening socket IP address as variable

Pavel Eremin eremina.net at gmail.com
Tue Nov 16 07:10:47 EST 2021


Hey,
to relay with specific interface i suppose you have use function
force_send_socket();
i am sure only about that scenario:
"""""""""""""
socket=udp:eth0:5060 as 1.1.1.1  #dhcp interface with external ip
socket=udp:2.2.2.2:5061
...
force_send_socket("udp:1.1.1.1:5060");
t_relay();
""""""""""""""

вт, 16 нояб. 2021 г. в 05:51, Muhamad Putra Abdullah <m.putra77 at outlook.com
>:

> Hi,
>
>
>
> The reason I’m asking is because one of the interface need to be in DHCP
>  so I need the IP address information for serthostport() and socket_out()
> to relay SIP/RTP to other interface.
>
>
>
> Thanks
>
>
>
> *From:* Muhamad Putra Abdullah
> *Sent:* Monday, 15 November, 2021 3:39 PM
> *To:* users at lists.opensips.org
> *Subject:* How to get all listening socket IP address as variable
>
>
>
> 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
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20211116/73e9090c/attachment.html>


More information about the Users mailing list