[asterisk-users] Forking AGI or GoSub

Dovid Bender dovid at telecurve.com
Fri Apr 19 12:48:41 CDT 2019


Steve,

In my case this is for emergency services. The AGI calls a web URL with the
callers information. The call passes through Asterisk and we don't want to
delay the call at all if the API takes 1-2 extra seconds.


On Wed, Apr 10, 2019 at 10:01 PM Steve Edwards <asterisk.org at sedwards.com>
wrote:

> On Wed, 10 Apr 2019, Dovid Bender wrote:
>
> > I have an AGI that can sometimes take time complete. I don't want the
> > dialplan to be held up by the agi. Is there any way to call it and have
> > Asterisk continue with the dialplan?
>
> On Wed, 10 Apr 2019, Dovid Bender wrote:
>
> > I have an AGI that can sometimes take time complete. I don't want the
> > dialplan to be held up by the agi. Is there any way to call it and have
> > Asterisk continue with the dialplan?
>
> I had a situation that required this functionality -- processing a credit
> card could take a second or two and we didn't want 'dead air' for our user
> experience.
>
> I created a pthread to play 'Please hold on while we process your card and
> get ready for a good time...' while the main program continued with the
> card authorization.
>
> Most of the time the auth completed before the audio finished so it
> appeared to be instantaneous to the caller.
>
> The only caveat is to not interact (stdin/stdout) with Asterisk until
> 'stream file' in the thread completed.
>
> --
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
>              https://www.linkedin.com/in/steve-edwards-4244281
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190419/de27ba1f/attachment.html>


More information about the asterisk-users mailing list