[dahdi-commits] tzafrir: linux/trunk r6147 -	/linux/trunk/drivers/dahdi/dahdi-base.c
    SVN commits to the DAHDI project 
    dahdi-commits at lists.digium.com
       
    Fri Mar 13 05:21:21 CDT 2009
    
    
  
Author: tzafrir
Date: Fri Mar 13 05:21:16 2009
New Revision: 6147
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6147
Log:
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
Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=6147&r1=6146&r2=6147
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Fri Mar 13 05:21:16 2009
@@ -3078,6 +3078,15 @@
 	}
 
 	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':
    
    
More information about the dahdi-commits
mailing list