[OpenSIPS-Users] Automating OpenSIPs Deployment

Giuseppe Roberti jnod at jnod.org
Sun Oct 26 19:20:38 CET 2008



Jesus Rodriguez wrote:
> 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

You can use "-l address/hostname" when starting opensips instead of 
listen=address in configuration file.
Take a look to opensips -help for more options.

> 
> 
> 
>> 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
> -------------------------------------
> 
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 

-- 
Giuseppe Roberti
<jnod at jnod.org>



More information about the Users mailing list