Skip to main content

Anyone using event hooks?

Posted by cbbs70a on Fri, 02/06/2009

Has anyone had any success using event hooks that were introduced in version 68? I'm not totally clear on what their purpose is so I'm not clear on exactly how useful they are. Can anyone give an example?
Thanks
FSD


Submitted by olekaas on Tue, 02/10/2009 Permalink

I have yet to make a script that will setup ftp access for provisioning when adding a new tenant. I'm looking forward to getting it done, as I'm the one manually creating the ftp setup for each tenant. Actually I'm already using a script for this - but it needs a little work to be used with the hooks.

/Ole

Submitted by thirdlane on Thu, 02/12/2009 Permalink

The event hooks allow to execute an arbitrary system command - a script, a progarm - anything when the objects (extensions or tenants) are cretaed, deleted or modified.

Submitted by moshe on Fri, 04/16/2010 Permalink

where could i read more about these scripts and how to's,

(for now) i would like to setup a event hook to receive a email notification when ever a tenant, user extension, special line or voice mail is created or deleted maybe play around more with it

thanks in advance

Submitted by eeman on Fri, 04/16/2010 Permalink

its just a shell script that gets executed.. theres some environment variables that get passed to the script so that you can use them in your programming.

the bash command 'printenv' will show you all the environment variables. Writing a simple script that outputs printenv to a filename will give you variable names.