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}|[EMAIL PROTECTED])
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.

Ira
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to