[asterisk-users] WG: Asterisk and Agents

Ira ira at extrasensory.com
Tue Sep 12 09:17:56 MST 2006

At 06:43 AM 9/12/2006, you wrote:

It's not a great answer, but since it's only a problem adding you 
might just have to validate the codes the agents type in.

>exten => _*8XXX,1,Answer

exten => _*8XXX,n,gotoif($[${EXTEN:1} < 8032]?GoodOne)
exten => _*8XXX,n,goto(hangup)

>exten => _*8XXX,n(goodone),SetLanguage(de)
>exten => _*8XXX,n,AddQueueMember(DEMO|Agent/${EXTEN:1})
>exten => _*8XXX,n,Dial(Local/999/n,,D(#))
>exten => _*8XXX,n,AgentCallBackLogin(${EXTEN:1}|${CALLERIDNUM}@dial-out)
>exten => _*8XXX,n(hangup),Hangup()

That still doesn't solve an agent putting in the wrong number if it's 
valid, but it limits it to valid entries.  You could add this to tell 
them what they entered:.

exten => saydigits(${EXTEN:2})

That won't say the 8 which shortens the messages and gives a better 
chance they might listen.


More information about the asterisk-users mailing list