[asterisk-app-dev] Voice detection on a channel using ARI
Matthew Jordan
mjordan at digium.com
Wed May 11 07:57:14 CDT 2016
On Wed, May 11, 2016 at 4:52 AM, Nitesh Bansal <nitesh.bansal at gmail.com>
wrote:
> oh, that was a typo, I changed it to TALK_DETECT.
> But that wasn't going to work, as I still don't see the HTTP POST request
> in wireshark setting the channel variable and still error callback isn't
> invoked.
>
> Either I'm not using the setChannelVar API correctly or the API isn't
> indicating the error, it should have.
>
> Nitesh
>
>
Assuming something is getting transmitted, then you probably need the =
sign after (set):
ari.channels.setChannelVar({channelId: channel.id, variable :
{'TALKDETECT(set)=' : ''}},
Weird, I know, but when writing to a dialplan function, you have to write
*something*.
You can see a dialplan snippet setting up the talk detection in the
func_talkdetect test here:
http://git.asterisk.org/gitweb/?p=asterisk/testsuite.git;a=blob;f=tests/funcs/func_talkdetect/configs/ast1/extensions.conf;h=587e233a8181d404d0709777dc17608c3a9b3821;hb=HEAD
If nothing is actually getting POSTed... then I'm not sure.
--
Matthew Jordan
Digium, Inc. | Director of Technology
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20160511/1dbe38b8/attachment.html>
More information about the asterisk-app-dev
mailing list