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

Olivier oza-4h07 at myamail.com
Thu Oct 16 05:41:57 CDT 2008


2008/10/16 Tzafrir Cohen <tzafrir.cohen at xorcom.com>

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


No : for example, I would just reboot some SIP hardphones.
At the moment, some of them need to be restarted (whenever Asterisk
restarts) to have hint subscriptions properly updated.

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

Sure, that's a possibility ...

>
>
> --
>               Tzafrir Cohen
> icq#16849755              jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com>
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
> _______________________________________________
> -- 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/727eb915/attachment.htm 


More information about the asterisk-users mailing list