Hi Oded and list. I tested the behavior of my T28 with kannel-1.2.0 . It seems to me as kannel can´t fetch SMS stored in SM i the phone when starting up, see log below (sorry for the line break).
Maybe you have to do the --> AT+CPMS="SM"^M First, fetch/delete all messages and than --> AT+CPMS="ME"^M tell the phone where you want the SMS´s. I hope this helps. Have nice day! /Tobias <bearbox> tobiash@anakin:~/kannel/gateway-1.2.0/gw > bearerbox smskannel.conf 2002-09-05 08:34:51 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0 2002-09-05 08:34:51 [0] DEBUG: Loading include file `/home/tobiash/kannel/gateway-1.2.0/doc/modems.conf' (on line 57 of file smskannel.conf). 2002-09-05 08:34:51 [0] WARNING: DLR: using default 'internal' for storage type. 2002-09-05 08:34:51 [0] DEBUG: Kannel bearerbox version `1.2.0'. System Linux, release 2.4.4-4GB, version #1 Fri May 18 14:11:12 GMT 2001, machine i686. Hostname anakin.interia.se, IP 212.73.4.227. Libxml version 20421. Using native malloc. 2002-09-05 08:34:51 [0] INFO: ---------------------------------------- 2002-09-05 08:34:51 [0] INFO: Kannel bearerbox II version 1.2.0 starting 2002-09-05 08:34:51 [0] INFO: SSL not supported, no SSL initialization done. 2002-09-05 08:34:51 [0] DEBUG: HTTP: Opening server at port 13000. 2002-09-05 08:34:51 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2002-09-05 08:34:51 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2002-09-05 08:34:51 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2002-09-05 08:34:51 [0] DEBUG: starting smsbox connection module 2002-09-05 08:34:51 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run) 2002-09-05 08:34:51 [0] DEBUG: Started thread 5 (gw/smsc_fake.c:fake_listener) 2002-09-05 08:34:51 [0] INFO: AT2[/dev/ttyS0]: configuration shows modemtype <ericsson_t28> 2002-09-05 08:34:51 [0] DEBUG: AT2[/dev/ttyS0]: Reading modem definitions from <smskannel.conf> 2002-09-05 08:34:51 [0] DEBUG: Loading include file `/home/tobiash/kannel/gateway-1.2.0/doc/modems.conf' (on line 57 of file smskannel.conf). 2002-09-05 08:34:51 [0] DEBUG: AT2[/dev/ttyS0]: Found <11> modems in config 2002-09-05 08:34:51 [0] INFO: AT2[/dev/ttyS0]: read modem definition for <ericsson_t28> 2002-09-05 08:34:51 [0] DEBUG: Started thread 6 (gw/smsc_at2.c:at2_device_thread) 2002-09-05 08:34:51 [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2002-09-05 08:34:51 [0] INFO: MAIN: Start-up done, entering mainloop 2002-09-05 08:34:51 [0] DEBUG: smsc_fake: start called 2002-09-05 08:34:51 [0] DEBUG: AT2[/dev/ttyS0]: start called 2002-09-05 08:34:51 [6] INFO: AT2[/dev/ttyS0]: opening device 2002-09-05 08:34:51 [6] DEBUG: AT2[/dev/ttyS0]: device opened 2002-09-05 08:34:51 [6] DEBUG: AT2[/dev/ttyS0]: device opened 2002-09-05 08:34:51 [6] INFO: AT2[/dev/ttyS0]: init device 2002-09-05 08:34:51 [6] INFO: AT2[/dev/ttyS0]: speed set to 9600 2002-09-05 08:34:51 [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M 2002-09-05 08:34:51 [7] DEBUG: sms_router: time to sleep 2002-09-05 08:34:51 [7] DEBUG: sms_router: list_len = 0 2002-09-05 08:34:52 [4] DEBUG: Started thread 8 (gw/bb_boxc.c:function) 2002-09-05 08:34:52 [8] INFO: Client connected from <127.0.0.1> 2002-09-05 08:34:52 [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- AT 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: --> AT&F^M 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- AT&F 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: --> ATE0^M 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- ATE0 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGF=0^M 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CSMS=?^M 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CSMS: (0) 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CNMI=3,3,2^M 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:34:55 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CPMS="ME"^M 2002-09-05 08:34:56 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CPMS: 0,15,1,20,0,15 2002-09-05 08:34:56 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:34:56 [6] INFO: AT2[/dev/ttyS0]: AT SMSC successfully opened. 2002-09-05 08:34:58 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CBC;+CSQ^M 2002-09-05 08:34:58 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CBC: 0,99 2002-09-05 08:34:58 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CSQ: 22,99 2002-09-05 08:34:58 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:34:58 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CPMS?^M 2002-09-05 08:34:58 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CPMS: "ME",0,15,"SM",1,20,"ME",0,15 2002-09-05 08:34:58 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:35:10 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CBC;+CSQ^M 2002-09-05 08:35:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CBC: 0,99 2002-09-05 08:35:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CSQ: 22,99 2002-09-05 08:35:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:35:10 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CPMS?^M 2002-09-05 08:35:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CPMS: "ME",0,15,"SM",1,20,"ME",0,15 2002-09-05 08:35:10 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:35:22 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CBC;+CSQ^M 2002-09-05 08:35:22 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CBC: 0,99 2002-09-05 08:35:22 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CSQ: 22,99 2002-09-05 08:35:22 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:35:22 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CPMS?^M 2002-09-05 08:35:22 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CPMS: "ME",0,15,"SM",1,20,"ME",0,15 2002-09-05 08:35:22 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:35:34 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CBC;+CSQ^M 2002-09-05 08:35:34 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CBC: 0,99 2002-09-05 08:35:34 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CSQ: 21,99 2002-09-05 08:35:34 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK 2002-09-05 08:35:34 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CPMS?^M 2002-09-05 08:35:34 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CPMS: "ME",0,15,"SM",1,20,"ME",0,15 2002-09-05 08:35:34 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK </bearbox> Oded Arbel wrote: > >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > >>To get it working I needed to remove all SMS stored in the >>phone before starting up >>kannel (Both SM and ME as I recall). Otherwise can´t kannel >>fetch the new SMS. >> >>Keywords: message-storage, sim-buffering > > >>>I'm testing Ericsson T39 as SMSC. >>>Does anyone know how I can prevent the phone from storing >> >>the incoming >> >>>SMS:es in phone memory? >>>Now the memory becomes full and no furhter messages are >> >>received until I >> >>>manually delete them. >> > > Actually - after enabling sim-buffering with the correct message-storage then Kannel >should be able to pull all the messages from the SIM and delete them automaticly. if >this is not the case - could you please submit a detailed bug report with some >bearerbox logs so we can fix that problem ? > > Thanks > > -- > Oded Arbel > m-Wise mobile solutions > [EMAIL PROTECTED] > > +972-9-9581711 (116) > +972-67-340014 > > ::.. > "When there's a doubt, there's no doubt. that's the first thing they teach you." > "Who taught you ?" > "I don't remember - that's the second thing they teach you." > -- from "Ronin"
# # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop" # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to [EMAIL PROTECTED] # # Kalle Marjola May 2000 # Changed for new fakesmsc version by Uoti Urpala Jan 2001 # Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 # group = core admin-port = 13000 smsbox-port = 13001 admin-password = spybar #status-password = foo admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1;212.73.4.249" #admin-deny-ip = "" #admin-allow-ip = "" #log-file = "/tmp/kannel.log" #log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" unified-prefix = "+467,00467,0;+,00" #unified-prefix = "00358,0" #access-log = "access.log" #store-file = "kannel.store" #ssl-certkey-file = "mycertandprivkeyfile.pem" # SMSC CONNECTIONS group = smsc smsc = fake smsc-id = FAKE port = 10000 connect-allow-ip = 127.0.0.1 # SMSC CONNECTIONS FOR ERICSSON T28 group = smsc smsc = at2 modemtype = ericsson_t28 device = /dev/ttyS0 speed = 9600 keepalive = 10 sim-buffering = true #pin = 1915 include = /home/tobiash/kannel/gateway-1.2.0/doc/modems.conf # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 46705774*** #sendsms-chars = "0123456789 +-" #log-file = "/tmp/smsbox.log" #log-level = 0 #access-log = "access.log" # SEND-SMS USERS group = sendsms-user username = tester password = **** user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" #user-deny-ip = "" #user-allow-ip = "" # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" # SERVICES group = sms-service keyword = nop text = "You asked nothing and I did it!" # this service is for Kannel relay testing, when this Kannel # works as relay gateway group = sms-service keyword = relay get-url = "http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r" max-messages = 0
# Modems configuration # # Example and default values # # group = modems # id = "my-id" # name = "my-name" # detect-string = "MODEM" # detect-string2 = "" [Default] # init-string = "AT+CNMI=1,2,0,0,0" [Default] # speed = 9600 [Default] # enable-hwhs = "AT+IFC=2,2" [Default] # need-sleep = false [Default] # no-pin = false [Default] # no-smsc = false [Default] # sendline-sleep = 100 [Default, miliseconds] # keepalive-cmd = "AT" [Default] # broken = false [Default] # message-storage = "SM" # enable-mms = false [Default] # If modemtype=auto, try everyone and defaults to this one group = modems id = generic name = "Generic Modem" group = modems id = wavecom name = Wavecom detect-string = "WAVECOM" group = modems id = premicell name = Premicell detect-string = "PREMICEL" no-pin = true no-smsc = true group = modems id = siemens_tc35 name = "Siemens TC35" detect-string = "SIEMENS" detect-string2 = "TC35" init-string = "AT+CNMI=1,2,0,0,1" speed = 19200 enable-hwhs = "AT\\Q3" need-sleep = true group = modems id = siemens_m20 name = "Siemens M20" detect-string = "SIEMENS" detect-string2 = "M20" speed = 19200 enable-hwhs = "AT\\Q3" need-sleep = true group = modems id = nokiaphone name = "Nokia Phone" detect-string = "Nokia Mobile Phone" need-sleep = true keepalive-cmd = "AT+CBC;+CSQ" enable-mms = true group = modems id = falcom name = "Falcom" detect-string = "Falcom" no-smsc = true group = modems id = ericsson_r520m name = "Ericsson R520m" detect-string = "R520m" init-string = "AT+CNMI=3,2,0,0" group = modems id = ericsson_t28 #name = "Ericsson T28" init-string = "AT+CNMI=3,3,2" keepalive-cmd = "AT+CBC;+CSQ" #enable-hwhs = "AT+CPMS="ME","SM","ME"" enable-hwhs = "" no-pin = true message-storage = "ME" group = modems id = ericsson_t68 name = "Ericsson T68" detect-string = "T68" init-string = "AT+CNMI=3,3" keepalive-cmd = "AT+CBC;+CSQ" broken = true group = modems id = alcatel name = "Alcatel" detect-string = "Alcatel" init-string = "AT+CNMI=3,2,0,0"