search for: pcntl_fork

Displaying 5 results from an estimated 5 matches for "pcntl_fork".

2019 Apr 19
2
Forking AGI or GoSub
In PHP something like: $pid = pcntl_fork(); if ($pid != 0) { // we are the parent // do parent stuff exit; } // we are the child, detatch from terminal $sid = posix_setsid(); if ($sid < 0) { die; } // do child stuff On 04/19/2019 02:00 PM, Mark Wiater wrote: > On 4/19/2019 1:49 PM, Dovid Bender wrote: >>...
2019 Apr 10
7
Forking AGI or GoSub
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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190410/4c704231/attachment.html>
2018 Jan 18
2
Handling a long-running agi on hangup-handler?
I know that hangup handlers ( https://wiki.asterisk.org/wiki/display/AST/Hangup+Handlers) have to finish quickly. So it's no surprise that my speech to text agi which takes 8 seconds gets killed. However, can anyone think of a way round this? So, once the caller has hung up, I need to take one of the channel variables, and pass it to a python agi script which then does speech to text.
2016 Jan 21
4
is there some blocking in 11.21.0
>Are you saying that this worked in earlier versions but you started to >get the delay when you updated to 11.21.0? Or just that you happened to >be using 11.21.0 the first time you tried this scenario? I should have said "first time" trying this. Any thoughts? Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL:
2014 Mar 20
1
php script in h context makes channel hang : solution ?
Hello, I execute the following php script when a call ends and the h-context is executed : /exten => h,n,System(/usr/bin/php /var/log/asterisk/loggingAST/loggingAST.php /var/log/asterisk/loggingAST/${CHANNEL:4}.csv)/ The script loggingAST.php writes some information in a MySQL database on a remote webserver. I have noticed that when the webserver is unreachable, this channel