[Asterisk-Dev] Snappier dialing

John Harragin jharragi at mw.k12.ny.us
Tue May 6 11:52:47 MST 2003


Oh I forgot to mention what this does. When the specified number of digits
is pressed * dials that extension immediately - instead of waiting 3 more
seconds. In my particular case I was using "switch" to expand my dialplan a
couple of different * boxes it seemed to stagger around like a drunken
sailor looking for an extension - now you dial the extension and bang - its
ringing.

John

-----Original Message-----
From: asterisk-dev-admin at lists.digium.com
[mailto:asterisk-dev-admin at lists.digium.com]On Behalf Of John Harragin
Sent: Monday, May 05, 2003 1:25 PM
To: asterisk-dev at lists.digium.com
Subject: [Asterisk-Dev] Snappier dialing


Here is a patch for chan_zap.c that allows you to set the dtmf string length
expected for a particular first digit dialed.

An example. Suppose your dial-plan extensions are all 4 digits & begin with
6. You would set a variable LENIFFIRSTX = L - where X is the first digit and
L is the length of the string.

[globals]
LENIFFIRST6 = 4

This should also work with channel variables - but I have not tested this as
much. This is intended for menu-box-contexts - anyone who wants to try this
out, let me know how it works or if you have suggestions. Note, channel
variables will override globals of the same name. They can also should be
able to be set to an empty string (NULL) to override global behavior.

John



(digium, if you want to put this in cvs, let me know & I will send in a
release)


This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus.




More information about the asterisk-dev mailing list