Hi Looks like kannel is able to see the pending message, retrieve it, but fails on decoding if and then fails the process and does not delete it from modem memory.
Can you do the following: shut the related smsc-at connection on kannel connect to it with a terminal program like minicom enter commands at+cmgl to list messages in memory at+cmgr=n to retrieve message on memory location n as shown with previous command. Check that there is no problems with the message. at+cmgd=n to delete the mentioned message from memory atz to reset modem to factory defaults. power off then on the modem. send a sms to the modem, then use the same procedure above to check that the msg arrived correctly if so, disconnect minicom and restart smsc-at on kannel. see if kannel can retrieve the message. Hope this helps. It might be that the message in location 1 got corrupted somehow. Does this happens with all messages? and in different memory locations? 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.com On Thu, Sep 4, 2014 at 3:36 PM, Vinicio Cruz <vinicio.c...@gmail.com> wrote: > Thanks for your response Alvaro, this is a extract from the bearerbox: > > > > "fb43beb4-df37-4d58-958f-a8ecce10b176","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > "0658bf9c-53f7-40cb-a8f6-b33d958c2c88","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > "801daaf0-bd01-42a8-af38-6c299c302b15","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > "fc85117a-9cbb-42d0-a3a3-8666fc5808df","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > "011b26f4-efae-4b40-a4a4-7c12d8683a5a","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > "aaccd45f-3c67-41d8-a5dd-51973cc4f92a","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > "fd39d8c7-6020-4f95-9c25-eedb91c2249d","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > "8151edc9-94c2-4f86-893c-dac55db53c75","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > "e286537f-616e-4728-a756-7f16a323568f","2014-09-03 07:03:25","Receive > SMS","modem-5-telca","","","+50250500880","51051500","0",Se supone que me > lo debitan de mi cuenta > > > > This is a extract from the modem log, the error 321 goes from index 2 thru > 35 wich is the slots available: > > > > 2014-09-04 09:09:18 [19991] [10] DEBUG: AT2[modem-5-telca]: --> > AT+CMGS=120^M > > 2014-09-04 09:09:19 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- > > > 2014-09-04 09:09:19 [19991] [10] DEBUG: AT2[modem-5-telca]: send command > status: 1 > > 2014-09-04 09:09:19 [19991] [10] DEBUG: AT2[modem-5-telca]: --> > 0011000881457529010000007BC72C75F8744EABCDA76E282F93D3F4374818768FDFA0A3890A020DDF6E7ADA5D76D3C36CD0F8ED06BDE1E334C20D0A83E46577F9FC1EA7C3721768F876CFEB6C7A780E62B3C3EDB01C1 > > 4668362B7180E54C6D35D201B4D7693B140369A2C7663816CB4582DC702D96830DC0D > > 2014-09-04 09:09:19 [19991] [10] DEBUG: AT2[modem-5-telca]: --> ^Z > > 2014-09-04 09:09:20 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- > > > 2014-09-04 09:09:20 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- OK > > 2014-09-04 09:09:23 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- +CMGS: 79 > > 2014-09-04 09:09:23 [19991] [10] DEBUG: AT2[modem-5-telca]: send command > status: 0 > > 2014-09-04 09:09:23 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- OK > > 2014-09-04 09:09:23 [19991] [10] DEBUG: AT2[modem-5-telca]: --> AT+CPMS?^M > > 2014-09-04 09:09:23 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- +CPMS: > "SM",1,35,"SM",1,35 > > 2014-09-04 09:09:23 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- OK > > 2014-09-04 09:09:23 [19991] [10] DEBUG: AT2[modem-5-telca]: 1 messages > waiting in memory > > 2014-09-04 09:09:23 [19991] [10] DEBUG: AT2[modem-5-telca]: --> AT+CMGR=1^M > > 2014-09-04 09:09:24 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- +CMGR: > 1,,54 > > 2014-09-04 09:09:24 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- > 06910562909984040B910552500088F000004190409030524A28D332685E87BFDD6550BC5E06B5CB20F61B442E8BD3F4B01B442E83DA69D0B85E76D3C3 > > 2014-09-04 09:09:24 [19991] [10] DEBUG: AT2[modem-5-telca]: received > message from SMSC: +5026099948 > > 2014-09-04 09:09:24 [19991] [10] DEBUG: AT2[modem-5-telca]: Numeric sender > (international) <+50250500880> > > 2014-09-04 09:09:24 [19991] [10] DEBUG: AT2[modem-5-telca]: User data > length read as (40) > > 2014-09-04 09:09:24 [19991] [10] DEBUG: AT2[modem-5-telca]: Udh decoding > done len=40 udhi=0 udhlen=0 udh='' > > 2014-09-04 09:09:24 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- OK > > 2014-09-04 09:09:24 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- OK > > 2014-09-04 09:09:30 [19991] [10] DEBUG: AT2[modem-5-telca]: failed to get > message 1. > > 2014-09-04 09:09:30 [19991] [10] DEBUG: AT2[modem-5-telca]: --> AT+CMGR=2^M > > 2014-09-04 09:09:31 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- +CMS > ERROR: 321 > > 2014-09-04 09:09:31 [19991] [10] ERROR: AT2[modem-5-telca]: +CMS ERROR: > +CMS ERROR: 321 > > 2014-09-04 09:09:31 [19991] [10] ERROR: AT2[modem-5-telca]: +CMS ERROR: > The memory/message storage index assigned to the AT command is invalid (321) > > 2014-09-04 09:09:31 [19991] [10] DEBUG: AT2[modem-5-telca]: failed to get > message 2. > > 2014-09-04 09:09:31 [19991] [10] DEBUG: AT2[modem-5-telca]: --> AT+CMGR=3^M > > 2014-09-04 09:09:31 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- +CMS > ERROR: 321 > > 2014-09-04 09:09:31 [19991] [10] ERROR: AT2[modem-5-telca]: +CMS ERROR: > +CMS ERROR: 321 > > 2014-09-04 09:09:31 [19991] [10] ERROR: AT2[modem-5-telca]: +CMS ERROR: > The memory/message storage index assigned to the AT command is invalid (321) > > 2014-09-04 09:09:31 [19991] [10] DEBUG: AT2[modem-5-telca]: failed to get > message 3. > > 2014-09-04 09:09:31 [19991] [10] DEBUG: AT2[modem-5-telca]: --> AT+CMGR=4^M > > 2014-09-04 09:09:32 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- +CMS > ERROR: 321 > > 2014-09-04 09:09:32 [19991] [10] ERROR: AT2[modem-5-telca]: +CMS ERROR: > +CMS ERROR: 321 > > 2014-09-04 09:09:32 [19991] [10] ERROR: AT2[modem-5-telca]: +CMS ERROR: > The memory/message storage index assigned to the AT command is invalid (321) > > 2014-09-04 09:09:32 [19991] [10] DEBUG: AT2[modem-5-telca]: failed to get > message 4. > > 2014-09-04 09:09:32 [19991] [10] DEBUG: AT2[modem-5-telca]: --> AT+CMGR=5^M > > 2014-09-04 09:09:32 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- +CMS > ERROR: 321 > > 2014-09-04 09:09:32 [19991] [10] ERROR: AT2[modem-5-telca]: +CMS ERROR: > +CMS ERROR: 321 > > 2014-09-04 09:09:32 [19991] [10] ERROR: AT2[modem-5-telca]: +CMS ERROR: > The memory/message storage index assigned to the AT command is invalid (321) > > 2014-09-04 09:09:32 [19991] [10] DEBUG: AT2[modem-5-telca]: failed to get > message 5. > > 2014-09-04 09:09:32 [19991] [10] DEBUG: AT2[modem-5-telca]: --> AT+CMGR=6^M > > 2014-09-04 09:09:33 [19991] [10] DEBUG: AT2[modem-5-telca]: <-- +CMS > ERROR: 321 > > > > Tell me if you need something else, thanks in advance for your help. > > > > *From:* Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] > *Sent:* Thursday, September 04, 2014 7:39 AM > *To:* Vinicio Cruz > *Cc:* users > *Subject:* Re: Receiveing same sms two or 3 times > > > > Can you post some logs? > > > > Some times this happens when there is a coverage issue and the mobile is > not able to send the ack to the smsc or when the sim in full and the smsc > tries to resend the message. > > > > 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.com > > > > On Wed, Sep 3, 2014 at 5:55 PM, Vinicio Cruz <vinicio.c...@gmail.com> > wrote: > > Hi everyone, I wonder if someone have had this problem/behavior. Kannel > receiving sms two or even tree to four times the same message using modems, > my configuration use message-storage = "SM" and sim-buffering = true, I've > read the manual about this two but haven't understand them very well. > > > > I'm using svn-r5104 on linux, modems Wavecom based. > > > > Hope some one can help me. > > > > *Vinicio.* > > > > >