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 _______________________________________________ -- 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
