<div dir="ltr"><br><br><div class="gmail_quote">2008/10/16 Torbjörn Abrahamsson <span dir="ltr"><<a href="mailto:torbjorn.abrahamsson@gmail.com">torbjorn.abrahamsson@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You could use #exec statements in one of your config-files.</blockquote><div><br>Could you elaborate ?<br>Which of /etc/asterisk files are thinking of ?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This would<br>
mean that they would be run on every reload. As you asked about running<br>
at every restart, not reload, you would have to check if it is indeed a<br>
restart. This could possibly be done by checking the uptime with<br>
"asterisk -rx 'show uptime'", and then parse this to see if it is quite<br>
low, meaning it would be a restart...<br>
<font color="#888888"><br>
// T<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
Olivier wrote:<br>
> Hi,<br>
><br>
> Using Asterisk 1.4, I would like to send a couple of SIP notifies or various<br>
> scripts whenever Asterisk restart.<br>
> My concern is also deal with restart from CLI but I don't how Asterisk is<br>
> restarted when using CLI.<br>
><br>
> Is safe_asterisk used ?<br>
> What is the best way to do ?<br>
><br>
> Regards<br>
><br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">><br>
> _______________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>