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

Steve Edwards asterisk.org at sedwards.com
Fri Aug 31 12:49:40 CDT 2012


UN-TOP-POSTING...

> > From: Steve Edwards <asterisk.org at sedwards.com>
> 
> > man 2 kill ?

On Fri, 31 Aug 2012, uma udupi wrote:

> Yes it works for me, however I somehow need to get the pid of my AGI 
> instance (I can not use killall, as I may not want to kill all the 
> instances of my AGI), which is only available in res_agi (upon fork() of 
> the AGI) or the AGI instance itself.

Just thinking out loud...

How about if your AGI stuffed it's PID in a channel variable?

-- 
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