summaryrefslogtreecommitdiff
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
commit1956a5ce6f90e55f2dbd763746f1e43ae9543be8 (patch)
tree633f144c04e5e411ba96f55005980d5c8f1a0739
parent85a5e7556beb5463247110f094ccd4ae62346dfb (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
-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':