How to set Vicidial Lead fields as a Variable in asterisk dialplan - CloudsDial
-
In vicidial you might required the vicidial lead fields as asterisk dialplan variable to do some other stuffs like checking the database with customer phone number before dial, or run an api within dialplan etc, to get the vicidial lead fields as asterisk dialplan variable vicidial team by default provided a agi script (agi-set_variables.agi) in there latest svn version, you can use this agi after the call log dialplan in carrier like
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,AGI(agi-set_variables.agi)
exten => _91NXXNXXXXXX,n,Dial(${TESTSIPTRUNK}/${EXTEN:2},,tTor)
exten => _91NXXNXXXXXX,n,HangupLater in dialplan you can use the vicidial variable eg for customer number use ${phone_number} name ${first_name}
Below are the list of vicidial lead fields set as varaible in asterisk by the agi script.Variables:
A variable is a placeholder for an actual value. Exactly what that value is depends on the kind of variable. In Asterisk, variables can contain numbers, letters and strings. Variables are useful because they let us create rules for call flow that apply in changing circumstances and make it easier to accommodate future changes in the telephone application or systemThe value of a variable can be obtained using the syntax ${VARIABLENAME}. There are variables that are automatically set by Asterisk. For example, the called number is always stored in the Asterisk system variable ${EXTEN}, calling party callerid ${CALLERID(num)} etc.
Vicidial Lead fields:
Below are the list of vicidial lead fields which we can set as a variable in asterisk
lead_id
entry_date
modify_date
status
user
vendor_lead_code
source_id
list_id
phone_number
title
first_name
middle_initial
last_name
address1
address2
address3
city
state
province
postal_code
country_code
gender
date_of_birth
alt_phone
email
security_phrase
comments
called_count
last_local_call_time
rank
owner
campaign_id
dialed_numberThanks for reading our content. to know more about our services, kindly visit our website:
CloudsDial Solutions Pvt Ltd
https://cloudsdial.com/
Mail: [email protected]
Skype ID: sivakumar.s07
Youtube Link: https://youtu.be/n1M9rpi2dHwVISIT US DIRECTLY:
NO:85 3rd FLOOR,
EGAMBARAM STREET,
UDHAYA NAGAR EXTENSION,
PORUR, CHENNAI 600116.
Contact-No: 8608522333