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.
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.