Hi,

i've setup a kannel server with 4 wavecom modem. I got some troubles
with modems, from time to time they stop sending sms ad return generic
errors. Modems however are not dead they respond to keepalive command
and hence are not resetted. After some time they restart working and sending 
sms.
This way every sms not sent with modem in "zombie" state increment its own 
sms-resend-retry
and sometimes this causes sms to be discarded.
(" WARNING: Maximum retries for message exceeded, discarding it! ")

I think kannel should detect this kind of failure and try to restart the modem 
(at least some times) or disable it.

Searching the archives i've found an old (dated 2009) patch that do more or 
less what i say,
but it's not applied neither in 1.4.3 nor 1.5.0 or cvs.
Some reasons are stopping the cvs commit or can i try to adapt the patch to my 
needs?

http://www.mail-archive.com/[email protected]/msg08776.html

Thanks,

-- Attached log --


2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: --> AT+CMMS=2^M
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: <-- AT+CMMS=2
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: <-- OK
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: TP-Validity-Period: 24.0 hours
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: --> AT+CMGS=132^M
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: <-- AT+CMGS=132>
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: send command status: 1
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: --> 
0011000C919323781361500000A786C43088980651CB6FF25BFED681A0EFF418FD03B9DF6ED09CFE0689CBEE320B946683C66FF9FC0
D22A74153FA5B9E0E83C86536FB1496D3CBA0B05DFE03A5DD697DFA0D4AB3413990FB6D2FB7C5F2B20B347CCBC9E9303B4DFFB94050F9DBEC02818CF2B07B5C9E8FDF20A80B444C83A8E537F92D7F
03
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: --> ^Z
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: <-- > 
0011000C919323781361500000A786C43088980651CB6FF25BFED681A0EFF418FD03B9DF6ED09CFE0689CBEE320B946683C66FF9F
C0D22A74153FA5B9E0E83C86536FB1496D3CBA0B05DFE03A5DD697DFA0D4AB3413990FB6D2FB7C5F2B20B347CCBC9E9303B4DFFB94050F9DBEC02818CF2B07B5C9E8FDF20A80B444C83A8E537F92D
7F03
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: <-- ERROR
2010-11-01 15:48:18 [8728] [6] ERROR: AT2[1]: Generic error: ERROR
2010-11-01 15:48:18 [8728] [6] DEBUG: AT2[1]: send command status: -1
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: --> AT+CMMS=2^M
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: <-- AT+CMMS=2
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: <-- OK
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: TP-Validity-Period: 24.0 hours
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: --> AT+CMGS=132^M
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: <-- AT+CMGS=132>
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: send command status: 1
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: --> 
0011000C919343096598790000A786C43088980651CB6FF25BFED681A0EFF418FD03B9DF6ED09CFE0689CBEE320B946683C66FF9FC0
D22A74153FA5B9E0E83C86536FB1496D3CBA0B05DFE03A5DD697DFA0D4AB3413990FB6D2FB7C5F2B20B347CCBC9E9303B4DFFB94050F9DBEC02818CF2B07B5C9E8FDF20A80B444C83A8E537F92D7F
03
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: --> ^Z
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: <-- > 
0011000C919343096598790000A786C43088980651CB6FF25BFED681A0EFF418FD03B9DF6ED09CFE0689CBEE320B946683C66FF9F
C0D22A74153FA5B9E0E83C86536FB1496D3CBA0B05DFE03A5DD697DFA0D4AB3413990FB6D2FB7C5F2B20B347CCBC9E9303B4DFFB94050F9DBEC02818CF2B07B5C9E8FDF20A80B444C83A8E537F92D
7F03
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: <-- ERROR
2010-11-01 15:48:20 [8728] [6] ERROR: AT2[1]: Generic error: ERROR
2010-11-01 15:48:20 [8728] [6] DEBUG: AT2[1]: send command status: -1

<...snip...>

