Hi,

You are mixing up 2 things in your request:

1) Fake SMSc port is 13004
2) sendsms port is 13003

Fake smsc service requires the fakesmsc client connected at the fake port with specific format.
Sendsms interface requires the request you sent but at port 13003.

Do not send http reuqests to FAKE SMSc port!

BR,
Nikos
----- Original Message ----- From: Gerardo Corro
To: [email protected]
Sent: Friday, April 15, 2011 12:56 AM
Subject: fake smsc


Hi all,


I know this is a recurrent issue, but I still cannot find a solution: I installed Kannel in my ubuntu laptop with "apt-get install kannel", then I created this config:


group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access_kannel.log
store-file = /var/log/kannel/store_sms


group = smsc
smsc = fake
port = 13004
connect-allow-ip = "*.*.*.*"


group = smsbox
bearerbox-host = localhost
sendsms-port = 13003
global-sender = 13003
smsbox-id = "my smsbox"
log-file = /var/log/kannel/smsbox.log
log-level = 0


group = sendsms-user
username =
password =


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


after that I restart kannel like this:


sudo /etc/init.d/kannel restart


then I try:


wget http://localhost:13004/cgi-bin/sendsms?username=&password=&to=0123456&text=Hello+world


kannel replies:


2011-04-14 20:17:34 [6419] [6] WARNING: smsc_fake: invalid message syntax from client, ignored


What's wrong? Please help

Reply via email to