I have a basic svi wich make these action:
put 1: goto queue(support)
put 2: the client gives me his command number and I use function waitdigit
My question, How to get this value?
Below the context of my svi
[ivr_1]
exten => s,1,agi(googletts.agi,“Bienvenue dans IVR”,fr,any)
same => n,Answer()
same => n,agi(googletts.agi,“taper 1 si vous voulez contacter un support”,fr,any)
same => n,agi(googletts.agi,“taper 2 si vous voulez verifier votre numero de commande”,fr,any)
same => n,agi(googletts.agi,“taper 3 si vous voulez autre question”,fr,any)
same => n(loop),Background(press-1&or&press-2&press-3)
same => n,Set(TIMEOUT(response)=10)
same => n,WaitExten()
exten => 1,1,NoOp(choix 1)
same => n, agi(googletts.agi,“Choix 1:Contact Support”,fr,any)
same => n, Queue(support)
same => n,Goto(s,loop)
exten => 2,1,NoOp(choix 2)
same => n, agi(googletts.agi,“Entrer votre numero et terminer par un diez”,fr,any)
same => n, waitDigit(5,5) ;5 sec and 5 digits
;------ How Should I use here and then the agent can hear the digits of tne number
same => n, SayDigits () ; the value of waitDigit
same => n,Hangup()
exten => 3,1,NoOp(choix 3)
same => n, agi(googletts.agi,“Entrer votre numero et terminer par un #”,fr,any)
same => n, agi(googletts.agi,“Votre choix est 1”,fr,any)
same => n, Dial(SIP/1002,20) ;appel direct exten 1002
same => n,Hangup()
exten => _[3-9#],1,NoOp(choix 3)
same => n,Goto(invalid,s,1)
[invalid]
exten => s,1,NoOp(invalid touch)
same => n,agi(googletts.agi,“Choix invalid”,fr,any)
same => n,Goto(ivr_1,s,1)
Thanks you so much