Ciao Per,

> I've asterisk stop (presumably segfaulting) a couple of times, and I was
> just beginning to look at how to keep it running - what have others
> done? 
> 
> I was thinking of wrapping a script around asterisk like this:
> 
> while 1
> do
>   asterisk -f
> done

Doing so you won't be able to stop asterisk, if you wanted to..

IMHO it's better to build a FSM (Finite State Machine) that handles the
Asterisk process and other collateral processes (like the MAPI proxy) and let
it monitor the process.

Moreover, you should make this FSM sensible to UNIX signals in order to
start, stop, restart Asterisk easily if you want.

HTH,

-- 
Dr. Andrea Spadaccini
Multimedia Technologies Institute - MTI S.r.l.
Web: www.x-voice.it - Tel: +39 (0) 95 7224945

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to