I am using a nokia premicel gsm modem with kannel. I have a problem with duplicate sms everytime it handles one MO SMS it produces 2 messages in kannel ( see log snip below). According to Davy Chan (http://www.mail-archive.com/users%40kannel.org/msg04259.html), this has to do with the way the GSM modem informs kannel of the incoming message. In my case, both scenarios described by Davy seem to be used by the GSM modem sequentially to tell Kannel about the incoming MO SMS ( see the two occurences of the long HEX string).
What can I do to avoid this situation? I have no access to a mobile operator's SMSC yet and have to rely on the gsm modem. Regards Katongo. ---------------------------------------------------------------------------snip--------------------------------------------------------------------- 2005-12-17 16:42:47 [8851] [7] INFO: AT2[moneta]: AT SMSC successfully opened. 2005-12-17 16:42:49 [8851] [6] DEBUG: Started thread 9 (gw/bb_boxc.c:function) 2005-12-17 16:42:49 [8851] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) maps to pid 8851. 2005-12-17 16:42:49 [8851] [9] INFO: Client connected from <127.0.0.1> 2005-12-17 16:42:49 [8851] [9] DEBUG: Started thread 10 (gw/bb_boxc.c:boxc_sender) 2005-12-17 16:42:49 [8851] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender) maps to pid 8851. 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: <-- +CMT: ,33 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: <-- 07916290060610F5040B916290765880F80000502171610544000FD06016A42D4E874F500E0683C11A 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: Numeric sender (international) <+XXXXXXXXX> 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: User data length read as (15) 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: Udh decoding done len=15 udhi=0 udhlen=0 udh='' 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: --> AT+CNMA^M 2005-12-17 16:43:12 [8851] [10] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2005-12-17 16:43:12 [8851] [10] DEBUG: boxc_sender: sent message to <127.0.0.1> 2005-12-17 16:43:12 [8851] [9] DEBUG: boxc_receiver: got ack 2005-12-17 16:43:12 [8851] [1] DEBUG: Dumping 0 messages and 0 acks to store 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: <-- OK 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: <-- +CMTI: "SM",12 2005-12-17 16:43:12 [8851] [7] DEBUG: AT2[moneta]: +CMTI incoming SMS indication: +CMTI: "SM",12 2005-12-17 16:43:14 [8851] [7] INFO: AT2[moneta]: CMTI received, but no message-storage is set in confiuration.setting now to <SM> 2005-12-17 16:43:14 [8851] [7] INFO: System error 2: No such file or directory 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: --> AT+CPMS="SM"^M 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: <-- +CPMS: 12,25,12,25,12,25 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: <-- OK 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: --> AT+CMGR=12^M 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: <-- +CMGR: 0,,33 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: <-- 07916290060610F5040B916290765880F80000502171610544000FD06016A42D4E874F500E0683C11A 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: Numeric sender (international) <+XXXXXXXXX> 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: User data length read as (15) 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: Udh decoding done len=15 udhi=0 udhlen=0 udh='' 2005-12-17 16:43:14 [8851] [10] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2005-12-17 16:43:14 [8851] [10] DEBUG: boxc_sender: sent message to <127.0.0.1> 2005-12-17 16:43:14 [8851] [9] DEBUG: boxc_receiver: got ack 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: <-- OK 2005-12-17 16:43:14 [8851] [7] DEBUG: AT2[moneta]: --> AT+CMGD=12^M 2005-12-17 16:43:15 [8851] [7] DEBUG: AT2[moneta]: <-- OK 2005-12-17 16:43:19 [8851] [9] DEBUG: boxc_receiver: heartbeat with load value 0 received --------------------------------------------------------/snip------------------------------------------------------------------------------
