[OpenSIPS-Users] Listen IP in CFG File

Bogdan-Andrei Iancu bogdan at opensips.org
Tue May 15 03:42:56 EDT 2018


Even more, you can instruct OpenSIPS to listen all existing (at startup) 
IPs:
     listen= udp:*:5060

NOTE that this approach does not cope with IP changes during runtime!

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Summit 2018
   http://www.opensips.org/events/Summit-2018Amsterdam

On 05/08/2018 09:04 PM, Ben Newlin wrote:
>
> According to the documentation, if you don’t provide an IP OpenSIPS 
> will attempt to listen on all interfaces.
>
> Also, if you want eth0, you can just use that. [1]
>
> [1] - 
> http://www.opensips.org/Documentation/Script-CoreParameters-2-4#toc37
>
> Thanks,
>
> Ben Newlin
>
> *From: *Users <users-bounces at lists.opensips.org> on behalf of 
> Alexander Perkins <alexanderhenryperkins at gmail.com>
> *Reply-To: *OpenSIPS users mailling list <users at lists.opensips.org>
> *Date: *Tuesday, May 8, 2018 at 1:51 PM
> *To: *"users at lists.opensips.org" <users at lists.opensips.org>
> *Subject: *[OpenSIPS-Users] Listen IP in CFG File
>
> Hi All.  I have several OpenSIPS servers and would like to know if 
> there is some sort of variable I can assign to the 'listen=' field of 
> the config file so that it automatically detects the local IP of the 
> system.  For example, in the case below, eth0 has an IP of 
> 172.31.37.100.  Is there a variable I can refer to instead of 
> hard-coding an IP?
>
> cid:ii_jgxyxibk1_16340de283e68464
>
> Thanks,
>
> Alex
>
>
>
> _______________________________________________
> 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/20180515/da35a79a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8454 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20180515/da35a79a/attachment.png>


More information about the Users mailing list