[asterisk-users] how to add-edit-delete entery into asterisk conf files

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Sep 5 03:44:30 CDT 2011


On Mon, Sep 05, 2011 at 12:15:16PM +0530, virendra bhati wrote:
> Hi Sammy,
> 
> Ans of 1st question:-
> 
> As per my experiance Asterisk realtime(DB) based data will lost when your
> server is creash and you may not take backup of your server's DB.
> If any one know  then plese guide me so that I will start working on it.

You can probably get better consistency from a properly-built database.
I suggest you try some stress-testing of concurrent edits through the
manager interface. I don't think that the manager interface attempts to
provide any sort of "transaction". That is: you read the configuration,
modify it, and write it. What happens if someone else modified it in the
mean time?

> 
> Ans of 2nd question:-
> 
> Your question is correct if more then one user will access these
> configuration files then might be some problem will come.
> 
> For this issue I am just make a connection with server then close it after
> finishing the job. So problem will be avoided ....

In a multi-tennant scenario, giving users direct access to the
configuration files normally means giving them shell access (as the
Asterisk user) to the system, and hence the ability to change the
configuration. This is obviously the issue with the dialplan (System and
such). But there are plenty of other places. You meantioned
musiconhold.conf: try mode=custom and set 'application' to whatever
command you want. Put the phone on hold to run that command.

Which is to say: you need some logic to decide what can go in the
configuration Asterisk will use.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list