Hi Alvaro, Here is the uri: http://localhost:13013/cgi-bin/sendsms?username=tester&password=abcdef&to=0903123123&text=test+message
This uri worked all the times. I always got the response 0: accept to delivery. Thanks Thai On Tue, Apr 20, 2010 at 8:26 PM, Alvaro Cornejo <cornejo.alv...@gmail.com>wrote: > how do you send the message to kannel? can you provide an uri example? > > > |-----------------------------------------------------------------------------------------------------------------| > 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 10:13 AM, Thai Pham <thai...@gmail.com> wrote: > > 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 > >> >> > >> > > >> > > > > > >