Inhoud |
In order to use ADAT, you will need to (let your System Administrator) add an account to the Asterisk Manager API. User accounts are configured in /etc/asterisk/manager.conf. A user account consists of a set of permitted IP hosts, an authentication secret (password), and a list of granted permissions. The account will need reade/write permisson for the "call" priviledge. For example:
[adat] secret = adat deny = 0.0.0.0/0.0.0.0 permit = 192.168.1.0/255.255.255.0 read = call write = call
In the ADAT "Account->Server" settings enter Asterisk Manager credentials with the appropriate permissions (see Asterisk Server Configuration above). You also need to specify the extension you want to manage & monitor. For example:
Server = 192.168.1.1 Port = 5038 Username = adat Password = adat
Here you can enter the extension you wish to monitor and control (most likely this will be your own extension). You alsoneed to fill in the correct Asterisk context (should be 'from-internal' for most freepbx based systems). You may need to check with your system administrator. For example:
Extension: 101 Context: from-internal
Here you can enter and organize all the remote extensions you would like to monitor.
Here you can manage the event handlers. You can use the ADATVariables to start programs and/or your web browser. For example:
On incoming call: http://www.crmsystem.com?contact.php?phonenumber=%%OA%%
You can start applications using the following format:
1. http://server/cid.php?cid=%%OA%% (without command line parameters) 2. iexplore.exe|http://server/cid.php?id=%%DA%% (with command line paramaters)
You can run a program and pass more variables as follows:
program.exe|%%OA%% %%DA%%