[OpenSIPS-Users] Automating OpenSIPs Deployment

Jesus Rodriguez jesusr at voztele.com
Sun Oct 26 10:34:51 CET 2008


Hi Woody,


> I am needing to bring up multiple Opensips instance, so I am looking  
> for ways to try to automate the deployment of a new Opensips as much  
> as possible.  The two questions I am struggling with are:
>
> 1.  Inside opensips.cfg, I need to put in these lines:
> listen=udp:192.168.1.101:5060
> listen=tcp:192.168.1.101:5060
> Is there anyway to feed in these info from command line when  
> starting opensips or is there anyway for opensips to look it up from  
> DB or config files?


You can use M4 to do this:

http://www.kamailio.net/docs/scripting.html



> 2.  Opensips is using the opensips.cfg under the default dir  /usr/ 
> local/etc/opensips/opensips.cfg
>
> Is it possible for me to change this dir, so I can have multiple  
> Opensips look up the same opensips.cfg from a mounted dir?


Use "-f /path/to/your/config" when starting opensips.


Saludos
JesusR.

------------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr at voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------------







More information about the Users mailing list