You have 2 options here.

 

1.       Set sim-buffering = true in your group = smsc.

2.       Add the proper AT+CNMI settings for your modem in the init-string
of your group = modems. See the Kannel userguide and the manual of your
modem.

 

== Rene

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Geoffrey Ndungu
Sent: Tuesday, 27 March, 2012 15:50
To: [email protected]
Subject: PROBLEM WITH RECIEVING SMS

 

HI 

i am using kannel 1.4.3, i configure it  to use a huawei e153. 
i can send an sms to but i cannot recieve any sms and i dont know why
when i send a message to the simcard in the modem nothing happens in the
smsbox
please help......
here is my smskanel.conf 



============================================================================
===================
#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# This basic version is used for system testing. It expects 'fakesmsc' to
# send messages which are replied with simple fixed text message.
# It is run like this:
#
#  1% gw/bearerbox gw/smskannel.conf
#  2% gw/smsbox gw/smskannel.conf
#  3% test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
#
# ..all 3 commands in separate shells (or screen sessions)
# Note that you can run them in different machines but have to
# add certain command line argument and configuration variables then
#
#
# For any modifications to this file, see Kannel User Guide 
# If that does not help, see Kannel web page (http://www.kannel.org) and
# various online help and mailing list archives
#
# Notes on those who base their configuration on this:
#  1) check security issues! (allowed IPs, passwords and ports)
#  2) groups cannot have empty rows inside them!
#  3) read the user guide
#
# Kalle Marjola for Kannel project 2001, 2004

#---------------------------------------------
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'


group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/etc/kannel/kannel.log"
#log-level = 0
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
access-log = "/etc/kannel/access.log"
#store-file = "kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs


# This is a fake smsc connection, _only_ used to test the system and
services.
# It really cannot relay messages to actual handsets!

group = smsc
smsc = at
smsc-id = ATI
port = 10000
modemtype = auto
device = /dev/ttyUSB_utps_modem
my-number = +254759127844
#sms-center = +25675010004
connect-allow-ip = 127.0.0.1

#---------------------------------------------
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for
delivery

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = +254759127844
#sendsms-chars = "0123456789 +-"
log-file = "/etc/kannel/smsbox.log"
log-level = 0
access-log = "/etc/kannel/smsbox_access.log"

#---------------------------------------------
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester
<http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar
.> &password=foobar...

group = modems
id = ATI
name = "Huawei"
detect-string = "huawei"
#detect-string2 = "e153"
init-string = "AT Q0 +CMGS=40;+CPMS= "SM",0,30,"SM",0,30,"SM",0,30"
#init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT Q0 V1 E1 S0=0 &C1 &D2
+FCLASS=0;+CMGF=0;+CNMI=3,2,0,0,0;CMEE=1"
init-string = "AT+CNMI=1,1,2,0,0"
init-string = "AT+CNMI=2,0,0,2,0;+CMEE=1"
reset-string = "ATZ"
message-storage = "SM"

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""

#---------------------------------------------
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service
is
# applied, using the first one to match.

group = sms-service
keyword = default
#get-url = http://localhost:13013/cgi-bin/sendsms?to=%p
<http://localhost:13013/cgi-bin/sendsms?to=%25p&amp;text=%25b> &amp;text=%b
get-url = http://localost/smssend1.php?to=%pamp;text=%b
<http://localost/smssend1.php?to=%25pamp;text=%25b> 
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
catch-all = true


# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

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





-- 

Regards

 
<https://docs.google.com/drawings/pub?id=12pK_RsVI6bmCq7k8SRlPExVWWp8FJr5ydW
TDHvVhYdo&w=100&h=100> 

Geoffrey W Ndungu

+256777875712 (Currently Active)

+254712635789

 

Reply via email to