Page 1 of 1

Vtiger504 & clic to dial help

PostPosted: Tue Aug 11, 2009 2:11 pm
by omarrodriguezt
Hello,
I just follow up the steps for install vtiger504 and clic to dial patch and it's working as should be, except that only works with USA formatted phones.
Example: the phone 8005554444 works, since the function add the phone code 1 by default.

My situation is that I need to dial to UK (phonecode 01144) but I can't find the way, because everytime that I try, the function put 1 as dial code, even if I put the phonenumber with the phone code include.

Thank you in advance!

PD.
Im working with the file general.js that is located in vtigercrm/include/
and I changed:
var VCcallQuery = "VCcall=1&phone=" + phone + "&dialcode=01144";

and nothing.
I tried:
var VCcallQuery = "VCcall=01144&phone=" + phone + "&phone_code=01144";
and nothing.

Resolved

PostPosted: Tue Aug 11, 2009 3:01 pm
by omarrodriguezt
I found the answer in the file vtigerservice.php

Line:
$VCcallQuery = "?source=vtiger&user=1000&pass=1234&agent_user=$user&function=external_dial&value=$phone&phone_code=01144&search=YES&preview=NO&focus=YES&vendor_id=$vendor_id";

thanks

PostPosted: Tue Aug 11, 2009 3:30 pm
by brett05
good

Same problem

PostPosted: Wed Aug 12, 2009 9:01 am
by omarrodriguezt
I Changed the phoe_code in the file vtigerservice.php , but vicidial is still using "1" as phone_code. I was reading the file agc/api.php, in the function external dial and I can't find the reason.

Thank you in advance.

This is the information that external_dial field in the table vicidial_live_agents have:
173777495!01144!YES!NO!YES!34!1250085201!!!
also, when the popup placing call appear I can see the 01144 as phone code.

PostPosted: Wed Aug 12, 2009 9:38 am
by mflorell
what does the Asterisk CLI show when the call is placed?

What does the vicidial_manager record for the call look like?

Thnk

PostPosted: Wed Aug 12, 2009 10:00 am
by omarrodriguezt
The field cmd_line_b said: Exten: 1173777495 in the table vicidial_manager

asterisk CLI
== Starting Local/8600056@default-67f0,1 at default,1173777495,1 failed so falling back to exten 's'
== Starting Local/8600056@default-67f0,1 at default,s,1 still failed so falling back to context 'default'
-- Sent into invalid extension 's' in context 'default' on Local/8600056@default-67f0,1
-- Executing Playback("Local/8600056@default-67f0,1", "invalid") in new stack
-- Playing 'invalid' (language 'en')


I just read:

VICI:Troubleshooting

Every time VICIDIAL is dialing a lead it add 1 before every area code

This is the default behavior of VICIDIAL, as it was designed for use in the United States.
Go to the Campaign Detail modification screen and change "Omit Phone Code" fields to "Yes".


and I think that this could be the problem.
Thank you in advance.

PostPosted: Wed Aug 12, 2009 3:07 pm
by omarrodriguezt
Just changed the option omit phone code on vicidial campaign details and that's it/
Thank you