Facebook
Twitter
LinkedIn
YouTube
SysAdminMan
  • Blog
  • Contact

Integrating Asterisk, FreePBX and vTiger

8 April 2013MattAsterisk

vTiger is a free, fully-featured open source CRM solution that can be used to manage your customers and sales leads. It can also integrate with Asterisk to provide click-to-call and call notification from within vTiger itself.

While the Elastix distribution comes with both Asterisk and vTiger installed it may not be desirable to have your CRM and VOIP system running on the same server for performance reasons. You don’t want vTiger interfering with the call quality. Also vTiger on Elastix is not normally at the latest version, which has resulted in security issues in the past.

The solution is to run vTiger and Asterisk on different servers. The instructions below were kindly provided by a SysAdminMan customer on the steps required to integrate Asterisk and vTiger. If you want assistance with this please open a support ticket.

This would work well with a SysAdminMan FreePBX server – sysadminman.net/sysadminman-freepbx-hosting.html

1 – Whitelist the vTiger server IP addresses in the Asterisk server firewall

2 – Add the following lines to FreePBX /etc/asterisk/manager_custom.conf:

[vTiger]
secret=YourSecret ;make sure there are no unusual characters such as quotes in the password
deny=0.0.0.0/0.0.0.0
permit=YourVtigerIP/YourVtigerMask ; or use a mask of 255.255.255.255 if only 1 IP

3 – Add credentials to vTiger PBX module as follows:

Asterisk server IP YourSysadminmanPbxIP
Asterisk server port 5038
Asterisk username vTiger
Asterisk password YourSecret
Asterisk Version 1.6 (this works fine with Asterisk 1.8 also)

4 – Change these lines in /var/www/html/vtigercrm/modules/PBXManager/utils/AsteriskClass.php

switch($typeCalled){
case "SIP":
$context = "from-internal";
break;
case "PSTN":
$context = "from-internal";//"outbound-dialing";
break;
default:
$context = "from-internal";
}
$this->createCall($from, $to, $context);
}

5 – Add trunks, extensions and any outbound routes making sure that in your extensions you select context = from-internal


Related posts:
  1. Elastix vTiger exploit
  2. Integrating FreePBX with A2Billing
  3. CallCentric trunk setup with Asterisk/FreePBX
  4. Conferences with Asterisk and FreePBX
Tags: vtiger
Previous post OpenWRT review Next post FreePBX extension choices

5 comments. Leave new

BIGGYsmall
27 April 2013 3:38 pm

What else needs to be done when using a installation of vtiger on a separate machine?

I’ve decided not to use the version of vtiger that comes intigrated into elastix as its out of date, so instead I installed vTiger 5.4.0 on a new machine, which can ping the PBX server but wont allow me vTiger server to connect as an extension.

matt
27 April 2013 6:00 pm

Did you try all the things above. Mainly the firewall changes and the Asterisk manager conf.

angelo paglialonga
24 November 2013 2:47 pm

I agree with you that performance on a vtiger server should not influence phone call quality, maybe using two connected virtual servers it should be possible to avoid performance troubles.

matt
25 November 2013 9:13 am

It’s definitely possible and recommended to have vTiger on a separate server to Asterisk if possible.

Matt

Gaurang
17 November 2014 10:55 am

please visit my blog for step by step integration.

http://gaurang-microsofttechnology.blogspot.com/2014/11/setting-up-vtiger-crm-pbx-manager-with.html

Categories

A2Billing is written and maintained by Star2Billing
FreePBX® is a Registered Trademark of Schmooze Com, Inc.

© 2019 SysAdminMan Ltd
Registered in England and Wales, Company No. 7198077
The Apex, 2 Sheriffs Orchard, Coventry, England, CV1 3PP