[asterisk-app-dev] ARI Channel-Exec Suggestion

Ben Merrills b.merrills at mersontech.co.uk
Sun Feb 16 10:45:39 CST 2014


Hi All,

I was wondering, what thought has been given to Exec style commands in ARI. Say for example I want to call another app within Asterisk, let's say MRCPSynth for TTS.

Looking at the channel spec, there's currently no way to execute a dial plan application on a channel. I say 'Exec' simply because I come from an AGI background.

Would something like this be a way forwards?:

POST /channels/{channelid}/exec?app=MRCPSynth
BODY: <?xml version=\"1.0\"?><speak version=\"1.0\" xml:lang=\"en-AU\" xmlns=\"http://www.w3.org/2001/10/synthesis\"><voice name='Karin' gender='female'>Hello world!</voice></speak>,p=default&i=any&f=/tmp/synth.raw

Where the application is passed in the query, and the arguments as the body of the HttpPost.

Just throwing this out there to see if others have given this consideration yet.

Cheers,

Ben (Skrusty)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20140216/fdee60bc/attachment.html>


More information about the asterisk-app-dev mailing list