<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span></span></div><div>hmmm I was hoping for a more graceful way to do it from chan_sip.c<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> Steve Edwards <asterisk.org@sedwards.com><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;">Sent:</span></b> Thursday, August 30, 2012 5:25 PM<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>
On Thu, 30 Aug 2012, uma udupi wrote:<br><br>> I made some changes in chan_sip.c to call an AGI (based on some configuration) instead of ast_moh_start(), using pbx_exec() upon receiving AST_CONTROL_HOLD indication. My AGI program plays an IVR, and also takes input. Now if the caller UNHOLDs, I would like to send some signal to the AGI and hence it could exit immediately and release the RTP channels. I don't know if this is even possible, could not locate any functions to do this. Please advice<br><br>man 2 kill ?<br><br>-- Thanks in advance,<br>-------------------------------------------------------------------------<br>Steve Edwards <a ymailto="mailto:sedwards@sedwards.com" href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>Newline
Fax: +1-760-731-3000<br><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br> http://lists.digium.com/mailman/listinfo/asterisk-dev<br><br><br> </div> </div> </div></body></html>