Hi,
Listen, what basically you are asking is to configure your system for you.
You are basically asking for a consultant. This group is to ask specific
problems and get specific answers.
I will point you to 2 issues:
1) Do not use modemtype = auto. Use a specific modem configuration. If you
can't find the right one, create your own from the examples.
2) Read User's guide about how to configure your setup and stop taking
example configurations and ask this group to fix them for you.
BR,
Nikos
----- Original Message -----
From: Thai Pham
To: Nikos Balkanas
Cc: Alvaro Cornejo ; users@kannel.org
Sent: Thursday, April 22, 2010 5:44 PM
Subject: Re: My kannel system did not work properly after about 1 day
Hi Nikos,
I read the sections that guide to configure the gateway and the smsbox.
However, I actually used a simple configuration in a tutorial that I found
by googling around. Here is the configuration that I'm using:
# Default kannel configuration file
group = core
admin-port = 13000
admin-password = password1
status-password = password2
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 1
store-type = file
store-location = "/tmp/kannel.store"
# SMSC CONNECTIONS
group = smsc
smsc = at
modemtype = auto
device = /dev/ttyS0
speed = 9600
connect-allow-ip = "127.0.0.1"
sms-center = "+84900000011"
keepalive = 30
# SMSBOX SETUP
group = smsbox
bearerbox-host = "127.0.0.1"
sendsms-port = 13013
global-sender = "+84908123123"
sendsms-chars = "0123456789+-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 1
# SEND-SMS USERS
group = sendsms-user
username = tester
password = password
max-messages = 5
concatenation = true
# SERVICES
group = sms-service
keyword = nop
text = "You asked nothing and I did it"
group = sms-service
keyword = default
text = "No service specified"
include = "/etc/kannel/modems.conf"
Please help point out the wrong configuration item.
Thanks,
Thai
2010/4/22 Nikos Balkanas <nbalka...@gmail.com>
Hi,
Β
What you have done is wrong. Did you read the guide? When new, it is very
imperative to follow instructions accurately, else we cannot help you.
Β
BR,
Nikos
----- Original Message -----
From: Thai Pham
To: Nikos Balkanas
Cc: Alvaro Cornejo ; users@kannel.org
Sent: Thursday, April 22, 2010 10:07 AM
Subject: Re: My kannel system did not work properly after about 1 day
Thanks to all for your attention and consideration.
I did set the init-string to AT+CMEE=1 but the problem still happened. Once
it happened, I could not find any error message reported by the modem.
I guessed there was something wrong with the serial connection. Because the
logs showed that any messages sent by kannel to the modem were echoed back.
I then set keepalive to 60 seconds with the hope that kannel could detect
the broken link and reset it. However, the problem still happened.
After that I changed the keepalive-cmd to "AT+CMEE=1" and it has been
working good since then.
As I am new to this area. I have no idea about kannel, sms, and AT commands.
These trying was done without any guidance. If you find any root cause of
the issue based on the described symtomp, please share with me.
Thanks
Thai
2010/4/22 Nikos Balkanas <nbalka...@gmail.com>
Hi,
Please read User's guide about modem initialization on how to configure
CMEE. If still having problems, please post your configuration with CMEE.
BR,
Nikos
----- Original Message ----- From: Thai Pham
To: Alvaro Cornejo ; users@kannel.org
Sent: Monday, April 19, 2010 6:13 PM
Subject: Re: My kannel system did not work properly after about 1 day
Hi Alvaro,
It's a prepaid sim but I've just bought it recently so the balance is still
very good. I did try to add CMEE=1/2 to the init-string but the modem didn't
show any difference. Once I restarted kannel, everything worked normally.
The messages that had been stuck in the queues were delivered successfully
since then.
I noticed that once the error happened, the logs displayed what were sent to
the modem:
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: TP-Validity-Period:
24.0 hours
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=19^M
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- AT+CMGS=19>
<-------------------------------------------
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
1
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: -->
0011000A8190800299270000A70661F1985C3603
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
2010-04-16 14:35:47 [30152] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command
status: -1
...
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: TP-Validity-Period:
24.0 hours
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=19^M
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <--
0011000A8190800299270000A70661F1985C3603 AT+CMGS=19>
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
1
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: -->
0011000A8190800299270000A70661F1985C3603
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
2010-04-16 14:36:49 [30152] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command
status: -1
I guess Kannel lost the serial connection to the modem somehow. I wish if
there could be more debug information from Kannel.
Thanks,
Thai
On Mon, Apr 19, 2010 at 9:37 PM, Alvaro Cornejo <cornejo.alv...@gmail.com>
wrote:
if it is a prepaid sim, do you have balance?
add AT+CMEE=1 or 2 Ξ’Β to modem string to see get more verbose modem
error and repost.
Regards
Alvaro
|-----------------------------------------------------------------------------------------------------------------|
Env�½e y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Per� , M�Ήxico y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
Ξ’Β Ξ’Β Ξ’Β Ξ’Β Ξ’Β Ξ’Β Visitenos en www.perusms.NET
www.smsglobal.com.mx y
www.pravcom.com
On Mon, Apr 19, 2010 at 2:31 AM, Thai Pham <thai...@gmail.com> wrote:
Dear all,
Have any of you experienced this problem? I'm still struggling to get it
solved.
Regards,
Thai
On Fri, Apr 16, 2010 at 3:06 PM, Thai Pham <thai...@gmail.com> wrote:
Hi everybody out there,
I've been trying to configure a system to send SMS using Kannel with a
Wavecom GSM modem. I used the basic configuration which comes with the
package and I could get the system up and running. I cound send SMS
messages
to my cell phone successfully. However, the system did not work well if I
left it running overnight. If I reset the system, everything went back to
normal. I enabled debug logging but could not find a cause for the issue.
I'm totally new to Kannel so I actually don't know which parts of the
logs I
should post here. Below are the logs when the SMS could be sent
successfully
and the other logs when it failed:
2010-04-15 17:29:14 [30152] [7] DEBUG: clear_old_concat_parts called
2010-04-15 18:00:01 [30152] [13] DEBUG: boxc_receiver: sms received
2010-04-15 18:00:01 [30152] [13] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2010-04-15 18:00:03 [30152] [6] DEBUG: AT2[/dev/ttyS0]:
TP-Validity-Period: 24.0 hours
2010-04-15 18:00:03 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=19^M
2010-04-15 18:00:03 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
2010-04-15 18:00:03 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command
status: 1
2010-04-15 18:00:03 [30152] [6] DEBUG: AT2[/dev/ttyS0]: -->
0011000A8190800299270000A70661F1985C3603
2010-04-15 18:00:03 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
2010-04-15 18:00:05 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
2010-04-15 18:00:05 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- +CMGS: 63
2010-04-15 18:00:05 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- OK
2010-04-15 18:00:05 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command
status: 0
2010-04-15 18:29:12 [30152] [7] DEBUG: clear_old_concat_parts called
...
2010-04-16 11:28:51 [30152] [7] DEBUG: clear_old_concat_parts called
2010-04-16 12:28:50 [30152] [7] DEBUG: clear_old_concat_parts called
2010-04-16 13:28:48 [30152] [7] DEBUG: clear_old_concat_parts called
2010-04-16 14:28:47 [30152] [7] DEBUG: clear_old_concat_parts called
2010-04-16 14:35:46 [30152] [13] DEBUG: boxc_receiver: sms received
2010-04-16 14:35:46 [30152] [13] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]:
TP-Validity-Period: 24.0 hours
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=19^M
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- AT+CMGS=19>
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command
status: 1
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: -->
0011000A8190800299270000A70661F1985C3603
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
2010-04-16 14:35:47 [30152] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
ERROR
2010-04-16 14:35:47 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command
status: -1
2010-04-16 14:35:47 [30152] [7] DEBUG: sms_router: handling message
(0x9e1b250 vs 0x9e1b250)
2010-04-16 14:35:47 [30152] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-04-16 14:35:47 [30152] [7] DEBUG: sms_router: handling message
(0x9e1b250 vs 0x9e1b250)
2010-04-16 14:35:47 [30152] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-04-16 14:35:47 [30152] [7] DEBUG: sms_router: time to sleep 30.00
secs.
2010-04-16 14:35:47 [30152] [7] DEBUG: sms_router: gwlist_len = 1
2010-04-16 14:35:47 [30152] [7] DEBUG: sms_router: handling message
(0x9e1b250 vs 0x9e1b250)
2010-04-16 14:35:47 [30152] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-04-16 14:35:47 [30152] [7] DEBUG: sms_router: handling message
(0x9e1b250 vs 0x9e1b250)
2010-04-16 14:35:47 [30152] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-04-16 14:35:47 [30152] [7] DEBUG: sms_router: time to sleep 30.00
secs.
2010-04-16 14:36:17 [30152] [7] DEBUG: sms_router: gwlist_len = 1
2010-04-16 14:36:17 [30152] [7] DEBUG: sms_router: handling message
(0x9e1b250 vs 0x9e1b250)
2010-04-16 14:36:17 [30152] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-04-16 14:36:17 [30152] [7] DEBUG: sms_router: handling message
(0x9e1b250 vs 0x9e1b250)
2010-04-16 14:36:17 [30152] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-04-16 14:36:17 [30152] [7] DEBUG: sms_router: time to sleep 30.00
secs.
2010-04-16 14:36:47 [30152] [7] DEBUG: sms_router: gwlist_len = 1
2010-04-16 14:36:47 [30152] [7] DEBUG: sms_router: handling message
(0x9e1b250 vs 0x9e1b250)
2010-04-16 14:36:47 [30152] [7] DEBUG: Message routed successfully.
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]:
TP-Validity-Period: 24.0 hours
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=19^M
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <--
0011000A8190800299270000A70661F1985C3603 AT+CMGS=19>
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command
status: 1
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: -->
0011000A8190800299270000A70661F1985C3603
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
2010-04-16 14:36:49 [30152] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
ERROR
2010-04-16 14:36:49 [30152] [6] DEBUG: AT2[/dev/ttyS0]: send command
status: -1
2010-04-16 14:36:49 [30152] [7] DEBUG: sms_router: handling message
(0xb4100558 vs 0xb4100558)
2010-04-16 14:36:49 [30152] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-04-16 14:36:49 [30152] [7] DEBUG: sms_router: handling message
(0xb4100558 vs 0xb4100558)
2010-04-16 14:36:49 [30152] [7] DEBUG: re-queing SMS not-yet-to-be resent
I hope that some of you could help me resolve this issue.
Thanks,
Thai