[asterisk-dev] Re: [svn-commits] murf: trunk r41283 - /trunk/main/pbx.c

Matt Riddell (IT) matt.riddell at sineapps.com
Wed Aug 30 13:04:35 MST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Lange wrote:
> On Wed, 2006-08-30 at 10:31 -0500, Steven Critchfield wrote:
>>> Already the existing system has some limitations; for example it can not
>>> match a variable number of digits. I had a friend who was trying to
>>> implement an ISDN lookup for library books (ISDNs are variable length)
>>> but had problems because of the limitations on the matching.
>> I think you meant ISBN. And variable number of digits is supported. You
>> just need to know how to determine when it is shorter or longer and
>> write your dialplan as such. 
> 
> LOL, ya, ISBN. Apparently I've exceeded the maximum acronym storage
> limit of my brain.
> 
>> Think about it, in dialplans, most people have short internal extensions
>> that can be dialed, and longer PSTN local and even longer PSTN LD
>> numbers that can all be handled just fine. 
> 
> I'll ask for the specific example. I think it had to do with terminating
> with a "#". So:
> 
> exten => _X.#,1,....
> 
> Does not work. Everything after the "." is ignored and you are forced to
> rely on the digit timeout for asterisk to start doing anything. This is
> exceptionally annoying in this case because the timeouts are long to
> allow people to enter a difficult number.

Or even:

  -= Info about application 'Read' =-

[Synopsis]
Read a variable

[Description]
  Read(variable[|filename][|maxdigits][|option][|attempts][|timeout])

Reads a #-terminated string of digits a certain number of times from the
user in to the given variable.

and the Goto app maybe?

- --
Cheers,

Matt Riddell
_______________________________________________

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://freevoip.gedameurope.com (Free Asterisk Voip Community)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE9e9TS6d5vy0jeVcRAtcdAJ4kkkGTRxUxvPFrKmsrhBNlr/KkLQCghUfc
I9EVR6fgtShgGGdFVzFxXAw=
=ZsJD
-----END PGP SIGNATURE-----



More information about the asterisk-dev mailing list