[Asterisk-Users] Re: FastAGI Command Execution
Tony Mountifield
tony at softins.clara.co.uk
Fri Jan 13 09:46:12 MST 2006
In article <645FEC31A18FE54A8721500CDD55A7B602B425C7 at mail.oneeighty.com>,
Douglas Garstang <dgarstang at oneeighty.com> 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: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list