Elastix/FreePBX & seperate vTiger 5.4.0 server

Can anyone advise me as to what I’m doing wrong. I’m trying to connect a my elastix/freepbx server to a vTiger server, but i’m not having much joy. my two installations are on separate machines in the same IP range.

FOR EXAMPLE:

vtiger 192.168.2.2 (version 5.4.0)
elastix/freepbx 192.168.2.3

I’ve enabled the PBX plugin within vtiger and have completed the configuration fields:

Asterisk server IP address : 192.168.2.3 Asterisk server port : 5038 Asterisk username : vtiger Asterisk password : 1234 Asterisk version : 1.6 (i've tried version 1.4 and 1.6)

I’ve also added the following to the vtiger server AsteriskClass.php file which is located on my windows version of vTiger at C:\Program Files\vtigercrm-5.4.0\apache\htdocs\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); }

I’ve added the following to my etc/asterisk/manager_additional.conf

(also tried it in the manager.conf , the manager.conf has a line which in inherits the manager_additional.conf; i’ve tried it in both)

[vtiger]
secret=<1234>
deny=0.0.0.0/0.0.0.0
permit=192.168.2.3/255.255.255.0
permit=192.168.2.2/255.255.255.0
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user

Vtiger will not connect to my server…