[Asterisk-Users] asterisk console mode

Doug Harris dogharris at sbcglobal.net
Mon Jun 21 07:45:49 MST 2004


Hi folks,

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.

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.

== Spawn extension (fwd-out-test, 613, 3) exited non-zero on 'SIP/-081467b0'
    -- Executing AGI("SIP/-081467b0", "updatecb_post.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/updatecb_post.agi
  == Spawn extension (fwd-out-test, h, 1) exited non-zero on 'SIP/-081467b0'
asteriskremote*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).


Any Idea why this is happening. ???  What are the pros and cons running
asterisk in console mode in safe asterisk ?

Cheers

DH





More information about the asterisk-users mailing list