AGI Script on inbound call

All installation and configuration problems and questions

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

AGI Script on inbound call

Postby jshasteen » Fri Mar 13, 2015 9:43 am

I would like to have an AGI script run before a call is sent to an InGroup. The simple AGI script will perform a database lookup to see if the caller id exists in the database and play one message if the number exists and another audio message if the number does not exist. If the number does already exist in the database the call will be passed to an InGroup. If the number does not exist that call will get hung up after a brief message is played.

How can I set this up in Vicidial? Do I just need to have the agi script run before AGI(agi-DID_route.agi) in the dialplan?
Vicibox 8.1 from .iso | VERSION: 2.14-695a BUILD: 181116-1133 | 11.25.3-vici | Single-Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Dell R710 Dual hex-core | 48GB RAM | 8 15k SAS RAID-10
jshasteen
 
Posts: 52
Joined: Thu Sep 16, 2010 11:01 am

Re: AGI Script on inbound call

Postby mflorell » Fri Mar 13, 2015 10:04 am

Yes you can set that up. Just change this:

exten => _X.,1,AGI(agi-DID_route.agi)


to this:

exten => _X.,1,AGI(agi-new.agi)
exten => _X.,n,AGI(agi-DID_route.agi)


in the [trunkinbound] context in extensions.conf, and have the DID route normally from there
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: AGI Script on inbound call

Postby jshasteen » Fri Mar 13, 2015 10:16 am

Nice, thanks for the help!
Vicibox 8.1 from .iso | VERSION: 2.14-695a BUILD: 181116-1133 | 11.25.3-vici | Single-Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Dell R710 Dual hex-core | 48GB RAM | 8 15k SAS RAID-10
jshasteen
 
Posts: 52
Joined: Thu Sep 16, 2010 11:01 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 108 guests