Dear users of kannel,
I've been having problem for configuring kannel since two weeks. I need realy 
need wour help

the problem is that i have configue kannel with mysql, but when i try to send 
message by using this url: 


http://xxxxxxx:13013/cgi-bin/sendsms?username=xxxx&password=xxxx&to=95325672&text=Bonjour+abdel+message+de+kannel&smsc=N2700&dlr-mask=31&dlr-url=http%3A//192.168.1.115

/dlr.php%3Fstatus%3D%25A%26answer%3D%25d ,

 i could not get the message on the destination phone number; but i get 
message: 
Sent on my browser interface.

here are my detail:

this is my kannel.conf

# CORE
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = xxxxx
log-file ="/var/log/kannel/bearerbox.log"
log-level = 1
box-deny-ip = "*.*.*.*"
box-allow-ip = "xxxxxx"
status-password= statuspass
admin-allow-ip="xxxxxx"
access-log="/var/log/kannel/access.log"
store-type=mysql
store-file="/var/log/kannel/smsbox.log"
sms-resend-retry=true
dlr-storage = mysql

#Identifies the SMS Center group
group = smsc
#Tells kannel that we are going to use mobile as smsc
smsc=at
smsc-id=N2700
connect-allow-ip = xxxxxx
preferred-smsc-id=N2700
#reroute-dlr=true
#allowed-prefix="+229"
#Sets the modem type to auto
modemtype=auto
#msg-id-type=0x03
#Identifies the modem
device=/dev/ttyACM0
connect-allow-ip=192.168.1.115
#It should be your mobile number
my-number=+22995355306
allowed-smsc-id=2700
log-file="/var/log/kannel/bearerbox.log"
our-host=xxxxxxxxx
host=xxxxxxxxxxxxx
port=13001
keepalive=5
receive-port=13013
modem-type=auto
phone="Nokia 2700"
max-pending-submits=5
log-level=0

#It should be changed to work for your mobile
group = modems
id = nokia
name = "Nokia 2700"
detect-string = "Nokia"
init-string = "ATZ"
init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

# SMSBOX SETUP
group = smsbox
bearerbox-host=xxxxxxx
sendsms-port=13013
global-sender="xxxxxxx"
log-file="/var/log/kannel/smsbox.log"
smsbox-id=push
bearerbox-port=13001
access-log="/var/log/kannel/access.log"
immediate-sendsms-reply=true
max-pending-requests=5
sendsms-chars="0123456789 -+"
log-level=0

# SEND­SMS USERS
group = sendsms-user
username =xxxxxxxxx
password = xxxxxx
concatenation = true
dlr-url=http%3A//192.168.1.115/dlr.php%3Fstatus%3D%25A%26answer%3D%25d
#dlr-mask = 1 + 2 + 4 + 8 + 16
#can  send a longer text message about 3 smses ( 3*160)
user-allow-ip=xxxxxxxxx
forced-smsc=at
max-messages = 10

# SERVICES
group = sms-service
# keyword = nop
keyword-regex = .*
catch-all= yes
max-messages= 5
#get-­url = "http://%S";
forced-smsc=N2700
concatenation=true
accepted-smsc=N2700
#allowed-receiver-prefix=+229
get-url= 
http://192.168.1.115/websms/inc/dlr.php?user=hesystem&password=abdel&to=%p&message=%a

#get-url= 
http://192.168.1.115:13013/cgi-bin/sendsms?username=hesystem&password=abdel&to=%p&text=%a

#get­url = "http://192.168.11.119/sms?phone=%p&text=%a";

#­­­ mysql connection
group = mysql-connection
id = mydlrdb
host = xxxxxxxxxxxx
username = xxxxxxx
password =xxxxxxxxxxx
database = dlr
port=3306
max-connections = 1

#­­­­ DLR table structure
group = dlr-db
id = mydlrdb
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

group=smsbox-route
smsbox-id=push
smsc-id=N2700

this is the error i got:

2011-03-23 15:11:28 [5295] [3] INFO: sendsms used by <hesystem>
2011-03-23 15:11:28 [5295] [3] INFO: sendsms sender:<hesystem:+xxxxxx> 
(192.168.xxxxx) to:<95325672> msg:<Bonjour abdel message de kannel>
2011-03-23 15:11:28 [5295] [3] INFO: send-sms request smsc id ignored, as smsc 
id forced to at
2011-03-23 15:11:28 [5276] [9] WARNING: Cannot find SMSCConn for message to 
<95325672>, rejected.
2011-03-23 15:11:28 [5276] [9] WARNING: Message rejected by bearerbox, no 
router!
2011-03-23 15:11:28 [5276] [9] WARNING: bb_store: get ACK of message not found 
from store, strange?
2011-03-23 15:11:28 [5295] [4] INFO: Starting delivery report <hesystem> from 
<+22995355306>

this is what i got from my bearebox.log

2011-03-23 16:11:30 [5276] [6] DEBUG: AT2[N2700]: --> AT^M
2011-03-23 16:11:30 [5276] [6] DEBUG: AT2[N2700]: <-- AT
2011-03-23 16:11:30 [5276] [6] DEBUG: AT2[N2700]: <-- OK
2011-03-23 16:11:36 [5276] [6] DEBUG: AT2[N2700]: --> AT^M
2011-03-23 16:11:36 [5276] [6] DEBUG: AT2[N2700]: <-- AT
2011-03-23 16:11:36 [5276] [6] DEBUG: AT2[N2700]: <-- OK

this is what i got from access.log :

2011-03-23 15:11:28 DISCARDED SMS [SMSC:at] [SVC:hesystem] [ACT:] [BINF:] 
[FID:] 
[from:+22995355306] [to:95325672] [flags:-1:0:-1:-1:31] [msg:31:Bonjour abdel 
message de kannel] [udh:0:]
2011-03-23 15:11:28 Receive DLR [SMSC:at] [SVC:hesystem] [ACT:] [BINF:] [FID:] 
[from:+22995355306] [to:95325672] [flags:-1:-1:-1:-1:16] [msg:12:NACK/no SMSC] 
[udh:0:]

NB: I am using nokia 2700 as my smsc.

thanks



      

Reply via email to