<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 4/19/2019 1:49 PM, Dovid Bender wrote:<br>
<blockquote type="cite"
cite="mid:CAM3TTh2jmqtWPiMUVT0fs71BSEeM+afKSJhEb3aTFLFXBn2osg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<div dir="ltr">Mark,
<div><br>
I am using PHP agi and when forking the call does not continue
util the forked process is done. Am I doing it wrong?</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Apr 10, 2019 at 4:27
PM Mark Wiater <<a href="mailto:mark.wiater@greybeam.com"
moz-do-not-send="true">mark.wiater@greybeam.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"> On 4/10/2019 3:54 PM, Dovid Bender
wrote:<br>
<blockquote type="cite">
<div dir="ltr">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?</div>
<br>
</blockquote>
<br>
Is there a reason you can't fork in the AGI and just return
to the dialplan in the parent?<br>
</div>
<br>
</blockquote>
</div>
</blockquote>
Dovid,<br>
<br>
I'm not much of a PHP person, but in perl, i check the process id
that's returned from fork() and exit if it's 1 (parent) and keep
processing if it's the child (greater than 1).<br>
<br>
I think php uses pcntl_fork().<br>
<br>
Is that how you're doing it?<br>
<br>
</body>
</html>