Re: Voice detection on a channel using ARI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, May 11, 2016 at 4:52 AM, Nitesh Bansal <nitesh.bansal@xxxxxxxxx> 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
_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux