Hosted Vicidial server starts from $39 Contact Us Buy Now!

How to Fetch Vicidial Lead fields Variable in asterisk dialplan

TOPIC: how to set vicidial Lead fields as a variable in asterisk dialplan.


asterisk vicidial variables

Overview:

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,Hangup

Later 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 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    
 email    
 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:

vicidial webrtc setup with self signed ssl

vicidial database maintenance 

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.