[asterisk-users] How to elegantly set DEVSTATE values after restarting

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Jan 30 08:42:11 CST 2009


On Fri, Jan 30, 2009 at 03:08:52PM +0100, Olivier wrote:
> Hi,
> 
> Whenever Asterisk restarts, some values such as DEVSTATE ones, should be
> reset.
> How would you proceed to have those settings done anytime Asterisk restarts
> ?

Sounds racy. #exec is called whenever configuration is parsed (on reload
as well). It is also called before the configuration is actually parsed,
and thus you can't rely on devices to exist.

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