0

vtiger crm integration into s20

please can someone help with this kind of file editing and exactly how it must be done:

Edit the file AsteriskClass.php. Since we install Vtiger on Windows, so here we will
find the file in the path:
\Vtigercrm-5.4.0\apache\htdocs\VtigerCRM\modules\PBXManager\utils\
AsteriskClass.php
The file on Linux will be found in:
www/html/Vtigercrm/modules/PBXManager/utils/AsteriskClass.php
In order to find the correct context, we will change the context according to the
contexts in MyPBX. For example, context for extension 705 on MyPBX is
[DLPN_DialPlan705]. Therefore, we will firstly get the extension number using the
sentence “
$extensionnumber = split('\/',$from);” Then change the context with”
$context= "DLPN_DialPlan".$extensionnumber[1];
• Add the two sentences:
$extensionnumber = split('\/',$from);
$context= "DLPN_DialPlan".$extensionnumber[1];
• Comment the section “switch” to disable it.
• Modified section of the file:
$extensionnumber = split('\/',$from);
$context= "DLPN_DialPlan".$extensionnumber[1];
/*
switch($typeCalled){
case "SIP":
$context = " from-internal";
break;
case "PSTN":
$context =" ";//"outbound-dialing";
break;
default:
$context = " ";
}
*/
• Save the file.

3 comments

Please sign in to leave a comment.