Child pages
  • Connector API Cloud Services(en)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Prerequisites

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)

Install

To install it, run in a Linux terminal as root:

Code Block
themeDJango
languagepowershell
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:

Code Block
themeDJango
languagepy
[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:

Code Block
themeDJango
languagebash
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:

Code Block
themeDJango
languagexml
 http://YOUR_IP:8080

Commons Errors

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

Code Block
themeDJango
languagebash
docker start mongo
docker start redis
docker start itc-conector
docker start q-manager
docker start watchtower

exit 0