2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: TP-Validity-Period: 24.0 hours
2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: --> AT+CMGS=132^M
2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: <-- AT+CMGS=132>
2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: send command status: 1
2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: --> 
0011000C919333299663190000A786C43088980651CB6FF25BFED681A0EFF418FD03B9DF6ED09CFE0689CBEE320B946683C66FF9FC0
D22A74153FA5B9E0E83C86536FB1496D3CBA0B05DFE03A5DD697DFA0D4AB3413990FB6D2FB7C5F2B20B347CCBC9E9303B4DFFB94050F9DBEC02818CF2B07B5C9E8FDF20A80B444C83A8E537F92D7F
03
2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: --> ^Z
2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: <-- > 
0011000C919333299663190000A786C43088980651CB6FF25BFED681A0EFF418FD03B9DF6ED09CFE0689CBEE320B946683C66FF9F
C0D22A74153FA5B9E0E83C86536FB1496D3CBA0B05DFE03A5DD697DFA0D4AB3413990FB6D2FB7C5F2B20B347CCBC9E9303B4DFFB94050F9DBEC02818CF2B07B5C9E8FDF20A80B444C83A8E537F92D
7F03
2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: <-- ERROR
2010-11-01 15:48:42 [8728] [6] ERROR: AT2[1]: Generic error: ERROR
2010-11-01 15:48:42 [8728] [6] DEBUG: AT2[1]: send command status: -1
2010-11-01 15:48:54 [8728] [6] DEBUG: AT2[1]: --> 
AT+CPIN?;+CREG?;+COPS?;+CBC;+CSQ;+CNMI=2,2;+CMGF=0^M
2010-11-01 15:48:54 [8728] [6] DEBUG: AT2[1]: <-- 
AT+CPIN?;+CREG?;+COPS?;+CBC;+CSQ;+CNMI=2,2;+CMGF=0
2010-11-01 15:48:54 [8728] [6] DEBUG: AT2[1]: <-- +CPIN: READY
2010-11-01 15:48:54 [8728] [6] DEBUG: AT2[1]: <-- +CREG: 0,1
2010-11-01 15:48:54 [8728] [6] DEBUG: AT2[1]: <-- +COPS: 0,2,22201
2010-11-01 15:48:54 [8728] [6] DEBUG: AT2[1]: <-- +CBC: 0,0
2010-11-01 15:48:54 [8728] [6] DEBUG: AT2[1]: <-- +CSQ: 18,0
2010-11-01 15:48:54 [8728] [6] DEBUG: AT2[1]: <-- OK
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: --> AT+CMMS=2^M
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: <-- AT+CMMS=2
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: <-- OK
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: TP-Validity-Period: 24.0 hours
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: --> AT+CMGS=132^M
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: <-- AT+CMGS=132>
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: send command status: 1
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: --> 
0011000C919343301007120000A786C43088980651CB6FF25BFED681A0EFF418FD03B9DF6ED09CFE0689CBEE320B946683C66FF9FC0
D22A74153FA5B9E0E83C86536FB1496D3CBA0B05DFE03A5DD697DFA0D4AB3413990FB6D2FB7C5F2B20B347CCBC9E9303B4DFFB94050F9DBEC02818CF2B07B5C9E8FDF20A80B444C83A8E537F92D7F
03
2010-11-01 15:48:56 [8728] [6] DEBUG: AT2[1]: --> ^Z
2010-11-01 15:49:00 [8728] [6] DEBUG: AT2[1]: <-- > 
0011000C919343301007120000A786C43088980651CB6FF25BFED681A0EFF418FD03B9DF6ED09CFE0689CBEE320B946683C66FF9F
C0D22A74153FA5B9E0E83C86536FB1496D3CBA0B05DFE03A5DD697DFA0D4AB3413990FB6D2FB7C5F2B20B347CCBC9E9303B4DFFB94050F9DBEC02818CF2B07B5C9E8FDF20A80B444C83A8E537F92D
7F03
2010-11-01 15:49:00 [8728] [6] DEBUG: AT2[1]: <-- +CMGS: 6
2010-11-01 15:49:00 [8728] [6] DEBUG: AT2[1]: <-- OK
2010-11-01 15:49:00 [8728] [6] DEBUG: AT2[1]: send command status: 0


-- 

Andrea GARZENA
Ufficio nuove tecnologie e servizi innovativi
Area Information Technology
Politecnico di Torino
[email protected]
+39 (0)11 090 7826

Reply via email to