Page 1 of 1

how to Change Setting/Details Manually

PostPosted: Thu Aug 18, 2011 5:22 pm
by bryan.kewl
GoAutoDial 2.1CE
VICIDIAL VERSION: 2.4-325c
BUILD: 110430-1924

Is it possible to change/modify settings/details manually or using a custom script. For example, a custom script to change carrier details or changing user/phone details. I don't want to grant admin access to others, but I do want to give some users extra rights.

PS: I just checked that all the details are saved in database, so if there is a script which changes the values directly in the database, will these new details be applied automatically or we need to reload asterisk?

PostPosted: Thu Aug 18, 2011 7:16 pm
by williamconley
if you change a carrier or a phone, you'll need to reload asterisk. this can be done easily by modifying the value in Servers to "rebuild .conf". The system checks this value every minute and applies changes if they have been made.

PostPosted: Thu Aug 18, 2011 11:27 pm
by bryan.kewl
so i should write a script which will update the appropriate tables and thats all. The server will reload itself within 2 minutes.

Can I use this approach to add users/carriers/campaigns/groups etc or any other stuff in database?

PostPosted: Fri Aug 19, 2011 12:09 am
by williamconley
yep. just remember to tell it to reload the .conf when you are done. within 60 seconds (at the :00) it will reload if that value tells it to. not necessary for campaigns or groups or users. just carriers and phones.

PostPosted: Fri Aug 19, 2011 1:13 pm
by bryan.kewl
thanks, but how to tell it to reload? I know how to reload from asterisk CLI, but is there anyway to reload using script or some db-change?

PostPosted: Sat Aug 20, 2011 9:37 am
by williamconley
by modifying the value in Servers to "rebuild .conf".
Admin->Servers ... there is a setting there to tell it to rebuild the .conf files (one setting is for "permission", but one is actually "rebuild NOW please" and resets to No after the files are rebuilt).