<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hello</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>I need help on this one. Could anyone suggest what can be done to trigger "something" upon HOLD? I hope this is the right mailling list for this topic. If not please let me know where can I take this.<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new
 york,times,serif; background-color: transparent; font-style: normal;"><span>Thanks,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>Uma<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> uma udupi &lt;umaudupi@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> "asterisk-dev@lists.digium.com" &lt;asterisk-dev@lists.digium.com&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, August 27, 2012 12:53 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [asterisk-dev] Need to run an AGI from dialplan only upon call hold<br> </font>
 </div> <br>
<div id="yiv48098486"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>Hi there,<br><br>I'm new to Asterisk. I need to call (from dialplan) a 
macro or a gosub or an AGI upon one of the connected party in a bridged 
call (on sip trunk) puts the call on HOLD. Anyhelp greatly appreciated<br><br>PS:
 I looked into app_dial.c if I can capture AST_CONTROL_HOLD event, and 
call a macro, however once ast_bridge_call() is called, Dial app does 
not get mid-call events on the call (like 
AST_CONTROL_HOLD/AST_CONTROL_UNHOLD)<br><br>I also tried to use frame_trigger.c but it didn't work too. I understand this is not a good approach.<br><br>Thanks,<br>Uma</div></div></div></div><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;  <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br><br> </div> </div>  </div></body></html>