You could try Fast agi.. then i think master agi deamon runs from services and replies to requests by including sub scripts.<br><br>however i do see some connect failures sometimes...<br><br><br><br><div><span class="gmail_quote">
On 2/28/07, <b class="gmail_sendername">Tzafrir Cohen</b> <<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Feb 28, 2007 at 10:56:14AM -0800, Yuan LIU wrote:<br>> After testing some AGI's, I noticed several extra Asterisk processes.<br><br>An agi script is run by the same user running asterisk, but is not<br>"asterisk": it is a different program. What is the command name on those
<br>scripts?<br><br>> They<br>> are not zombies, but can't be killed by safe_asterisk.<br><br>safe_asterisk attempts (poorly) to guard asterisk. Not really to guard<br>all of its child processes.<br><br>> Nor will they die
<br>> when CLI issues stop now. Then I read that each AGI spawns a separate<br>> Asterisk process.<br><br>Huh? AGI? FastAGI?<br><br>> But all my AGI calls have apparently completed<br>> successfully. So there should be no reason for them to hang there.
<br>><br>> Several questions:<br>><br>> 1) Under what conditions will an AGI hang a process? (My test scripts are<br>> pretty simple, almost directly derived from agi-test.agi.)<br><br>An AGI may be an arbitrary subprocess. This subprocess can do basically
<br>everything. If it really wants to, (or if it misbehaves in the "right"<br>way) it won't die.<br><br>><br>> 2) How to detect run-away processes under 2.4 kernels? In this kernel,<br>> each thread clusters process space and it's very difficult to distinguish
<br>> them without killing the main process.<br><br>hmm, please attach the output of:<br><br>ps auxww | grep asterisk<br><br>><br>> 3) Any practical way to detect them from inside Asterisk - e.g., do some<br>> check after each AGI call? All my AGISTATUS reports success. I could use
<br>> System() but isn't that cumbersome?<br><br>Write/use better code, I guess.<br><br>--<br> Tzafrir Cohen<br>icq#16849755 <a href="mailto:jabber:tzafrir@jabber.org">jabber:tzafrir@jabber.org
</a><br>+972-50-7952406 mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br><a href="http://www.xorcom.com">http://www.xorcom.com</a> <a href="http://iax:guest@local.xorcom.com/tzafrir">
iax:guest@local.xorcom.com/tzafrir</a><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Mike<br>Sales Manager<br><a href="http://www.voicemeup.com">
http://www.voicemeup.com</a><br>Making it happen<br>1.877.807.VOIP (8647)<br>1.514.312.7030