[asterisk-dev] Need to run an AGI from dialplan only upon call hold

Steve Edwards asterisk.org at sedwards.com
Thu Aug 30 19:25:19 CDT 2012


On Thu, 30 Aug 2012, uma udupi wrote:

> 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

man 2 kill ?

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-dev mailing list