forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smsclient-2.0.9a-sender.patch
139 lines (120 loc) · 6.08 KB
/
smsclient-2.0.9a-sender.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
diff -Nru smsclient-2.0.9a.orig/Changelog smsclient-2.0.9a/Changelog
--- smsclient-2.0.9a.orig/Changelog 2007-02-03 08:43:40.000000000 +0200
+++ smsclient-2.0.9a/Changelog 2007-02-03 08:43:12.000000000 +0200
@@ -1,3 +1,7 @@
+2007-02-02 12:00 Andreas Bollhalder <[email protected]>
+
+ * Added SMS_sender_number to UCP driver
+
2002-03-26 14:00 Koenraad Heijlen <[email protected]>
RELEASED as 2.0.9a
diff -Nru smsclient-2.0.9a.orig/sms/services/d2 smsclient-2.0.9a/sms/services/d2
--- smsclient-2.0.9a.orig/sms/services/d2 2002-03-07 00:04:51.000000000 +0200
+++ smsclient-2.0.9a/sms/services/d2 2007-02-03 08:44:55.000000000 +0200
@@ -14,6 +14,12 @@
SMS_centre_number = "01722278020" # D2 SMSC Number
# +49 must be added for dialing from outside germany
+
+ # ------------------------------------------------------------
+ # Your sender number.
+ # ------------------------------------------------------------
+
+ # SMS_sender_number = "1234567890"
}
# --------------------------------------------------------------------
diff -Nru smsclient-2.0.9a.orig/sms/services/kpntext smsclient-2.0.9a/sms/services/kpntext
--- smsclient-2.0.9a.orig/sms/services/kpntext 2007-02-03 08:43:40.000000000 +0200
+++ smsclient-2.0.9a/sms/services/kpntext 2007-02-03 08:43:12.000000000 +0200
@@ -16,6 +16,12 @@
SMS_centre_number = "0665181802" # PTT/KPN Telcom service
# centre number
+
+ # ------------------------------------------------------------
+ # Your sender number.
+ # ------------------------------------------------------------
+
+ # SMS_sender_number = "1234567890"
}
# --------------------------------------------------------------------
diff -Nru smsclient-2.0.9a.orig/sms/services/kpnucp smsclient-2.0.9a/sms/services/kpnucp
--- smsclient-2.0.9a.orig/sms/services/kpnucp 2007-02-03 08:43:40.000000000 +0200
+++ smsclient-2.0.9a/sms/services/kpnucp 2007-02-03 08:43:12.000000000 +0200
@@ -16,6 +16,12 @@
SMS_centre_number = "0653141414" # PTT/KPN Telcom service
# centre number
+
+ # ------------------------------------------------------------
+ # Your sender number.
+ # ------------------------------------------------------------
+
+ # SMS_sender_number = "1234567890"
}
# --------------------------------------------------------------------
diff -Nru smsclient-2.0.9a.orig/sms/services/swisscom smsclient-2.0.9a/sms/services/swisscom
--- smsclient-2.0.9a.orig/sms/services/swisscom 2007-02-03 08:43:40.000000000 +0200
+++ smsclient-2.0.9a/sms/services/swisscom 2007-02-03 08:43:12.000000000 +0200
@@ -13,6 +13,12 @@
SMS_centre_number = "0794998990" # SWISSCOM SMSC Number (Analog V.34)
# SMS_centre_number = "0900900941" # SWISSCOM SMSC Number (ISDN V.120)
+
+ # ------------------------------------------------------------
+ # Your sender number.
+ # ------------------------------------------------------------
+
+ # SMS_sender_number = "1234567890"
}
# --------------------------------------------------------------------
diff -Nru smsclient-2.0.9a.orig/sms/services/telenor smsclient-2.0.9a/sms/services/telenor
--- smsclient-2.0.9a.orig/sms/services/telenor 2007-02-03 08:43:40.000000000 +0200
+++ smsclient-2.0.9a/sms/services/telenor 2007-02-03 08:43:12.000000000 +0200
@@ -13,6 +13,12 @@
SMS_centre_number = "90002198" # TELENOR SMSC Number
# From Inside Norway
+
+ # ------------------------------------------------------------
+ # Your sender number.
+ # ------------------------------------------------------------
+
+ # SMS_sender_number = "1234567890"
}
# --------------------------------------------------------------------
diff -Nru smsclient-2.0.9a.orig/sms/services/telia smsclient-2.0.9a/sms/services/telia
--- smsclient-2.0.9a.orig/sms/services/telia 2007-02-03 08:43:40.000000000 +0200
+++ smsclient-2.0.9a/sms/services/telia 2007-02-03 08:43:12.000000000 +0200
@@ -16,6 +16,12 @@
# ------------------------------------------------------------
# +46 must be added for dialing from outside Sweden
# ------------------------------------------------------------
+
+ # ------------------------------------------------------------
+ # Your sender number.
+ # ------------------------------------------------------------
+
+ # SMS_sender_number = "1234567890"
}
# --------------------------------------------------------------------
diff -Nru smsclient-2.0.9a.orig/src/driver/ucp.c smsclient-2.0.9a/src/driver/ucp.c
--- smsclient-2.0.9a.orig/src/driver/ucp.c 2007-02-03 08:43:40.000000000 +0200
+++ smsclient-2.0.9a/src/driver/ucp.c 2007-02-03 08:43:12.000000000 +0200
@@ -184,6 +184,8 @@
/* Place any extended driver */
/* variables here */
+ char *szSenderNumber;
+
} driver_env;
/* -------------------------------------------------------------------- */
@@ -197,6 +199,7 @@
{ RESOURCE_NUMERIC, "SMS_timeout", 0, 0, NULL, 0, NULL, 10, &(driver_env.def.timeout) },
{ RESOURCE_NUMERIC, "SMS_write_timeout", 0, 0, NULL, 0, NULL, 10, &(driver_env.def.write_timeout) },
{ RESOURCE_NUMERIC, "SMS_max_deliver", 0, 0, NULL, 0, NULL, 1, &(driver_env.def.max_deliver) },
+ { RESOURCE_STRING, "SMS_sender_number", 0, 1, NULL, 0, "", 0, &(driver_env.szSenderNumber) },
{ RESOURCE_NULL, NULL, 0, 1, NULL, 0, NULL, 0, NULL }
};
@@ -248,9 +251,9 @@
/* data: AdC/OAdc/OAC/MT/.. */
- /* -> recipient///3/... */
+ /* -> recipient/sender//3/... */
- nc = sprintf(msgData, "%s///%1.1d/", msisdn, msgType);
+ nc = sprintf(msgData, "%s/%s//%1.1d/", msisdn, driver_env.szSenderNumber, msgType);
/* ... additional parameters depending on MT */
/* For MT=3 (alphanumeric) this is hex coded */