Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reload configuration from within dialplan

Status
Not open for further replies.

garwain

Programmer
Jan 30, 2002
461
CA
I have an interesting setup. Basically, our asterisk server is used for managing calls after hours, and simply redirects calls to employees cellphones. the dialplan is generated by an asp page.

Currently, I have a cron job that calls wget to retrieve the page, and save the dialplan into the /etc/asterisk folder, then calls a reload. This has worked well, but the buisness rules have changed, and now, we want to cycle the dialplan as soon as a call is forwarded to an employee. I have a macro set up that fires when the call is connected, and using the system command, I can retrieve the new file easily.

What I want to know is, can I reload the dialplan from the macro with a built in command, or do I have to call the system function to execute an external reload?

Thanks.
 
I am not sure, but is there an easier way? Why not send the calls to a queue. Static Agents with their telephone numbers in there and set the queue to be round-robin.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top