<div dir="ltr">I&#39;ve done some experiments on that, with partial success. Here are the findings:<div><br><div>1. You can initiate voicemail detection for current channel in mod_httapi script:</div><div><br></div><div>&lt;work&gt;</div>
<div>        &lt;execute application=&quot;avmd&quot;&gt;start&lt;/execute&gt;<br></div><div><br></div><div>this will run the detection procedure until it&#39;s terminated later in the work script</div><div><br></div><div>
&lt;execute application=&quot;avmd&quot;&gt;stop&lt;/execute&gt;<br></div><div><br></div><div>of course you need to enable &#39;avmd&#39; application in mod_httapi config</div><div><br></div><div><br></div><div>2. According to the docs, mod_avmd is supposed to set avmd_detect channel variable after detecting voicemail</div>
<div>So, I thought I can get this variable to my httapi scirpt with</div><div><br></div><div>&lt;getVariable name=&quot;avmd_detect&quot; /&gt;<br></div><div><br></div><div>(you need to enable get permission for this variable in mod_httapi config )</div>
<div><br></div><div>Unfortunately, the variable is never returned to mod_httapi (it&#39;s not present in request headers), even after mod_avmd detects the voicemail (there&#39;s an avmd::beep event reported for that channel)</div>
<div>Do you know what i&#39;m doing wrong?</div><div>My workaround for this would be to subscribe to avmd::beep events throug event socket and receive them there, bypassing http. But this is more difficult and introduces additional complexity to application.</div>
<div><br></div><div>Best regards</div><div>RG</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 7:16 PM, Rafal Gwizdala <span dir="ltr">&lt;<a href="mailto:rafal.gwizdala@gmail.com" target="_blank">rafal.gwizdala@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, is it possible to use mod_avmd from mod_httapi xml scripts? I&#39;d like the script to recognize if voicemail is being recorded and if so, play a message dedicated for that purpose. <div>
Thanks</div><span class="HOEnZb"><font color="#888888"><div>
Rafal</div></font></span></div>
</blockquote></div><br></div>