<div dir="ltr">I'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><work></div>
<div> <execute application="avmd">start</execute><br></div><div><br></div><div>this will run the detection procedure until it's terminated later in the work script</div><div><br></div><div>
<execute application="avmd">stop</execute><br></div><div><br></div><div>of course you need to enable 'avmd' 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><getVariable name="avmd_detect" /><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's not present in request headers), even after mod_avmd detects the voicemail (there's an avmd::beep event reported for that channel)</div>
<div>Do you know what i'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"><<a href="mailto:rafal.gwizdala@gmail.com" target="_blank">rafal.gwizdala@gmail.com</a>></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'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>