here is my dial plan
[hola]
exten => s,1,NoOp(“The Context is :” ${CONTEXT} “and destination is”${EXTEN})
same => n,Playback(“hello-world”)
same => n,Read(digito,20)
exten => s,n,GotoIf($["${digito}" = “1”]?dial1)
exten => s,n,GotoIf($["${digito}" = “2”]?dial2)
exten => s,n,GotoIf($["${digito}" = “3”]?dial3)
exten => s,n(dial1),Dial(SIP/6472472369:6472472369@10.101.0.6/${digito},120,tr)
same => n,Hangup()
exten => s,n(dial2),Dial(SIP/6472472369:6472472369@10.150.0.235/${digito},120,tr)
same => n,Hangup()
exten => s,n(dial3),Dial(SIP/6472472369:6472472369@10.25.0.100/${digito},120,tr)
same => n,Hangup()
as we see above , if i put 1 then # it go to ip1
if i put 2 then # it go to ip 2
if i put 3 then # it go to ip3
but i want to change eh behaviour , is it possible if i put 1 it go directly and don’t wait me put # to ip1 ?
is it possible to do a mix, for example if they press 1 or 2 route right away without waiting for a # if they enter 3-9 it waits for #? and we will just mkae sure to never proviision a client ID that starts with 1 or 2?