Page 1 of 1

agi-AGENT_route.agi user id that has letters not just number

PostPosted: Thu Apr 11, 2013 11:30 pm
by Noah
Quick question to anyone using agi-AGENT_route.agi.

I'm not able to dial your parties extension if the userid has any alpha characters. I originally thought this feature was using the phone login (obviously numeric) for the "user id" to determine the session / conference to attempt to deliver the call to from the call menu agi route for this, but it seems at least from testing that only the userid must be numeric to use this feature.

Anyone else having the same issue? Anyone modified the agi to send to the phone login specified under the userid, instead of the user id?


VERSION: 2.6-395a
BUILD: 130221-1736
Built from SVN upgrade

Re: agi-AGENT_route.agi user id that has letters not just nu

PostPosted: Fri Apr 12, 2013 8:15 pm
by williamconley
please post your installation method.

please post the URL where you are using the agi in question, and more specific details of how you are using it (precisely ...). I understand you are looking at these screens (and likely have been for several hours of in-depth testing ...) but please bring the rest of us up to speed on your precise methodology for creating the conditions under which you are working. If you post enough details to make it possible for a "lay person" to duplicate your problem, you may be surprised at who resolves your problem. It will also make it possible for a professional to easily duplicate your problem in case nobody else jumps in. either way, making it easier for a "helper" to experience the issue seriously increases your likelihood of a helpful response.

Re: agi-AGENT_route.agi user id that has letters not just nu

PostPosted: Mon Oct 31, 2016 4:52 pm
by agathafunk
We have resolved this issue.

We created a callmenu which has the different options including the option to enter the extension number at any time. We added the dial plan entry.

Custom Dial Plan Entry:
exten => _.,1,Answer()
exten => _.,n,noop("this is the exten cap" ${EXTEN})
exten => _.,n,Set(userexten=${EXTEN})
exten => _.,n,noop("this is the phone" ${userexten})
exten => _.,n,Set(user=${CURL(http://serverip/folder/phpfile.php?sipexten=${userexten})})
exten => _.,n,noop("this is the user" ${user})
exten => _.,n,Set(EXTEN=${user})
exten => _.,n,noop("this is the exten" ${EXTEN})
exten => _.,n,goto(routetoagent,${user},1)

We have php file which grabs the "user" of the corresponding extension number entered by the caller from the vicidial_live_agents table.
$stmt="select user from vicidial_live_agents where phone_login = $sipexten;";

We created another callmenu for the agi-AGENT_route.agi
exten => _.,1,Answer()
exten => _.,n,AGI(agi-AGENT_route.agi,default---AGENTDIRECT---ACTIVE---------sip-silence---------BSaverInb------)