Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
multiple Vtiger settings
VTIGER INSTALLATION/INTEGRATION WITH VICIDIAL STEPS
Versions Verified:
Vtiger Open Source 7.1
Vicidial 2.14b0.5, Build 181005-1738, SVN 3051, DB Schema 1561
Features Working:
1. Inbound dialer call screen pop existing Lead/Contact/Prospect/Organization in Vtiger. If "Entity" does not exist in Vtiger it will insert new Lead.
2. Inbound dialer call logging in Vtiger.
3. Outbound dialer call functions the same as feature # 1.
4. Outbound dialer call logging in Vtiger.
5. Agent login to Vicidial also launches Vtiger and logs in.
6. Vtiger mobile App sync.
7. Vtiger mobile App click to call from cell phone and logging call in Vtiger.
Features not working:
1. Sync Vicidial users to Vtiger. (Currently, manually setup same username/password in Vtiger and Vicidial. Set Vicidial phone extension in Vtiger user)
2. Click to dial from Vtiger through Vicidial.
Future features:
1. Ability for one instance Vicidial to integrate with mutliple Vtiger instances at dialer Inbound Group and Campaign
2. Call recordings from Vicidial available in Vtiger
Vtiger Installation & Configuration:
1. Install Vtiger Open Source 7.1. Follow the on-screen instructions. (If need click to dial from Vtiger, install on same web server as Vicidial web server) "Feature not working yet"
2. COPY file /vtigercrm/includes/http/Request.php to /vtigercrm/includes/http/Request.php.ORIGINAL, this way you have a backup file to restore incase of any problems editing Request.php
3. Edit file /vtigercrm/includes/http/Request.php . On line 213 comment out "throw new Exception('illegal request');" by placing //in front of it. If you don't, the login request from Vicidial will fail.
4. Create Vtiger users with same usernames and passwords as in Vicidial. Also enter Vicidial phone extension in user field "CRM Phone extension".
Vicidial Configuration:
1. Update/Upgrade to the Vicidial version and build listed above. BACK IT UP FIRST!
2. Make sure SVN trunk is up to date.
3. On your vicidial web server, COPY file /srv/www/htdocs/vicidial/vtiger_search.php to /srv/www/htdocs/vicidial/vtiger_search.php.ORIGINAL
4. Edit file /srv/www/htdocs/vicidial/vtiger_search.php (NOTE: Leads are no longer in Sales, they are in Marketing. And, Vtiger no longer uses 'tabs', it uses 'app' for Module lookups)
(a) Comment out line 339 with # in front of it. $account_URL = "$vtiger_url/index.php?module=Calendar&action=EditView&return_module=Accounts&return_action=DetailView&record=$activityid&activity_mode=Events&return_id=$vendor_id&parenttab=SALES";
(b) On line 340, comment out } with # in front of it.
(c) On line 344 change from $account_URL = "$vtiger_url/index.php?module=Accounts&action=DetailView&record=$vendor_id&parenttab=Sales"; TO $account_URL = "$vtiger_url/index.php?module=Accounts&view=Detail&record=$vendor_id&app=SALES";
(d) Comment out lines 523 through 526 with # in front of them. (FIRST ACTION OF ELSE WILL NOT WORK. ONLY NEED THE ACTION AFTER ELSE. THIS WILL BE REFINED IN FUTURE)
(e) On line 528 change from $account_URL = "$vtiger_url/index.php?module=Accounts&action=DetailView&record=$accountid&parenttab=Sales"; TO $account_URL = "$vtiger_url/index.php?module=Accounts&view=Detail&record=$accountid&app=SALES";
(f) On line 577 change from $account_URL = "$vtiger_url/index.php?module=Vendors&action=DetailView&record=$vendorid&parenttab=Inventory"; TO $account_URL = "$vtiger_url/index.php?module=Vendors&view=Detail&record=$vendorid&app=INVENTORY";
(g) Comment out lines 735 through 738 with # in front of them. (FIRST ACTION OF ELSE WILL NOT WORK. ONLY NEED THE ACTION AFTER ELSE. THIS WILL BE REFINED IN FUTURE)
(h) On line 740 change from $account_URL = "$vtiger_url/index.php?module=Leads&action=EditView&record=$leadid&parenttab=Sales"; TO $account_URL = "$vtiger_url/index.php?module=Leads&view=Detail&record=$leadid&app=MARKETING"; (YES, THIS IS CURRENTLY REDUNDANT LEADS LOOKUP AS LEADS ARE ONLY IN SALES MODULE. WILL FIX IN FUTURE. MAY CUT THIS ONE OUT)
(i) Comment out lines 843 through 846 with # in front of them. (FIRST ACTION OF ELSE WILL NOT WORK. ONLY NEED THE ACTION AFTER ELSE. THIS WILL BE REFINED IN FUTURE)
(j) On line 848 change from $account_URL = "$vtiger_url/index.php?module=Leads&action=DetailView&record=$leadid&parenttab=Sales"; TO $account_URL = "$vtiger_url/index.php?module=Leads&view=Detail&record=$leadid&app=MARKETING";
5. Go to Vicidial Admin/System Settings
(a) Set Enable Vtiger Integration: to 1. (Do NOT click on "Click here to Synchronize users with Vtiger")
(b) In field Vtiger DB Server IP: enter your Vtiger Database server IP address.
(c) In field Vtiger DB Nmae: enter the name of your Vtiger database.
(d) In field Vtiger DB Login: enter the Vtiger database username.
(e) In field Vtiger DB Password: enter the password for Vtiger DB user.
(f) In field Vtiger URL: enter the URL of your Vtiger instance. Example, http://mycrm.com
6. Go to detail view of your campaign.
(NOTE 1: These settings are how we are using it. Upon agent login to Vicidial, Vtiger opens in new window and agent is automatically logged in.)
(NOTE 2: Do NOT try to run the old vicidial-vtiger patch files.)
(NOTE 3: Do NOT try to synchronize Vicidial users with Vtiger. We are setting up same usernames and passwords in both systems.)
(a) In field Web Form: enter the URL of your Vicidial web server/vtiger_search.php. Example, http://192.168.1.1/vicidial/vtiger_search.php
(b) In field Web Form Target: enter vdcwebform
(c) In field Get Call Launch: Select WEBFORM
(d) Leave field CRM Popup Login: = N
(e) Leave field CRM Popup Address: empty
7. Go to Inbound/Show DIDs.
(a) Setup a DID and point it to an Inbound Group that is allowed in your campaign.
8. Edit the Inbound Group you pointed your DID to.
(a) In the inbound group, set field Web Form: to URL of your Vicidial web server/vtiger_search.php. Example, http://192.168.1.1/vicidial/vtiger_search.php
(b) Set field Get Call Launch: to WEBFORM
9. Edit file /srv/www/htdocs/agc/vicidial.php (BACK IT UP) When done editing, back up this file to off-server location as any SVN updates to it you will lose your modifications.
(a) On line 17803 change:
document.getElementById("ScriptContents").innerHTML = "<iframe src=\"" + VtigeRurl + "/index.php?module=Users&action=Authenticate&return_module=Users&return_action=Login&user_name=" + user + "&user_password=" + orig_pass + "&login_theme=softed&login_language=en_us\" style=\"background-color:transparent;z-index:17;\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\" id=\"popupFrame\" name=\"popupFrame\" width=\"" + script_width + "px\" height=\"" + script_height + "px\"> </iframe> ";
TO
document.getElementById("ScriptContents").innerHTML = "<iframe src=\"" + VtigeRurl + "/index.php?module=Users&action=Login&return_module=Users&return_action=Login&username=" + user + "&password=" + orig_pass + "&login_theme=softed&login_language=en_us\" style=\"background-color:transparent;z-index:17;\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\" id=\"popupFrame\" name=\"popupFrame\" width=\"" + script_width + "px\" height=\"" + script_height + "px\"> </iframe> ";
(b) On line 17807 change:
var VtigeRall = VtigeRurl + "/index.php?module=Users&action=Authenticate&return_module=Users&return_action=Login&user_name=" + user + "&user_password=" + orig_pass + "&login_theme=softed&login_language=en_us";
TO
var VtigeRall = VtigeRurl + "/index.php?module=Users&action=Login&return_module=Users&return_action=Login&username=" + user + "&password=" + orig_pass + "&login_theme=softed&login_language=en_us";
mstopkey wrote:Ooops, forgot we also had to modify vicidial.php. I will post the mods tomorrow.
mstopkey wrote:YES!!!!!!!!!!!!!!! SUCCESS!!!!!!!!!! We have 1 Vicidial instance working with multiple Vtiger instances at the Campaign level and Inbound Group level. Now to refine it.
CREATE TABLE `vtiger_camp_settings` (
`vtcid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`enable_vtiger_integration` enum('1','0') COLLATE utf8_unicode_ci DEFAULT '0',
`vtiger_server_ip` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
`vtiger_dbname` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`vtiger_login` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`vtiger_pass` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`vtiger_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`vtiger_campaign_id` varchar(8) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`vtcid`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/usr/src/astguiclient/trunk/docs/AGENT_API.txt
zafarkk10 wrote:problem was permission level
Thank you,
But could you please tell me how to use this API through vtiger.
I have vtiger 7.3 with free pbx
could you tell me procedure.
Thanks
Users browsing this forum: No registered users and 77 guests