Asterisk Click to Dial - Server Configuration

The Asterisk click to dial plugin for Firefox requires two components to be configured and enabled on the server side in order for it to work:

  • Asterisk Manager API
  • Astman Proxy
The Asterisk Manager API enables control of theAsterisk PABX via 3rd party software. The Astman proxy application provides a web-based interface to the Asterisk Manager API, thereby allowing the plugin to control the PABX.

Asterisk Manager

In order to configure the Asterisk Manager API, you'll need to edit:

/etc/asteriskmanager.conf

and add the following section:

[proxy]
secret = enterpasswordhere
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user 

This will give access to the Astman proxy application as long as it's running on the same machine as the Asterisk installation.


Astmanproxy

Astmanproxy is a 3rd party add-on to Asterisk. You can download the installation source files from:

http://www.popvox.com/astmanproxy-latest.tgz

In order to install on your Asterisk box, run the following commands:

cd /usr/local/src

wget http://www.popvox.com/astmanproxy-latest.tgz

tar -xf astmanproxy-latest.tgz

cd astmanproxy-latest

make && make install

Once the installation is complete, you'll need to edit the Astmanproxy configuration file at:

/etc/asterisk/astmanproxy.conf

Update your host line to something like:

host = 127.0.0.1, 5038, proxy, enterpasswordhere, on, off

Note the listenport entry as this will affect the Asterisk connection URL:

listenport=8081

Change the input and output format from:

inputformat=standard
outputformat=standard

to:

inputformat=http
outputformat=xml

Change the autofilter setting from:

autofilter=off

to:

autofilter = on

Now, restart Asterisk:

/etc/init.d/asterisk restart

Start up Astman proxy: 

astmanproxy start