In article <[EMAIL PROTECTED]>, Douglas Garstang <[EMAIL PROTECTED]> wrote: > I've noticed that with FastAGI (and maybe AGI) that when you > sequentially send a sequence of dial commands, if the call is picked > up, that after the call ends, the Fast AGI script keeps executing the > commands! > > Is there anyway to stop execution once a call is picked up? I think > looking at the result codes after the Dial to determine if the call > was picked up or not is not a good idea... if it even works.
I would suggest putting the Dial commands in the dialplan itself. Have the AGI do all the call routing decision making based upon its database lookups, but then instead of calling Dial with EXEC, just do SET PRIORITY, SET EXTENSION and even SET CONTEXT to choose the required part of the dialplan, then exit the AGI. Have the sequence of extensions in the dialplan, which allows a successful Dial to terminate the sequence. Hope this helps Cheers Tony -- Tony Mountifield Work: [EMAIL PROTECTED] - http://www.softins.co.uk Play: [EMAIL PROTECTED] - http://tony.mountifield.org _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
