<div dir="ltr"><div><div>Hi, I tried the following code to enable TALKDETECT channel variable, but seems it didn't work,<br></div>I couldn't see any HTTP post request going through to set the channel variable.<br><br><div style="margin-left:40px">ari.channels.setChannelVar({channelId: <a href="http://channel.id">channel.id</a>, variable : {'TALKDETECT(set)' : ''}},<br>                             function(err) {<br>                                 if(err) {<br>                                   console.error(' failed to set channel var ', err);<br>                                 };<br>                             });<br><br></div>And interestingly, it didn't hit the error condition either, any ideas what could be wrong with it?<br><br></div><div>Thanks,<br></div>Nitesh<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 5:28 PM, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Nitesh Bansal wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Typo correction, I'm using ARI node library, not webrtc node library.<br>
<br>
And by not working, I meant, I don't see my log messages indicating that<br>
Asterisk<br>
didn't emit any events.<br>
</blockquote>
<br></span>
These events are only generated if the TALK_DETECT dialplan function[1] is executed on the channel, which can be done using the set variable interface provided by ARI.<br>
<br>
[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_TALK_DETECT" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_TALK_DETECT</a><span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="http://www.digium.com" rel="noreferrer" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" rel="noreferrer" target="_blank">www.asterisk.org</a><br>
<br>
<br>
_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
</font></span></blockquote></div><br></div>