On Wed, May 11, 2016 at 4:52 AM, Nitesh Bansal <nitesh.bansal@xxxxxxxxx> wrote:
NiteshEither I'm not using the setChannelVar API correctly or the API isn't indicating the error, it should have.in wireshark setting the channel variable and still error callback isn't invoked.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
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*.
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
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
_______________________________________________ asterisk-app-dev mailing list asterisk-app-dev@xxxxxxxxxxxxxxxx http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev