Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
mflorell wrote:We added this AGI script a few years ago for inbound postal code routing in the USA:
# cm_postal.agi version 2.12
#
# Designed to work with Cell Menus to allow searching of the number entered by
# the customer to be searched within the vicidial_postal_codes table to gather
# the state, then search the vicidial_inbound_dids table for that state in the
# did_carrier_description field and send the call on to the did that matches.
#
# If postal code is not found call will go to the 'D' option in the call menu
# If state DID is not found call will go to the 'C' option in the call menu
#
# Flag Options:
# 1- minimum number of digits allowed in postal code, default 5
# 2- DID prefix to filter by in searching for DIDs, default 999
#
# example of what to put in the Custom Dialplan entry for a Call Menu:
#exten => _XXXXX,1,AGI(cm_postal.agi,5---999)
mflorell wrote:We added this AGI script a few years ago for inbound postal code routing in the USA:
williamconley wrote:Filter URL DID Redirect -If the Filter Inbound Number field is set to URL then this setting allows the URL response to specify a system DID to redirect the call to instead of using the default action. If a 0 is returned then the default action is used. If anything other than a 0 is returned then the call will be redirected to the resulting URL response value.
Or use a call menu with a multi-digit response option which can route via agi or back to a DID for more decisions.
Don't forget that you can use a menu or VIDPrompt to gather the info and then route to a call menu and/or back to another DID for secondary processing to manage multiple stages (get the info, route according to the info).
For instance: You could have the initial DID filter check for a matching vicidial lead and grab the postal code and complete the transaction OR (if no lead record matches inbound CID) route to an "i need my postal code checked" DID that bounces to a call menu or uses the VIDprompt ... and so on.
Users browsing this forum: Bing [Bot] and 78 guests