Professional Documents
Culture Documents
PBX Manager Vtiger
PBX Manager Vtiger
Vtiger Log in
Grow sales revenue, marketing ROI, and customer happiness with the Vtiger CRM Cloud Try it Free
PBX Manager
Contents
Setting up PBX Manager with Asterisk
Configuration Example
1. Login to your CRM instance and click on icon on the top right corner of the CRM.
Vtiger Asterisk App URL - configure server name where Vtiger Asterisk Connector is installed as shown:
Syntax : Protocol://Asterisk_Server_IP:Port
Protocol http/https
Asterisk_Server_IP Your Asterisk Server IP
Port Server Port configured in Vtiger Asterisk Connector config file.
Vtiger Secret Key - Unique key generated for authentication, which has to be configured in Vtiger Asterisk Connector.
1. Open My Preferences.
2. Configure user number in CRM Phone Extension field under “More Information” block.
Number format:
Extension: [Extension_number]
e.g., 1002
Once configuration is completed on both sides i.e., Vtiger and Asterisk, you are now ready to make and receive calls in the CRM.
https://wiki.vtiger.com/vtiger6/index.php/PBX_Manager#Step_1:_Install_Vtiger_Asterisk_Connector 1/4
03/04/2017 PBX Manager - Vtiger
Introduction
Vtiger Asterisk application acts a gateway to connect to Vtiger CRM from the Asterisk Server. It makes it easy for Vtiger and Asterisk interaction over HTTP when incoming or
outgoing calls need to be handled.
Features
Vtiger Asterisk Connector provides following features:
Installation Prerequisites
1. Asterisk 1.8
3. Vtiger Details
VtigerServerURL - http://vtigercrm.onyourserver.tld
VtigerSecretKey - [Copy this detail from Vtiger CRM Settings > Integration > PBXManager page]
unzip VtigerAsteriskConnector-x.y.zip
Update VtigerAsteriskConnector/VtigerAsteriskConnector.properties
Asterisk Server
ServerIP IP on which the Vtiger Asterisk Connector will be running. (Preferably use 0.0.0.0)
ServerPort Port on which Vtiger Asterisk Connector has to run in your server.
StorageDir Path to store the Asterisk Call Recordings in your Asterisk server.
AsteriskAppDBPath Path to store the Vtiger Asterisk Connector database file in your server.
AsteriskServerPort Port on which Asterisk Server is running.
AsteriskUsername Username configured in manager.conf of your Asterisk Server.
AsteriskPassword Password configured in manager.conf of your Asterisk Server.
Vtiger
https://wiki.vtiger.com/vtiger6/index.php/PBX_Manager#Step_1:_Install_Vtiger_Asterisk_Connector 2/4
03/04/2017 PBX Manager - Vtiger
exten => _X.,1,Agi(agi://0.0.0.0/incoming.agi)
; --- END ---
Add above two context in extensions.conf OR include below dial plan within existing context (both inbound and outbound context).
Note:
Edit Asterisk cdr configuration file: (cdr_manager.conf) and modify “enabled” field as shown below:
Add Vtiger IP in the ACL (Access Control List) under the username configured in VtigerAskteriskConnector/VtigerAskteriskConnector.properties as shown below:
Add Asterisk server IP under permit field as Vtiger Connector uses same IP to for AMI login.
Configuration Example
Trunks: Select any one of the outbound trunk, say “XYZ” from FreePBX.
Context:
OR
b. Inbound Calls:
Add new context for handling inbound calls. And make this context as default in FreePBX Settings > Asterisk SIP Settings > Default Context = vtiger_inbound.
OR
https://wiki.vtiger.com/vtiger6/index.php/PBX_Manager#Step_1:_Install_Vtiger_Asterisk_Connector 3/4
03/04/2017 PBX Manager - Vtiger
Include below dial plan within existing inbound context, say “from-internal” assuming all incoming calls are routed to this context.
[from-internal]
…
…
exten => _X.,1,Agi(agi://0.0.0.0/incoming.agi)
;---------START----------
read = all,system,call,log,verbose,command,agent,user,config, originate
write = all,system,call,log,verbose,command,agent,user,config, originate
;---------STOP
permit = xx.xx.xx.xxx/255.255.255.0
permit = yy.yy.yy.yyy/255.255.255.0
Vtiger Settings
Go to CRM Settings -- > Integration --> PBXManager. Add following configuration:
ServerIP = 127.0.0.1
ServerPort = 56002 [pick a unused port]
AsteriskServerIP = 127.0.0.1
AsteriskServerPort = 5038
AsteriskUserName =admin
AsteriskPassword = xxxxxxxxx
It must match a context in extensions.conf, in that context you must have exten => _X.,1,agi(agi://0.0.0.0/incoming.agi).
https://wiki.vtiger.com/vtiger6/index.php/PBX_Manager#Step_1:_Install_Vtiger_Asterisk_Connector 4/4