Elastix2.5 & vtigercrm5.2.1 configure incoming call screen and click call

Source: Internet
Author: User
Tags vtiger

1. Set user name and password permissions for vtiger to access the AMI interaction of elastix PBX

PBX> Tools> asterisk file editor

Edit manager_custom.conf: (this file does not exist by default)

[Vtiger]
Secret = vtiger

Permit = 0.0.0.0/255.255.255.0. Of course, you can set 127.0.0.1.
Read = system, call, log, verbose, command, agent, user, dialplan
Write = system, call, log, verbose, command, agent, user, originate


Ii. Restart Asterisk

Su-
Asterisk-R
Manager reload
Manager show user vtiger


Iii. vtiger set the PBX Manager Module

In vtiger go to module manager --> softphone server settings

Asterisk Server IP: 192.168.180.182. Of course, you can also set 127.0.0.1.

Asterisk server port: 5038
Asterisk Username: vtiger
Asterisk password: vtiger


4. Modify the asterisk integration script of vtigercrm

Edit file/var/www/html/vtigercrm/modules/pbxmanager/utils/asteriskclass. php
And find "$ context =" and replace with "$ context =" from-internal ";"
There are three parts in total

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. Configure the background script to monitor the asterisk incoming phone number

Modify/var/www/html/vtigercrm/cron/modules/pbxmanager/asteriskclient. php

Modify
Chdir ('../../../');
# In case chdir is not permitted
# Ini_set ('include _ path ','../../../);
Is

# Chdir ('../../../');
# In case chdir is not permitted
Ini_set ('include _ path ','/Var/www/html/vtigercrm/');


Set the script reboot to run automatically after it is started
Vim/etc/rc. Local
Nohup/usr/bin/PHP/var/www/html/vtigercrm/cron/modules/pbxmanager/asteriskclient. php>/var/log/asterisk/asteriskclient. log 2> & 1 &


You can manually start the script before restarting the machine.

Nohup/usr/bin/PHP/var/www/html/vtigercrm/cron/modules/pbxmanager/asteriskclient. php>/var/log/asterisk/asteriskclient. log 2> & 1 &

Troubleshooting: # tail-F/var/log/asterisk/asteriskclient. Log


6. Ensure that the user profile of vtiger users (common users such as sales and customer service) has extencion number

For example, after the extension number 101 is called by an external line, the contact and order information of the corresponding customer is displayed on the computer screen of the vtiger CRM user (sales and call center staff) bound to the extension.

For vtiger, click my preferences in the upper right corner,

Asterisk Extension: Set to 101

Select receive incoming CILS


Optional. The customer contact has a phone number in vtiger.

For example, if Yang Jiang's mobile phone number is 1381234567


7. Create an account, contact, and create a test.

The mobile phone calls asterisk extension 100, and the SIP Phone calls the bell;

On the vtiger CRM page logged on by a common userIn the lower-right corner of the page, a prompt is displayed, indicating the incoming call number and name of the caller. You can click the incoming call name to open the contact and view CRM information such as his order.

Note: The screenshot is in English. After vtiger is finished in Chinese, the bullet screen/interface is in Chinese)

650) This. width = 650; "src =" http://my.csdn.net/uploads/201208/11/1344668769_1856.png "/>





Elastix2.5 & vtigercrm5.2.1 configure incoming call screen and click call

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.