Hai…
It’s me again…
I’m doing an SMS Gateway development using kannel version 1.4.3 and Itegno W3800 U on my lovely Fedora 10.
But, the process is not as smooth as I expected..
Here is my kannel.conf
#CORE
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = pwd
status-password = pwd
log-file = “/var/log/kannel/kannel.log”
log-level = 0
access-log = “/var/log/kannel/access.log”
store-file = “/var/log/kannel/kannel.store”
# SMSC Fake
#group = smsc
#smsc = fake
#host = localhost
#port = 13013
#SMSC modem gsm
group = smsc
smsc = at
host = 192.168.1.5
port = 13013
smsc-id = auto
modemtype = auto
device = /dev/ttyUSB0
speed = 115200
sms-center = +62818445009
my-number = +6285959234238
group = modems
id = auto
name = auto
detect-string = auto
init-string = “AT+CNMI=2,1,0,0,0;+CMEE=1”
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = “0123456789+”
global-sender = +62818445009
log-level = 0
log-file = “/var/log/kannel/smsbox.log”
access-log = “/var/log/kannel/access.log”
# SEND-SMS USERS
group = sendsms-user
username = playsms
password = aaaaa
# SMS SERVICE ‘Default’
# there should be default always
group = sms-service
keyword = default
accept-x-kannel-headers = true
max-messages = 0
assume-plain-text = true
catch-all = true
#exec = /usr/local/bin/kannel_incoming %t %q %a
get-url = “http://localhost/~playsms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a”
After all the setting, I tried to run bearerbox /etc/kannel.conf
Then, it returns the following:
2009-04-15 18:24:39 [9679] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2009-04-15 18:24:39 [9679] [0] INFO: Loading store file `/var/log/kannel/kannel.store’
2009-04-15 18:24:39 [9679] [0] INFO: Store-file size 0, starting to unpack
2009-04-15 18:24:39 [9679] [0] INFO: Retrieved 0 messages, non-acknowledged messages: 0
2009-04-15 18:24:39 [9679] [8] DEBUG: Thread 8 (gw/bb_store_file.c:store_dumper) maps to pid 9679.
2009-04-15 18:24:39 [9679] [8] DEBUG: Dumping 0 messages to store
2009-04-15 18:24:39 [9679] [0] DEBUG: Started thread 8 (gw/bb_store_file.c:store_dumper)
2009-04-15 18:24:39 [9679] [0] INFO: MAIN: Start-up done, entering mainloop
2009-04-15 18:24:39 [9679] [0] DEBUG: AT2[itegno]: start called
2009-04-15 18:24:39 [9679] [6] DEBUG: AT2[itegno]: device opened. Telnet mode = 0
2009-04-15 18:24:40 [9679] [6] DEBUG: AT2[itegno]: device opened
2009-04-15 18:24:40 [9679] [6] INFO: AT2[itegno]: speed set to 115200
2009-04-15 18:24:40 [9679] [6] DEBUG: AT2[itegno]: –> ^M
2009-04-15 18:24:40 [9679] [6] DEBUG: AT2[itegno]: <– OK
2009-04-15 18:24:40 [9679] [6] DEBUG: AT2[itegno]: –> AT^M
2009-04-15 18:24:40 [9679] [6] DEBUG: AT2[itegno]: <– OK
2009-04-15 18:24:40 [9679] [6] DEBUG: AT2[itegno]: –> AT&F^M
2009-04-15 18:24:40 [9679] [6] DEBUG: AT2[itegno]: <– OK
2009-04-15 18:24:40 [9679] [6] DEBUG: AT2[itegno]: –> ATE0^M
2009-04-15 18:24:44 [9679] [6] ERROR: AT2[itegno]: Couldn’t connect (retrying in 10 seconds).
2009-04-15 18:24:54 [9679] [6] DEBUG: AT2[itegno]: detecting modem type
2009-04-15 18:24:54 [9679] [6] INFO: AT2[itegno]: opening device
2009-04-15 18:24:54 [9679] [6] WARNING: AT2[itegno]: trying to open device with not closed device!!! Please report!!!
2009-04-15 18:24:54 [9679] [6] INFO: AT2[itegno]: Closing device
**the italic part is always looping
then I start the smsbox /etc/kannel.conf
the result is as follows:
2009-04-16 09:26:03 [6086] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2009-04-16 09:26:03 [6086] [0] DEBUG: dumping group (sendsms-user):
2009-04-16 09:26:03 [6086] [0] DEBUG: <group> = <sendsms-user>
2009-04-16 09:26:03 [6086] [0] DEBUG: <username> = <playsms>
2009-04-16 09:26:03 [6086] [0] DEBUG: <password> = </ayang/>
2009-04-16 09:26:03 [6086] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2009-04-16 09:26:03 [6086] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 6086.
2009-04-16 09:26:03 [6086] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 6086.
2009-04-16 09:26:03 [6086] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2009-04-16 09:26:03 [6086] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 6086.
2009-04-16 09:26:03 [6086] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2009-04-16 09:26:03 [6086] [0] INFO: Connected to bearerbox at localhost port 13001.
2009-04-16 09:26:03 [6086] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 6086.
2009-04-16 09:26:03 [6086] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
2009-04-16 09:26:22 [6086] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1′.
2009-04-16 09:26:22 [6086] [2] DEBUG: HTTP: Created HTTPClient area 0x8340c80.
everything sounds OK , except for the bearerbox error and warning.
I tried to send an sms by hitting this URL:
http://localhost:13013/cgi-bin/sendsms?username=playsms&password=aaaaa&to=+62818095*****&text=test&from=test
and the page result 3: Queued for later delivery
does anyone have solution about this issue??
thank you