<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>My requirement is NOT to play MOH, but play something else (that could be an IVR, asking for some input from the party being held). With AMI I don't know if I can achieve the same - It looks like musiconhold event is triggered upon starting the MOH, and also as an AMI will I have control over the media streams?<br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Olle E. Johansson <oej@edvina.net><br> <b><span style="font-weight: bold;">To:</span></b> Asterisk Developers Mailing List <asterisk-dev@lists.digium.com> <br><b><span style="font-weight:
bold;">Cc:</span></b> Olle E. Johansson <oej@edvina.net>; uma udupi <umaudupi@yahoo.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, August 31, 2012 1:09 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-dev] Need to run an AGI from dialplan only upon call hold<br> </font> </div> <br>
<br>31 aug 2012 kl. 10:08 skrev Olle E. Johansson <<a ymailto="mailto:oej@edvina.net" href="mailto:oej@edvina.net">oej@edvina.net</a>>:<br><br>> During a call hold the call is still in a bridge and can't really execute the dialplan without serious effects. Call hold is just a media state.<br>> <br>> Brainstorming, we could implement a function where a call hold breaks the bridge and each call leg goes back to the dialplan (HOLD_CONTEXT) to do some cool things instead of being on hold. The problem then is what unhold means and how to explain to the phones (that are on hold state) what you want to do.<br>> <br>> Better would be to develop an AMI client that makes the decision for you on what you want to do with the call.<br><br>Confused by my mailer... Or just Friday morning lazyness. Sorry. Noticed that Matt has provided more or less the same answer.<br><br>/O ;-)<br><br><br><br> </div> </div> </div></body></html>