blob: 146400d218d69b2de5f10a52351e9d3264266c1b [file] [log] [blame]
Harald Welte9066b742016-06-19 18:06:02 +02001Testing smsq_take_next_sms()
2
3- vsub 2, 3 and 5 each have 2 SMS pending, but 5 is not attached
4 1111 has 0 SMS pending, 0 failed attempts
5 2222 has 2 SMS pending, 2 failed attempts
6 3333 has 2 SMS pending, 3 failed attempts
7 4444 has 0 SMS pending, 0 failed attempts
8 5555 (NOT attached) has 2 SMS pending, 5 failed attempts
9-->
10 hitting database: looking for MSISDN > '', failed_attempts <= 9
11#0: sending SMS to 2222 (last_msisdn='2222')
12 hitting database: looking for MSISDN > '2222', failed_attempts <= 9
13#1: sending SMS to 3333 (last_msisdn='3333')
14 hitting database: looking for MSISDN > '3333', failed_attempts <= 9
15 hitting database: looking for MSISDN > '5555', failed_attempts <= 9
16 hitting database: looking for MSISDN > '', failed_attempts <= 9
17#2: sending SMS to 2222 (last_msisdn='2222')
18 hitting database: looking for MSISDN > '2222', failed_attempts <= 9
19#3: sending SMS to 3333 (last_msisdn='3333')
20 hitting database: looking for MSISDN > '3333', failed_attempts <= 9
21 hitting database: looking for MSISDN > '5555', failed_attempts <= 9
22 hitting database: looking for MSISDN > '', failed_attempts <= 9
23#4: no SMS to send (last_msisdn='5555')
24 hitting database: looking for MSISDN > '5555', failed_attempts <= 9
25 hitting database: looking for MSISDN > '', failed_attempts <= 9
26#5: no SMS to send (last_msisdn='5555')
27 hitting database: looking for MSISDN > '5555', failed_attempts <= 9
28 hitting database: looking for MSISDN > '', failed_attempts <= 9
29#6: no SMS to send (last_msisdn='5555')
30
31- SMS are pending at various nr failed attempts (cutoff at >= 10)
32 1111 has 1 SMS pending, 0 failed attempts
33 2222 has 2 SMS pending, 5 failed attempts
34 3333 has 3 SMS pending, 10 failed attempts
35 4444 has 4 SMS pending, 15 failed attempts
36 5555 has 5 SMS pending, 20 failed attempts
37-->
38 hitting database: looking for MSISDN > '', failed_attempts <= 9
39#0: sending SMS to 1111 (last_msisdn='1111')
40 hitting database: looking for MSISDN > '1111', failed_attempts <= 9
41#1: sending SMS to 2222 (last_msisdn='2222')
42 hitting database: looking for MSISDN > '2222', failed_attempts <= 9
43 hitting database: looking for MSISDN > '', failed_attempts <= 9
44#2: sending SMS to 2222 (last_msisdn='2222')
45 hitting database: looking for MSISDN > '2222', failed_attempts <= 9
46 hitting database: looking for MSISDN > '', failed_attempts <= 9
47#3: no SMS to send (last_msisdn='')
48 hitting database: looking for MSISDN > '', failed_attempts <= 9
49#4: no SMS to send (last_msisdn='')
50 hitting database: looking for MSISDN > '', failed_attempts <= 9
51#5: no SMS to send (last_msisdn='')
52 hitting database: looking for MSISDN > '', failed_attempts <= 9
53#6: no SMS to send (last_msisdn='')
54
55- iterate the SMS DB at most once
56 1111 (NOT attached) has 1 SMS pending, 0 failed attempts
57 2222 (NOT attached) has 1 SMS pending, 0 failed attempts
58 3333 (NOT attached) has 1 SMS pending, 0 failed attempts
59 4444 (NOT attached) has 1 SMS pending, 0 failed attempts
60 5555 (NOT attached) has 1 SMS pending, 0 failed attempts
61-->
62 hitting database: looking for MSISDN > '2345', failed_attempts <= 9
63 hitting database: looking for MSISDN > '3333', failed_attempts <= 9
64 hitting database: looking for MSISDN > '4444', failed_attempts <= 9
65 hitting database: looking for MSISDN > '5555', failed_attempts <= 9
66 hitting database: looking for MSISDN > '', failed_attempts <= 9
67 hitting database: looking for MSISDN > '1111', failed_attempts <= 9
68 hitting database: looking for MSISDN > '2222', failed_attempts <= 9
69#0: no SMS to send (last_msisdn='3333')
70 hitting database: looking for MSISDN > '3333', failed_attempts <= 9
71 hitting database: looking for MSISDN > '4444', failed_attempts <= 9
72 hitting database: looking for MSISDN > '5555', failed_attempts <= 9
73 hitting database: looking for MSISDN > '', failed_attempts <= 9
74 hitting database: looking for MSISDN > '1111', failed_attempts <= 9
75 hitting database: looking for MSISDN > '2222', failed_attempts <= 9
76#1: no SMS to send (last_msisdn='3333')
77 hitting database: looking for MSISDN > '3333', failed_attempts <= 9
78 hitting database: looking for MSISDN > '4444', failed_attempts <= 9
79 hitting database: looking for MSISDN > '5555', failed_attempts <= 9
80 hitting database: looking for MSISDN > '', failed_attempts <= 9
81 hitting database: looking for MSISDN > '1111', failed_attempts <= 9
82 hitting database: looking for MSISDN > '2222', failed_attempts <= 9
83#2: no SMS to send (last_msisdn='3333')
84
85- there are no SMS in the DB
86 1111 has 0 SMS pending, 0 failed attempts
87 2222 has 0 SMS pending, 0 failed attempts
88 3333 has 0 SMS pending, 0 failed attempts
89 4444 has 0 SMS pending, 0 failed attempts
90 5555 has 0 SMS pending, 0 failed attempts
91-->
92 hitting database: looking for MSISDN > '', failed_attempts <= 9
93#0: no SMS to send (last_msisdn='')
94 hitting database: looking for MSISDN > '', failed_attempts <= 9
95#1: no SMS to send (last_msisdn='')
96 hitting database: looking for MSISDN > '', failed_attempts <= 9
97#2: no SMS to send (last_msisdn='')
98Done