[Asterisk-Dev] Get number function
Chris Wade
clwade at sparco.com
Fri Nov 11 07:38:03 MST 2005
Tristram Graham wrote:
> I require a more general "GetNumber" function where the caller can enter
> a andy number followed by # or * when complete. Although I can in theory
> use the extension matching, I would like something less restrictive
> where any number can be entered.
>
> Before I write a new function, I'd like to check whether anything
> similar has already been written?
There are, I believe, several examples of 'number collector' dial-plan
examples available on the wiki at voip-info.org. These scripts
basically absorb entered digits and push them onto a stack that you can
do with as you like.
Also, this is a -users question. It is almost always better to ask a
question on -users first if your question is of a 'can asterisk do this'
nature.
--
Christopher L. Wade, CCNA, CCDA, CQS-CIPTES, CQS-CWLSS
More information about the asterisk-dev
mailing list