Page 1 of 1

Dynamic dial plan

PostPosted: Mon Jul 09, 2018 1:19 pm
by ConnectedDialer
What is the most "proper way" to create a dynamic dial plan?

Here's the scenario:

1. A call comes in, so I know the caller id and the DID dialed.
2. I want to pass caller id and DID to a http page: http://www.example.com/route.asp?caller ... 8002233242
3. route.asp will return a combinaiton of route and parameter, example: {EXTEN, 1223} or {AGENT, jamesbrooks} or {CALLMENU, callmenu1}
4. Based on what route.asp returns, I will transfer the call to that agentdirect agent, or callmenu, or did or extention, etc....

What is the most proper way to accomplish this?

Do I need to create a custom AGI script?

Re: Dynamic dial plan

PostPosted: Mon Jul 09, 2018 3:29 pm
by mflorell
Currently, the Filter URL feature can send out the DID and CIDnumber, and it can route the call to another internal DID. There are currently no provisions to allow for additional inputs as you mention, although through the user of internal DIDs, you can send the call to a lot of different combinations of destinations.

Re: Dynamic dial plan

PostPosted: Mon Jul 09, 2018 3:58 pm
by ConnectedDialer
Thanks for the advise mflorell, I was able to accomplish this with internal DIDs. It works. The downside is that for each unique route, I need to create an internal DID. When we have many agents, (50+) it becomes too much to manage, so we're looking for a "clean" solution.

Is there no ability in AGI to route calls? If I could route calls from an AGI script, that's all I need. I can deal with data/inputs myself within the AGI script.

Re: Dynamic dial plan

PostPosted: Mon Jul 09, 2018 8:40 pm
by mflorell
Yes, you could write your own AGI script to do any kind of routing you want.

Re: Dynamic dial plan

PostPosted: Tue Jul 10, 2018 2:22 pm
by ConnectedDialer
If I understand correctly, "In Group", "User" and "Campaign" as well as Agent direct campaign are vicidial concepts, so how would I make this work within AGI? There's no command to tranfer to an ingroup in AGI is there?

Re: Dynamic dial plan

PostPosted: Tue Jul 10, 2018 6:53 pm
by mflorell
We do it in some of the AGIs, it's a complex dialplan construction to do transfers like that. The code is all open, it's not simple, but it's all there.