Displaying 2 results from an estimated 2 matches for "dtmfseq".
Did you mean:
dtmfs
2004 Aug 27
2
Using regular expression in dialplan
Hi all,
Did anyone manage to make the GotoIf command work with regular expression ?
I would like to make the following thing:
${DTMSeq} contains a menu choice. Only 1, 2 and 3 are allowed menu choices.
If
DTMFSeq contains 1 or 2 or 3 => OK, Goto 4
else
Goto 2
I've tried the follwoing syntax but it is alway going to 2 whatever
the value of DTMFSeq:
exten => s,1,GotoIf($[${DTMFSeq} : 123]?4:2)
exten => s,2,SetVar(InvalidCount=$[${InvalidCount} + 1])
....
exten => s,4,SetVar(Result=o...
2004 Aug 27
0
regex and gotoif question
Hi all,
Did anyone manage to make the GotoIf command work with regular expression ?
I would like to make the following thing:
${DTMSeq} contains a menu choice. Only 1, 2 and 3 are allowed menu choices.
If
DTMFSeq contains 1 or 2 or 3 => OK, Goto 4
else
Goto 2
I've tried the follwoing syntax but it is alway going to 2 whatever
the value of DTMFSeq:
exten => s,1,GotoIf($[${DTMFSeq} : 123]?4:2)
exten => s,2,SetVar(InvalidCount=$[${InvalidCount} + 1])
......
exten => s,4,SetVar(Result=ok...