[asterisk-users] How to launch batch whenever Asterisk (re)start ?
Olivier
oza-4h07 at myamail.com
Thu Oct 16 05:44:25 CDT 2008
2008/10/16 Torbjörn Abrahamsson <torbjorn.abrahamsson at gmail.com>
> You could use #exec statements in one of your config-files.
Could you elaborate ?
Which of /etc/asterisk files are thinking of ?
> This would
> mean that they would be run on every reload. As you asked about running
> at every restart, not reload, you would have to check if it is indeed a
> restart. This could possibly be done by checking the uptime with
> "asterisk -rx 'show uptime'", and then parse this to see if it is quite
> low, meaning it would be a restart...
>
> // T
>
>
>
> Olivier wrote:
> > Hi,
> >
> > Using Asterisk 1.4, I would like to send a couple of SIP notifies or
> various
> > scripts whenever Asterisk restart.
> > My concern is also deal with restart from CLI but I don't how Asterisk is
> > restarted when using CLI.
> >
> > Is safe_asterisk used ?
> > What is the best way to do ?
> >
> > Regards
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > -- 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
>
> _______________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081016/3d2d46ab/attachment.htm
More information about the asterisk-users
mailing list