Page 1 of 1

Display which CID was used

PostPosted: Tue May 08, 2018 11:16 am
by ClearCall
I am setting up AC-CID for a campaign. All the numbers being used are real numbers that are configured to ring back in to us. How can an agent determine which number was used as the Caller ID, so that when they are closing with "Please feel free to call us back at xxx-xxx-xxxx" the number they provide matches what the person saw on his/her caller ID?

Re: Display which CID was used

PostPosted: Mon May 14, 2018 10:46 am
by jshasteen
I could be wrong here but I don't think it's a webform variable, that is to say one of these:

lead_id
list_id
user
pass
campaign
server_ip
session_id
uniqueid
stage
campaign
phone_login
original_phone_login
phone_pass
fronter
closer
group
channel_group
SQLdate
epoch
uniqueid
customer_zap_channel
customer_server_ip
server_ip
SIPexten
session_id
phone
parked_by
dispo
dialed_number
dialed_label
camp_script
in_script
script_width
script_height
fullname
agent_email
recording_filename
recording_id
user_custom_one
user_custom_two
user_custom_three
user_custom_four
user_custom_five
did_id
did_extension
did_pattern
did_description
closecallid
xfercallid
agent_log_id
call_id
user_group
called_count
did_custom_one
did_custom_two
did_custom_three
did_custom_four
did_custom_five
web_vars
preset_number_a
preset_number_b
preset_number_c
preset_number_d
preset_number_e
preset_dtmf_a
preset_dtmf_b




but if you take the caller_code variable and run query like this: "select outbound_cid from vicidial_dial_log where caller_code = 'CALLERCODEHERE' ". You can then parse outbound CID from the result, it's in which will looke like this ""M5141110440005571020" <8888675309>. I think you can look it up on uniqueid as well.


There is probably a way easier way out there using the API perhaps but I'm not aware of it. I'd like to know if there is a simpler way that doesn't require a query.


Thanks

Re: Display which CID was used

PostPosted: Tue May 15, 2018 9:53 am
by ClearCall
Yes, I ended up just writing a php page that I send the call_id to then run the query and echo the result. I have an href to this php page in the agent script that they click to open a new tab that shows which CID was used.

Re: Display which CID was used

PostPosted: Thu May 17, 2018 12:59 pm
by jshasteen
Cool. Thanks for the response. You can probably just incorporate an AJAX call in the script and just get the CID without having to hit the href.