The Opens APIs provide a local connector for your Asterisk based PBX(SNEP, FreePBX, Issabel, Elastix and others) to connect it to the Cloud Services.
To install the Opens Connector you will need a root access in the Asterisk running system, and more:
- Linux with kernel 64bits version 3.10+
- Asterisk 12+
- Token Opens Cloud (you need the Q-Manager to have your Token)
To install it, run in a Linux terminal as root:
wget -qO inst.sh http://ocl.opens.com.br/docker/install.sh && chmod +x inst.sh && ./inst.sh
Configuring your Asterisk
You need include the private Docker(Application) network for the user snep(defalt app user) or other you want to use for this (to change the user and password you will access the ADM APP Interface after the installation). To do this changes edit the /etc/asterisk/manager.conf file creating the user with this parameters:
[snep] secret = sneppass deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 permit=172.17.0.0/255.255.0.0 read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate writetimeout = 5000
Reload the manager app on asterisk:
asterisk -rx "manager reload"
Configuring your TOKEN
After install you need access the ADM Web Interface to complete the installation inserting your TOKEN.
To do that, open in your browser the address of your Asterisk System at port 8080:
Error after a server restart
It's common after a server restart the service not work. This happens because the application containers didn't run allow. We recommend you include the containers start at the server inicialization.
You can do that including the lines bellow (in this order) in the /etc/rc.local file:
docker start mongo docker start redis docker start itc-conector docker start q-manager docker start watchtower exit 0