[asterisk-users] How to finish an AGI

Danny Nicholas danny at debsinc.com
Thu Sep 2 16:51:58 CDT 2010


From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Danny Dias
Subject: Re: [asterisk-users] How to finish an AGI

 

>No nicolas...that's not what i want...by the way sound very complicated :(

 

>What i need is to FINISH THE AGI when the MACRO reachs the Hangup...dont
worry for the purpose of the macro, if the macro reachs the hangup the Agi
should stop working, but it continues with his job... :(

Does the AGI have a SIG(HUP) = IGNORE (pardon the syntax since I don't know
if it's PERL/PHP/whatever)?  If so, the AGI is "indestructible" (will finish
or have to be "killed")  You could have the macro set a variable at hangup
and kill the AGI when it returned

AGI runs

Macro runs

Macro gets hangup

Set xx=yes

Returns to AGI

If (xx=yes exit)

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100902/990a4ccd/attachment.htm 


More information about the asterisk-users mailing list