Wayne Scholar wrote:
> Not sure if I'm doing this correctly. (note .helper is just a php page
> renamed) When I'm on the server this seems to execute fine via the
> asterisk manager, but doesn't seem to fire when i do it remote thru the
> manager
>
> managerConnection.login();
> commandAction = new CommandAction("! ./s3restore-callagixml.helper
> callagixml/" + callagixml);
This question is more suited for the -users list.
You can't use the ! command through the Manager API. It only works on
the command line (using the shell you are running asterisk -r from).
There are a few other solutions, all with their own downsides:
- Originate a fake call to the System() application (clutters your CDR,
is really a hack)
- Use an SSH Java library to execute your commands
- Run a small http server/servlet container on your Asterisk boxes that
expose the services you need through HTTP and execute the commands locally.
=Stefan
--
reuter network consulting
Neusser Str. 110
50760 Koeln
Germany
Telefon: +49 221 1305699-0
Telefax: +49 221 1305699-90
E-Mail: ste...@re...
Jabber: ste...@re...
WWW: http://www.reucon.com
Steuernummern 215/5140/1791 USt-IdNr. DE220701760
|