Deal all,

My system have just failed to work recently. It has been running well since
last night. I thought the problem was solved. All I could get from the logs
are the messages below:
2010-04-22 21:58:01 [28203] [6] ERROR: AT2[/dev/ttyS0]: CMS ERROR: +CMS
ERROR: 305
2010-04-22 21:58:01 [28203] [6] ERROR: AT2[/dev/ttyS0]: CMS ERROR: Invalid
text mode parameter (305)
2010-04-22 21:59:03 [28203] [6] ERROR: AT2[/dev/ttyS0]: CMS ERROR: +CMS
ERROR: 305
2010-04-22 21:59:03 [28203] [6] ERROR: AT2[/dev/ttyS0]: CMS ERROR: Invalid
text mode parameter (305)
2010-04-22 22:00:05 [28203] [6] ERROR: AT2[/dev/ttyS0]: CMS ERROR: +CMS
ERROR: 305
2010-04-22 22:00:05 [28203] [6] ERROR: AT2[/dev/ttyS0]: CMS ERROR: Invalid
text mode parameter (305)

I don't know what is wrong with my configuration. I was showed in the
previous email. I don't know why but restarting kannel helped send out the
stuck messages.

Thanks a lot
Thai

On Thu, Apr 22, 2010 at 9:44 PM, Thai Pham <thai...@gmail.com> wrote:

> 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 <thai...@gmail.com>
>> *To:* Nikos Balkanas <nbalka...@gmail.com>
>> *Cc:* Alvaro Cornejo <cornejo.alv...@gmail.com> ; 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
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to