Blame SOURCES/wvdial-1.54-9nums.patch

4a45da
#added support for up to 9 alternative numbers instead of 4(#178025)
4a45da
#Fedora specific
4a45da
4a45da
diff -ru orig/wvdial.conf.5 wvdial/wvdial.conf.5
4a45da
--- orig/wvdial.conf.5	2003-11-15 03:46:13.000000000 +0800
4a45da
+++ wvdial/wvdial.conf.5	2006-01-16 16:19:16.000000000 +0800
4a45da
@@ -78,7 +78,7 @@
4a45da
 .I Phone
4a45da
 The phone number you want
4a45da
 .B wvdial
4a45da
-to dial. You can add up to 4 other phone numbers that
4a45da
+to dial. You can add up to 9 other phone numbers that
4a45da
 .B wvdial
4a45da
 will dial in order, by adding:
4a45da
 .TP
4a45da
@@ -90,6 +90,16 @@
4a45da
 .TP
4a45da
 .I Phone4
4a45da
 .TP
4a45da
+.I Phone5
4a45da
+.TP
4a45da
+.I Phone6
4a45da
+.TP
4a45da
+.I Phone7
4a45da
+.TP
4a45da
+.I Phone8
4a45da
+.TP
4a45da
+.I Phone9
4a45da
+.TP
4a45da
 .I Dial Prefix
4a45da
 .B wvdial
4a45da
 will insert this string after the dial command and before the phone number.
4a45da
diff -ru orig/wvdialer.cc wvdial/wvdialer.cc
4a45da
--- orig/wvdialer.cc	2003-11-15 03:46:13.000000000 +0800
4a45da
+++ wvdial/wvdialer.cc	2007-01-16 16:14:59.000000000 +0800
4a45da
@@ -213,7 +213,29 @@
4a45da
 	    { 
4a45da
 		phnum_max++;
4a45da
           	if(options.phnum4.len()) 
4a45da
-		    phnum_max++;
4a45da
+ 		{ 
4a45da
+ 		    phnum_max++;
4a45da
+		    if(options.phnum5.len()) 
4a45da
+		    { 
4a45da
+			phnum_max++;
4a45da
+			if(options.phnum6.len()) 
4a45da
+			{ 
4a45da
+			    phnum_max++;
4a45da
+			    if(options.phnum7.len()) 
4a45da
+			    { 
4a45da
+				phnum_max++;
4a45da
+				if(options.phnum8.len()) 
4a45da
+				{ 
4a45da
+				    phnum_max++;
4a45da
+				    if(options.phnum9.len()) 
4a45da
+				    { 
4a45da
+					phnum_max++;
4a45da
+				    }
4a45da
+				}
4a45da
+			    }
4a45da
+			}
4a45da
+		    }
4a45da
+    		}
4a45da
 	    }
4a45da
 	}
4a45da
     }
4a45da
@@ -592,6 +612,11 @@
4a45da
     	{ "Phone2",          &options.phnum2,       NULL, "",               0 },
4a45da
     	{ "Phone3",          &options.phnum3,       NULL, "",               0 },
4a45da
     	{ "Phone4",          &options.phnum4,       NULL, "",               0 },
4a45da
+    	{ "Phone5",          &options.phnum5,       NULL, "",               0 },
4a45da
+    	{ "Phone6",          &options.phnum6,       NULL, "",               0 },
4a45da
+    	{ "Phone7",          &options.phnum7,       NULL, "",               0 },
4a45da
+    	{ "Phone8",          &options.phnum8,       NULL, "",               0 },
4a45da
+    	{ "Phone9",          &options.phnum9,       NULL, "",               0 },
4a45da
     	{ "Dial Prefix",     &options.dial_prefix,  NULL, "",               0 },
4a45da
     	{ "Area Code",       &options.areacode,     NULL, "",               0 },
4a45da
     	{ "Dial Command",    &options.dial_cmd,     NULL, "ATDT",           0 },
4a45da
@@ -874,9 +899,24 @@
4a45da
             case 3:     
4a45da
 		this_str = &options.phnum3;     
4a45da
 		break;
4a45da
-            case 4:
4a45da
+            case 4:     
4a45da
+		this_str = &options.phnum4;     
4a45da
+		break;
4a45da
+            case 5:     
4a45da
+		this_str = &options.phnum5;     
4a45da
+		break;
4a45da
+            case 6:     
4a45da
+		this_str = &options.phnum6;     
4a45da
+		break;
4a45da
+            case 7:     
4a45da
+		this_str = &options.phnum7;     
4a45da
+		break;
4a45da
+            case 8:     
4a45da
+		this_str = &options.phnum8;     
4a45da
+		break;
4a45da
+            case 9:
4a45da
             default:
4a45da
-                this_str = &options.phnum4;     
4a45da
+                this_str = &options.phnum9;     
4a45da
 		break;
4a45da
         }
4a45da
 
4a45da
diff -ru orig/wvdialer.h wvdial/wvdialer.h
4a45da
--- orig/wvdialer.h	2003-11-15 03:46:13.000000000 +0800
4a45da
+++ wvdial/wvdialer.h	2006-01-16 20:12:54.000000000 +0800
4a45da
@@ -103,6 +103,11 @@
4a45da
 	WvString	        phnum2;
4a45da
 	WvString	        phnum3;
4a45da
 	WvString	        phnum4;
4a45da
+	WvString	        phnum5;
4a45da
+	WvString	        phnum6;
4a45da
+	WvString	        phnum7;
4a45da
+	WvString	        phnum8;
4a45da
+	WvString	        phnum9;
4a45da
 	WvString	        dial_prefix;
4a45da
 	WvString	        areacode;
4a45da
 	WvString	        dial_cmd;