Extension to Agent Direct

All installation and configuration problems and questions

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

Extension to Agent Direct

Postby ConnectedDialer » Fri Jul 13, 2018 10:31 am

I have a call menu set up to allow caller enter extension to reach agents. The custom dial plan looks like this:

exten => _XXXX,1,Playback(/var/lib/asterisk/sounds/silence)
exten => _XXXX,n,Goto(vicidial-auto-phones,${EXTEN},1)

Instead, I would like to somehow direct a call to an agent direct queue of the agent that has that extension.

I have set up internal, virtual DIDs (AD + extension, so for example AD3392) that are configured to go to agent direct queues and fall back to extensions if call fails. How would I indicate this custom dial plan to go to a specific internal DID?

Something like:

exten => _XXXX,n,Goto(did,AD${EXTEN},1)
Vicibox 8.0.1 from .iso
VICIDIAL: 2.14-644a BUILD: 171130-0036
Asterisk 11.25.3-vici
Single Server
No Digium/Sangoma Hardware
No Extra Software After Installation
Custom PC - XEON E5-1607
ConnectedDialer
 
Posts: 52
Joined: Wed Jun 06, 2018 11:14 am

Re: Extension to Agent Direct

Postby mflorell » Fri Jul 13, 2018 3:37 pm

That's why we originally wrote the agi-AGENT_route.agi script:

# for use with a Call Menu in the custom dialplan section or as an AGI route.
#
# ; settings for this script:
# ; 1. DID pattern to use for In-group initiation settings ('default' is default)
# ; 2. the agentdirect in-group to send the calls to ('AGENTDIRECT' is default)
# ; 3. transfer only to ACTIVE in the system agent or vicidial LOGGED_IN agent
# ; ('ACTIVE' is default)
# ; 4. prompt for user ID, if this is filled in with a filename it will ask,
# ; otherwise it will assume $extension is the user ID
# ; 5. number of digits required for user ID validation, X will allow anything,
# ; this will only be enforced if "prompt for user ID" prompt is populated
# ; 6. audio filename for invalid selection, agent not available ('invalid' is default)
# ; 7. audio filename for invalid user id re-enter prompt, agent not available
# ; 8. number of retry attempts to enter a valid user ID
# ; this will only be enforced if "prompt for user ID" prompt is populated
# ; 9. in-group to send the call to if there is no valid agent, if none is
# ; defined, then the call will be directed to 's' exten
# ; 10. audio filename before sending call to no-agent route
# ; 11. audio filename before sending call to no-agent route if agent active but
# ; not logged-in to vicidial
#
#; example in CallMenu AGI route with all options
# "agi-AGENT_route.agi,default---AGENTDIRECT---LOGGED_IN---if-u-know-ext-dial---X---invalid---please-try-again---3---TEST_IN3---pbxtransfer---outside-transfer"
#; example with 4-digit agent IDs
# exten => _XXXX,1,AGI(agi-AGENT_route.agi,default---AGENTDIRECT---ACTIVE)
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Extension to Agent Direct

Postby carpenox » Thu Oct 28, 2021 10:40 am

here is an article with pictures on how to get this done:

https://cyburdial.net/how-to-create-a-c ... ension-on/

Hope this vhelps

Chris
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2420
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: No registered users and 122 guests