[OpenSIPS-Users] help with core parameter Listen sintax

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Feb 3 18:03:40 CET 2016


Hi Rodrigo,

You need to fix this outside opensips, before actual start - make a 
script to detect the available and routable interfaces and their IP 
addresses and use M4 or any text processing tool to replace into your 
opensips.cfg the listening IP with the detected one - and only after 
doing this you actually start opensips.

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 03.02.2016 16:10, Rodrigo Pimenta Carvalho wrote:
>
> Hi.
>
>
> In my opensips.cfg I have something like this:
>
>
> /
> listen=tcp:eth0:5060   # CUSTOMIZE ME
> listen=tls:eth0:5061   # CUSTOMIZE ME
> listen=tls:eth0:5071/
>
>
> However, the device where opensips run will uses a wireless connection 
> or a cable.
>
> I can not know for sure what will be the chosen interface. The 
> customer will decide in the future.
>
>
> In this case, I would like to abandon the 'eth0' choice above.
>
>
> How to change the listen attribute so that it will works well for 
> wireless interfaces or 'eth' ones in a generic way?
>
>
> Any hint will be very helpful!
>
> Thanks a lot.
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
>
> _______________________________________________
> 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/20160203/3e97561d/attachment.htm>


More information about the Users mailing list