Hello. I've been going around searching for configuration similar to the hardware I have and specific things I want from lots of places and managed to come up with a working configuration that can send and receive messages.
However, the problem is that I am receiving a single message twice. On smsbox, I see first the message that I receive then after that, I sort of get another copy of the same message (which is at a latter time, a few seconds later). On bearerbox, it shows up that an error occured with a "number not known to us." I am certain about the message being received twice because it shows up twice on the log, and does the exec command on the default sms-service (what it does is echo and apend to file, which gets done twice). Hope you can spot mistakes on my configuration, thanks. Here is my kannel.conf: ==================== #CORE CONFIGURATION group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = mis admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" log-file = "log/kannel.log" log-level = 0 access-log = "log/access.log" store-file = "log/kannel.store" unified-prefix= "0;XX;0,+XX" # SMSC GSM group = smsc smsc = at smsc-id = GSMModem modemtype = auto device = /dev/ttyUSB0 speed = 115200 sms-center = XXxxxxx #validityperiod = 167 #pin = 1234 #sim-buffering = true # MODEM CONF group = modems id = itegno detect-string = "WAVECOM" detect-string2 = "MODEM" speed = 115200 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = XXxxxxxxxxxx sendsms-chars = "0123456789 +-" access-log = "log/access.log" log-file = "log/smsbox.log" log-level = 0 # SEND-SMS USERS group = sendsms-user username = foo password = bar user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" concatenation = true # SMS SERVICE Default # there should be default always group = sms-service keyword = default text = "No action specified" exec = "/vault/kannel/bin/kannel-incoming %t %q %a" ================ And this is kannel.log: ================ 2005-07-17 03:18:54 [6089] [10] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2005-07-17 03:18:54 [6089] [10] DEBUG: boxc_sender: sent message to <127.0.0.1> 2005-07-17 03:18:54 [6088] [9] DEBUG: boxc_receiver: sms received 2005-07-17 03:18:54 [6088] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2005-07-17 03:18:54 [6088] [9] DEBUG: boxc_receiver: got ack 2005-07-17 03:18:54 [6077] [7] DEBUG: AT2[GSMModem]: <-- OK 2005-07-17 03:18:54 [6077] [7] DEBUG: AT2[GSMModem]: TP-Validity-Period: 24.0 hours 2005-07-17 03:18:54 [6077] [7] DEBUG: AT2[GSMModem]: --> AT+CMGS=45^M 2005-07-17 03:18:54 [6077] [7] DEBUG: AT2[GSMModem]: <-- > 2005-07-17 03:18:54 [6077] [7] DEBUG: AT2[GSMModem]: send command status: 1 2005-07-17 03:18:54 [6077] [7] DEBUG: AT2[GSMModem]: --> 0011000B819071000081F30000A723BC621B4ECF83E465383B0F32CBDF6DD0BC2CB7A7C765105CFEB6A7C965B90F 2005-07-17 03:18:55 [6077] [7] DEBUG: AT2[GSMModem]: --> ^Z 2005-07-17 03:18:59 [6077] [7] DEBUG: AT2[GSMModem]: <-- > 2005-07-17 03:18:59 [6077] [7] DEBUG: AT2[GSMModem]: <-- ERROR 2005-07-17 03:18:59 [6077] [7] ERROR: AT2[GSMModem]: Error occurs: ERROR (error number not known to us. ask google and add it.) 2005-07-17 03:18:59 [6077] [7] DEBUG: AT2[GSMModem]: send command status: -1 2005-07-17 03:18:59 [6077] [7] DEBUG: AT2[GSMModem]: --> AT+CMGS=45^M 2005-07-17 03:18:59 [6077] [7] DEBUG: AT2[GSMModem]: <-- > 2005-07-17 03:18:59 [6077] [7] DEBUG: AT2[GSMModem]: send command status: 1 2005-07-17 03:18:59 [6077] [7] DEBUG: AT2[GSMModem]: --> 0011000B819071000081F30000A723BC621B4ECF83E465383B0F32CBDF6DD0BC2CB7A7C765105CFEB6A7C965B90F 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: --> ^Z 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: <-- +CMT: ,103 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: <-- 0791361907001071040C913619070010380000507071307261805FD9775D0E0A8EC7EFBA9B0E1286D961F7B80C0ACF416FB302767BC56E2F190C5603C166BAD84C478B29D273452C2673D5608AECBB0E0AB3E76F103A6C2F2B600A79B91D4EBBD3EE33C8282D1641F4329E3E772900 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: Numeric sender (international) <+639170000183> 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: User data length read as (95) 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: Udh decoding done len=95 udhi=0 udhlen=0 udh='' 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: --> AT+CNMA^M 2005-07-17 03:19:00 [6089] [10] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2005-07-17 03:19:00 [6089] [10] DEBUG: boxc_sender: sent message to <127.0.0.1> 2005-07-17 03:19:00 [6088] [9] DEBUG: boxc_receiver: sms received 2005-07-17 03:19:00 [6088] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2005-07-17 03:19:00 [6071] [1] DEBUG: Dumping 2 messages and 0 acks to store 2005-07-17 03:19:00 [6088] [9] DEBUG: boxc_receiver: got ack 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: <-- > 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: <-- ERROR 2005-07-17 03:19:00 [6077] [7] ERROR: AT2[GSMModem]: Error occurs: ERROR (error number not known to us. ask google and add it.) 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: send command status: -1 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: --> AT+CMGS=45^M 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: <-- 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: <-- ERROR 2005-07-17 03:19:00 [6077] [7] ERROR: AT2[GSMModem]: Error occurs: ERROR (error number not known to us. ask google and add it.) 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: send command status: -1 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: TP-Validity-Period: 24.0 hours 2005-07-17 03:19:00 [6077] [7] DEBUG: AT2[GSMModem]: --> AT+CMGS=45^M 2005-07-17 03:19:01 [6077] [7] DEBUG: AT2[GSMModem]: <-- 2005-07-17 03:19:01 [6077] [7] DEBUG: AT2[GSMModem]: <-- ERROR 2005-07-17 03:19:01 [6077] [7] ERROR: AT2[GSMModem]: Error occurs: ERROR (error number not known to us. ask google and add it.) ...* * with a few more of the last few lines to follow, then it stops. ============
