Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-07-01 Thread Jonathan H
Oh wow - thank you SO much Marcelo. This works perfectly - exactly as I wanted. Don't think I'd have figured it out, though. Well, that ticket says "not a bug" if this isn't a bug, then "behaviour which differs dramatically from that which is expected" would definitely be the tag. Again, this

Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Marcelo Terres
Take a look on that: https://issues.asterisk.org/jira/browse/ASTERISK-20532 Regards, Marcelo H. Terres IM: mhter...@jabber.mundoopensource.com.br https://www.mundoopensource.com.br https://twitter.com/mhterres https://linkedin.com/in/marceloterres On 30 June 2017 at 22:23,

Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Jonathan H
OK, I give up and come grovelling, "Fork" was suggested at 18:23, it's now 22:20 and I have been through 4 different methods, all block with a 2 second delay before returning to dialplan. Here are just some of the examples I have tried, as as per the suggestions, I am closing all possible outputs

Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread J Montoya or A J Stiles
On Friday 30 Jun 2017, Jonathan H wrote: > What's the simplest, easiest quickest least-code way of firing off an AGI > with some variable, and then returning to the dialplan? You have to use the "fork" command. This starts a copy of the process with all the same internal state including

Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Antony Stone
On Friday 30 June 2017 at 19:11:08, Jonathan H wrote: > I use a python AGI which pulls some info from a web service, which should > take half a second. > > Sometimes, it takes 5-10 seconds which blocks the dialplan execution, but > the dialplan should continue immediately as it's not dependent

[asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Jonathan H
I use a python AGI which pulls some info from a web service, which should take half a second. Sometimes, it takes 5-10 seconds which blocks the dialplan execution, but the dialplan should continue immediately as it's not dependent on the AGI/web service data. What's the simplest, easiest