<div dir="ltr"><div><div><div><div>oh, that was a typo, I changed it to TALK_DETECT.<br></div>But that wasn't going to work, as I still don't see the HTTP POST request<br></div>in wireshark setting the channel variable and still error callback isn't invoked.<br><br></div>Either I'm not using the setChannelVar API correctly or the API isn't indicating the error, it should have.<br><br></div>Nitesh<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 11, 2016 at 11:18 AM, Ben Merrills <span dir="ltr"><<a href="mailto:b.merrills@mersontech.co.uk" target="_blank">b.merrills@mersontech.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Looking at my code, it’s  ‘</span><span style="font-size:9.0pt;font-family:Consolas;color:#183691;background:white">TALK_DETECT’ not
 ‘TALKDETECT’<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#183691;background:white"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#183691;background:white">Ben</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> <a href="mailto:asterisk-app-dev-bounces@lists.digium.com" target="_blank">asterisk-app-dev-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-app-dev-bounces@lists.digium.com" target="_blank">asterisk-app-dev-bounces@lists.digium.com</a>]
<b>On Behalf Of </b>Nitesh Bansal<br>
<b>Sent:</b> 11 May 2016 09:51<br>
<b>To:</b> Asterisk Application Development discussion <<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.com</a>><br>
<b>Subject:</b> Re: [asterisk-app-dev] Voice detection on a channel using ARI<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Hi, I tried the following code to enable TALKDETECT channel variable, but seems it didn't work,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I couldn't see any HTTP post request going through to set the channel variable.<u></u><u></u></p>
<div style="margin-left:30.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">ari.channels.setChannelVar({channelId:
<a href="http://channel.id" target="_blank">channel.id</a>, variable : {'TALKDETECT(set)' : ''}},<br>
                             function(err) {<br>
                                 if(err) {<br>
                                   console.error(' failed to set channel var ', err);<br>
                                 };<br>
                             });<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">And interestingly, it didn't hit the error condition either, any ideas what could be wrong with it?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<p class="MsoNormal">Nitesh<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, May 10, 2016 at 5:28 PM, Joshua Colp <<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Nitesh Bansal wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">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.<u></u><u></u></p>
</blockquote>
<p class="MsoNormal"><br>
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" target="_blank">
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_TALK_DETECT</a><span style="color:#888888"><br>
<br>
<span>-- </span><br>
<span>Joshua Colp</span><br>
<span>Digium, Inc. | Senior Software Developer</span><br>
<span>445 Jan Davis Drive NW - Huntsville, AL 35806 - US</span><br>
<span>Check us out at: <a href="http://www.digium.com" target="_blank">
www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></span><br>
<br>
<br>
<span>_______________________________________________</span><br>
<span>asterisk-app-dev mailing list</span><br>
<span><a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.com</a></span><br>
<span><a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a></span></span><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div><div class="MsoNormal" style="text-align:center" align="center">
<hr style="color:#a0a0a0" align="center" size="1" noshade width="100%">
</div>
<p class="MsoNormal">No virus found in this message.<br>
Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
Version: 2016.0.7596 / Virus Database: 4565/12194 - Release Date: 05/08/16<u></u><u></u></p>
</div>
</div>
</div>

<br>_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com">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>
<br></blockquote></div><br></div>