[Asterisk-Users] agi exit problem

Florian Overkamp florian at obsimref.com
Tue Oct 7 11:46:17 MST 2003


Citeren Dave Wilson <dave at autosdirect2u.com>:

> > Is it possible to make an agi script keep going after a Dial
> > is exectued?
> >
> > Example:
> >
> > use Asterisk::AGI;
> > $AGI = new Asterisk::AGI;
> > $AGI->verbose("--> Hello");
> > $AGI->exec('Dial',"IAX2/whatever"); <---- when this call ends
> > the agi script
> > ends.
> > $AGI->verbose("--> Hello again");   <--- it never gets to here :(
> > $AGI->hangup();
> > exit(0);
> >
> 
> Not sure if it's possible to keep the script running after Dial but perhaps
> you could explain what you're attempting to achieve and there may be a
> workaround.

Wouldn't it be cool if you could take the call back, into the IVR script after 
the remote party hangs up ?

Might be usefull for callcenters where agents want to allow customers to re-
enter the IVR wherever they left off. Ofcourse one might hack it by 
transferring the user back into the IVR one way or another, but it is a hack. 
Taking the call back after the Dial statement seems more elegant to me ?

-- 
Met vriendelijke groet,
Florian Overkamp
ObSimRef BV



More information about the asterisk-users mailing list