search for: posix_setsid

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

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: >> Mark, >> >> I am using PHP agi and when forking the call does not continue util >> the forked process is done. Am I doing it wro...
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.
2008 Jun 13
1
String "fwrite();" causes 503 error (Passenger or apache?)
Hi, While testing a rails application on DreamHost (mod_rails), I found a really weird problem. If I submit form data which includes "fwrite();" (with semi-colon but without quotes), I get 503 error (Server temporarily unavailable). I checked out rails log file and it didn''t even reach the rails app. I assume the error was from web server. You may test this at
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
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>