[asterisk-users] How to launch batch whenever Asterisk (re)start ?

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Oct 16 03:38:44 CDT 2008


On Thu, Oct 16, 2008 at 08:57:48AM +0200, 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.

What do you really want to know? That chan_sip.so got loaded?

The only sane way I can think of right now to do that is a log watcher.
If you're using rsyslog or syslog-ng and you send asterisk messages to
syslog, maybe implementing this on your own shouldn't be a problem.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list