Page 2 of 2

Re: ViciDial - Vtiger 7.1 Support

PostPosted: Sun Jan 24, 2021 2:00 am
by zafarkk10
I have done click to call through Asterisk Connector as instructed on https://salesplatform24.com/?page_id=2831
It worked but call coming to my softphone (zoiper) [call is coming on zoiper same like when we login to vicidial so your softphone] not on vicidial. Can anyone help me out in this.
Thanks.

Re: ViciDial - Vtiger 7.1 Support

PostPosted: Fri Jan 29, 2021 10:41 am
by zafarkk10
I have also done Click-to-Call through API as below
Fist allow api to agent in vicidial.

Below changes need in vtiger 7.3
Amend this file (vtigercrm/layouts/v7/modules/vtiger/uitypes/PhoneDetailView.tpl)

Add below after line No. 12
{assign var=CURRENT_USER_ID value=$USER_MODEL->get('user_name')}

Change line No. 19 which starts with
<a class="phoneField" data-value="{$PHONE_NUMBER}"

To

<a class="phoneField" data-value="{$PHONE_NUMBER}" record="{$RECORD->getId()}" onclick="parent.open('http://192.168.0.15/agc/api.php?source=vtiger&user={$CURRENT_USER_ID}&pass=abc123&agent_user={$CURRENT_USER_ID}&function=external_dial&value={$PHONE_NUMBER}&phone_code=1&search=YES&preview=NO&focus=YES')">{$FIELD_MODEL->get('fieldvalue')}</a>

Change your server Ip address after https:// and pass=<your password>, the password should be same for all agents, if you need with different password so call the value for password same as I called for user ID

Re: ViciDial - Vtiger 7.1 Support

PostPosted: Fri Jan 29, 2021 11:24 am
by carpenox
Couldnt you set the pass on a variable as well? $pass to take the inputed pass that each agent uses, rather than a global password...just a suggestion, but great fuckig work so far, im goign to try it out this weekend and report back the progress

Re: ViciDial - Vtiger 7.1 Support

PostPosted: Mon Feb 15, 2021 3:30 pm
by carpenox
@mstopkey - I followed your steps which work, however when you login to any campaign, it asks you if you want to "leave the site" now when you login.

My question is, does the calls you make in vicidial sync to vtiger? What type of "sync" does it do as of now? Just to login to crm automatically?

Re: ViciDial - Vtiger 7.1 Support

PostPosted: Tue Feb 16, 2021 4:07 pm
by zafarkk10
I am not getting this message.

I am syncing deposition from vicidial to vtiger, call recording path from vicidial to vtiger, and comments from vicidial to vtiger through vtiger_search.php file.

I only need these above but you can sync more thing if you want.

Re: ViciDial - Vtiger 7.1 Support

PostPosted: Wed Feb 17, 2021 3:13 pm
by carpenox
nice, i implemented your changes but made some minor tweaks, i am using CRM popup instead of ingroup webforms, but the changes you said to make on the last lines of vicidial.php, then made the system ask if i want to "leave" the site from agent screen of vicidial immediately after logging in, and it does this for all campaigns, not just the one using the ingroup....

Re: ViciDial - Vtiger 7.1 Support

PostPosted: Sat Feb 27, 2021 1:55 pm
by carpenox
I am also using 7.3, not 7.1