Display which CID was used

Discussions about new features or changes in existing features

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Display which CID was used

Postby ClearCall » Tue May 08, 2018 11:16 am

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?
VERSION: 2.14-620a BUILD: 170623-2142
Asterisk: 1.8.32.0-vici
Installed from Vicibox iso.
Vicibox Redux Ver 6.0.2-140825
Open Suse Leap 42.3
ClearCall
 
Posts: 159
Joined: Fri Dec 03, 2010 12:21 pm

Re: Display which CID was used

Postby jshasteen » Mon May 14, 2018 10:46 am

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
Vicibox 6 from .iso | VERSION: 2.10-450a BUILD: 140822-1034 | Asterisk 1.8.29.0-vici | Single-Server | No Digium/Sangoma Hardware | No Extra Software After Installation | AMD FX-8120 Eight-Core Processor | 16GB DDR3 RAM
jshasteen
 
Posts: 34
Joined: Thu Sep 16, 2010 11:01 am

Re: Display which CID was used

Postby ClearCall » Tue May 15, 2018 9:53 am

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.
ClearCall
 
Posts: 159
Joined: Fri Dec 03, 2010 12:21 pm

Re: Display which CID was used

Postby jshasteen » Thu May 17, 2018 12:59 pm

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.
Vicibox 6 from .iso | VERSION: 2.10-450a BUILD: 140822-1034 | Asterisk 1.8.29.0-vici | Single-Server | No Digium/Sangoma Hardware | No Extra Software After Installation | AMD FX-8120 Eight-Core Processor | 16GB DDR3 RAM
jshasteen
 
Posts: 34
Joined: Thu Sep 16, 2010 11:01 am


Return to Features

Who is online

Users browsing this forum: No registered users and 2 guests