summaryrefslogtreecommitdiff
path: root/drivers/dahdi
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-13 10:21:16 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-13 10:21:16 +0000
commit383b8037451b5b457672098bc1ebfc12f59a549f (patch)
tree633f144c04e5e411ba96f55005980d5c8f1a0739 /drivers/dahdi
parentfab6960dfb0c5e8fd4bb8e8260621f28c7e87338 (diff)
Fix handling of 'w' in a pulse dial string
Make the special "digit" 'w' work in pulse dialing as it works with tone dialing (a delay of 0.5 second till the next digit). Note that the digit gets uppercased before it gets to this function. (closes issue #13999) Reported by: IgorG Patches: dahdi-base.c.pulse2.diff uploaded by tzafrir (license 46) Tested by: litnimax git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6147 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r--drivers/dahdi/dahdi-base.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index 70d84f1..1d3c92a 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -3078,6 +3078,15 @@ struct dahdi_tone *dahdi_mf_tone(const struct dahdi_chan *chan, char digit, int
}
switch (digitmode) {
+ case DIGIT_MODE_PULSE:
+ /* We should only get here with a pulse digit if we need
+ * to "dial" 'W' (wait 0.5 second)
+ */
+ if (digit == 'W')
+ return &tone_pause;
+
+ return NULL;
+ /* You should not get here */
case DIGIT_MODE_DTMF:
switch (digit) {
case '0':