Claim your Biolink Click Here
2 like 0 dislike
378 views
I wrote an ivr in Asterisk, but after playing the audio file, I did not allow more than one digit.
In the matching pattern in _X! It means a digit or more than a digit, so why not apply in the following example?

[testdialplan]
exten => 33,1,Answer
same => n,Set(TIMEOUT(digit)=3)
same => n,Background(demo-congrats)
same => n,wait(3)
exten => _XXX!,1,NoOp(number1)
in Education & Reference by (830 points) | 378 views

1 Answer

0 like 0 dislike

_X! means that Asterisk will only try to assemble a number until at least one digit has been obtained. That is, of course, the trivial case. Generally, when doing IVR’s digits arrive individually, so it will always match exactly one digit. The only time that it would match more is on the start of a call, where the digits are in the request URI.

Source: Asterisk Community

by

Related questions

1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
3 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Aug 25, 2017 in Education & Reference by Simmi (830 points) | 251 views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,312 questions
1,473 answers
569 comments
4,809 users