Calling a cli function from within a dialplan

Guys,

I’d like to call a cli function from within the dialplan, is this possible? I want the do a logger refresh, so that my log files don’t get to big

rgds

The best way is with the Manager API:

voip-info.org/wiki/index.php … on+Command

You may use something like an AGI to call a script to execute the command against the Manager API using:

phpagi.sourceforge.net

So:

exten => s,1,AGI(reload.agi)

Then the reload script invokes the Manager API to issue the CLI command.

you can also use the System application with the asterisk binary.

For example, System(/usr/sbin/asterisk -rx reload) sends the command ‘reload’ to the Asterisk CLI. Getting feedback from it is hard, but it works to execute stuff