<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=789410422-20062004>Hi
folks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=789410422-20062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=789410422-20062004>I use safe asterisk
to startup and run asterisk in the background. In Safe_asterisk script, there is
a parameter (right at the top ), CONSOLE which I can set to no or something. If
it is no asterisk startup as asterisk -vvvg , if it is set to something the
asterisk startup as asterisk -vvvg -c.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=789410422-20062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=789410422-20062004>Now I am running an
agi script when calls get hung-up. That is in my
extensions.conf I call myagi.agi like h,1, agi,
myagi.agi. When I have asterisk started in console mode everything works
fine, however if I start -vvvg soon after the agi completes asterisk shut it
down.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=789410422-20062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=789410422-20062004>== Spawn extension
(fwd-out-test, 613, 3) exited non-zero on 'SIP/-081467b0'<BR>
-- Executing AGI("SIP/-081467b0", "updatecb_post.agi") in new
stack<BR> -- Launched AGI Script
/var/lib/asterisk/agi-bin/updatecb_post.agi<BR> == Spawn extension
(fwd-out-test, h, 1) exited non-zero on
'SIP/-081467b0'<BR>asteriskremote*CLI><BR>Disconnected from Asterisk
server<BR>Executing last minute cleanups<BR>Asterisk ending
(0).<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=789410422-20062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=789410422-20062004>Any Idea why this is
happening. ??? What are the pros and cons running asterisk in console mode
in safe asterisk ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=789410422-20062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=789410422-20062004>Cheers</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=789410422-20062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=789410422-20062004>DH</DIV></SPAN></FONT></BODY></HTML>