TOPIC: how to set vicidial Lead fields as a variable in asterisk dialplan.
Overview:
exten => _91NXXNXXXXXX,n,AGI(agi-set_variables.agi)
exten => _91NXXNXXXXXX,n,Dial(${TESTSIPTRUNK}/${EXTEN:2},,tTor)
exten => _91NXXNXXXXXX,n,Hangup
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 system
The 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
security_phrase
comments
called_count
last_local_call_time
rank
owner
campaign_id
dialed_number
For support reach me via skype: striker24x7 or mail at striker24x7@gmail.com
Also Check: