Pleese do not send me personal mail. Address the list.

Try also setting:

message-storage

to "SM" or "EM" in your modems configuration.

BR,
Nikos
  ----- Original Message ----- 
  From: Arun SAG 
  To: Nikos Balkanas 
  Sent: Monday, July 06, 2009 4:11 PM
  Subject: Re: Nokia 3110c can send sms but cannot receive it



  Hi,

  >2009/7/6 Nikos Balkanas <[email protected]>

    Hi,
    Β 
    Hav tried setting
    Β 
    sim-buffering
    Β 
    to true in your smsc group?
    Β 
    Please either attach or inline logs + configuration. Unknown, external URLs 
are unsafe.
    Β 
    BR,
    Nikos

  Yeah, i tried SIM buffering.

  But got some "couldn't parse all memory location error:"

  -bash-3.2# bearerbox -v 0 /etc/kannel.conf
  2009-07-06 18:38:59 [12400] [0] INFO: Debug_lvl = 0, log_file = <none>, 
log_lvl = 0
  2009-07-06 18:38:59 [12400] [0] WARNING: DLR: using default 'internal' for 
storage type.
  2009-07-06 18:38:59 [12400] [0] INFO: DLR using storage type: internal
  2009-07-06 18:38:59 [12400] [0] DEBUG: Kannel bearerbox version `1.4.1'.
  Build `Feb 21 2008 11:10:28', compiler `4.3.0 20080218 (Red Hat 4.3.0-0.10)'.
  System Linux, release 2.6.27.25-170.2.72.fc10.i686, version #1 SMP Sun Jun 21 
19:03:24 EDT 2009, machine i686.
  Hostname localhost, IP 127.0.0.1.
  Libxml version 2.6.31.
  Using OpenSSL 0.9.8g 19 Oct 2007.
  Using native malloc.

  2009-07-06 18:38:59 [12400] [0] INFO: Added logfile 
`/var/log/kannel/bearerbox.log' with level `1'.
  2009-07-06 18:38:59 [12400] [0] INFO: HTTP: Opening server at port 13000.
  2009-07-06 18:38:59 [12400] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps 
to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
  2009-07-06 18:38:59 [12400] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
  2009-07-06 18:38:59 [12400] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) 
maps to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 3 
(gw/bb_http.c:httpadmin_run)
  2009-07-06 18:38:59 [12400] [0] DEBUG: starting smsbox connection module
  2009-07-06 18:38:59 [12400] [0] INFO: BOXC: 'smsbox-max-pending' not set, 
using default (100).
  2009-07-06 18:38:59 [12400] [4] DEBUG: Thread 4 
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 4 
(gw/bb_boxc.c:sms_to_smsboxes)
  2009-07-06 18:38:59 [12400] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) 
maps to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 5 
(gw/bb_boxc.c:smsboxc_run)
  2009-07-06 18:38:59 [12400] [0] INFO: Set SMS resend frequency to 60 seconds.
  2009-07-06 18:38:59 [12400] [0] INFO: SMS resend retry set to unlimited.
  2009-07-06 18:38:59 [12400] [0] INFO: DLR rerouting for smsc id <(null)> 
disabled.
  2009-07-06 18:38:59 [12400] [0] INFO: AT2[/dev/ttyACM0]: configuration 
doesn't show modemtype. will autodetect
  2009-07-06 18:38:59 [12400] [6] DEBUG: Thread 6 
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 12400.
  2009-07-06 18:38:59 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: detecting modem 
speed. 
  2009-07-06 18:38:59 [12400] [6] INFO: AT2[/dev/ttyACM0]: opening device
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 6 
(gw/smsc/smsc_at.c:at2_device_thread)
  2009-07-06 18:38:59 [12400] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) 
maps to pid 12400.
  2009-07-06 18:38:59 [12400] [7] DEBUG: sms_router: time to sleep 30.00 secs.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 7 
(gw/bb_smscconn.c:sms_router)
  2009-07-06 18:38:59 [12400] [0] DEBUG: starting UDP sender/receiver module
  2009-07-06 18:38:59 [12400] [0] INFO: Adding interface *
  2009-07-06 18:38:59 [12400] [0] DEBUG: udpc_create: Bound to UDP 
<0.0.0.0:9200>
  2009-07-06 18:38:59 [12400] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) 
maps to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 8 
(gw/bb_udp.c:udp_receiver)
  2009-07-06 18:38:59 [12400] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) maps 
to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 9 
(gw/bb_udp.c:udp_sender)
  2009-07-06 18:38:59 [12400] [0] DEBUG: udpc_create: Bound to UDP 
<0.0.0.0:9201>
  2009-07-06 18:38:59 [12400] [10] DEBUG: Thread 10 (gw/bb_udp.c:udp_receiver) 
maps to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 10 
(gw/bb_udp.c:udp_receiver)
  2009-07-06 18:38:59 [12400] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender) 
maps to pid 12400.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 11 
(gw/bb_udp.c:udp_sender)
  2009-07-06 18:38:59 [12400] [0] DEBUG: starting wapbox connection module
  2009-07-06 18:38:59 [12400] [0] ERROR: Missing wapbox-port variable, cannot 
start WAP
  2009-07-06 18:38:59 [12400] [0] DEBUG: starting WDP router
  2009-07-06 18:38:59 [12400] [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router) 
maps to pid 12400.
  2009-07-06 18:38:59 [12400] [12] DEBUG: udp_die: removing producers from 
udp-lists
  2009-07-06 18:38:59 [12400] [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router) 
terminates.
  2009-07-06 18:38:59 [12400] [0] DEBUG: Started thread 12 
(gw/bearerbox.c:wdp_router)
  2009-07-06 18:38:59 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
  2009-07-06 18:38:59 [12400] [0] INFO: ----------------------------------------
  2009-07-06 18:38:59 [12400] [0] INFO: Kannel bearerbox II version 1.4.1 
starting
  2009-07-06 18:38:59 [12400] [0] INFO: MAIN: Start-up done, entering mainloop
  2009-07-06 18:38:59 [12400] [0] DEBUG: AT2[/dev/ttyACM0]: start called
  2009-07-06 18:38:59 [12400] [7] DEBUG: sms_router: gwlist_len = 0
  2009-07-06 18:39:00 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
  2009-07-06 18:39:00 [12400] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
  2009-07-06 18:39:00 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M
  2009-07-06 18:39:02 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
  2009-07-06 18:39:02 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT
  2009-07-06 18:39:02 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:02 [12400] [6] INFO: AT2[/dev/ttyACM0]: closing device
  2009-07-06 18:39:02 [12400] [6] INFO: AT2[/dev/ttyACM0]: detect speed is 
115200
  2009-07-06 18:39:02 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: detecting modem type
  2009-07-06 18:39:02 [12400] [6] INFO: AT2[/dev/ttyACM0]: opening device
  2009-07-06 18:39:02 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
  2009-07-06 18:39:03 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
  2009-07-06 18:39:03 [12400] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
  2009-07-06 18:39:03 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATI^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- Nokia
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: found string 
<Nokia>, using modem definition <Nokia 3110c>
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0)
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:05 [12400] [6] INFO: AT2[/dev/ttyACM0]: closing device
  2009-07-06 18:39:05 [12400] [6] INFO: AT2[/dev/ttyACM0]: opening device
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
  2009-07-06 18:39:05 [12400] [6] INFO: AT2[/dev/ttyACM0]: init device
  2009-07-06 18:39:05 [12400] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATZ^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:05 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+IFC=2,2^M
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPIN?^M
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CPIN: READY
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CMGF=0^M
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0)
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT Q0 V1 E1 
S0=0 &C1 &D2 +FCLASS=0^M
  2009-07-06 18:39:06 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:06 [12400] [6] INFO: AT2[/dev/ttyACM0]: AT SMSC successfully 
opened.
  2009-07-06 18:39:08 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPMS?^M
  2009-07-06 18:39:08 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT+CPMS?
  2009-07-06 18:39:08 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CPMS: ,,,,,,,,
  2009-07-06 18:39:08 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
  2009-07-06 18:39:08 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: couldn't parse all 
memory locations : 0:''.
  2009-07-06 18:39:08 [12400] [6] DEBUG: AT2[/dev/ttyACM0]: memory check error
  2009-07-06 18:39:08 [12400] [6] INFO: AT2[/dev/ttyACM0]: closing device
  2009-07-06 18:39:08 [12400] [6] ERROR: AT2[/dev/ttyACM0]: Couldn't connect 
(retrying in 10 seconds).


  My kannel.conf:

  -bash-3.2# cat /etc/kannel.conf 
  # Default kannel configuration file
  #core group 'mandatory'
  group = core
  #port for http administration
  admin-port = 13000
  admin-password = hard2guess
  #status-password = hard2guess
  admin-deny-ip = "*.*.*.*"
  admin-allow-ip = "127.0.0.1"
  #For SMS gateway
  smsbox-port = 13001
  #wapbox-port = 13002
  box-deny-ip = "*.*.*.*"
  box-allow-ip = "127.0.0.1"
  wdp-interface-name = "*"
  log-file = "/var/log/kannel/bearerbox.log"
  log-level = 1
  #Access log
  #access-log = "/var/log/kannel/access.log"

  group = smsc
  smsc = at
  modemtype = auto
  device = /dev/ttyACM0
  my-number = "+919994989890"
  #speed = 460800
  #pin = 1234
  sim-buffering = true
  log-level = 0

  # MODEM DEFINITIONS
  group = modems
  id = nokia
  name = "Nokia 3110c"
  detect-string = "Nokia"
  init-string = "ATZ"
  init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

  group = smsbox
  bearerbox-host = 127.0.0.1
  #we use sendsms-port for sending sms (http)
  sendsms-port = 13013
  global-sender = "+919994989890"
  log-file = /var/log/kannel/smsbox.log
  log-level = 0

  group = sendsms-user
  username = kannel
  password = hard2guess
  concatenation = true
  max-messages = 10

  #group = smsΒ­service
  #keyword = nop
  #catchΒ­all = yes
  #text = "NOP performed"

  group = sms-service
  keyword = 
  keyword-regex = .*
  catch-all = true
  text = "Hello world!"
  #get-url = "http://localhost/sms/index.php?phone=%p&text=%a";

  #group = sms-service
  #keyword = default
  #text = "No action specified"



  Regards
  Arun SAG

  -- 
  A computer is like air conditioning: it becomes useless when you open windows.
  <-Fighting 4 Freedom->

Reply via email to