[asterisk-users] How to launch batch whenever Asterisk (re)start ?
Torbjörn Abrahamsson
torbjorn.abrahamsson at gmail.com
Thu Oct 16 02:43:45 CDT 2008
You could use #exec statements in one of your config-files. 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
More information about the asterisk-users
mailing list