I'm planning to send a http get to kannel and let kannel send it to a gsm 
modem(itegno 3800)....

this is my config is

#---------------------------------------------
# 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 = "/gateway-1.4.1/gw/logs/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1; 172.50.20.17"
#unified-prefix = "+358,00358,0;+,00"
access-log = "/opt/julius/SMS/gateway-1.4.1/gw/logs/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 = fake
smsc-id = FAKE
port = 10000
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 = 13013
#sendsms-chars = "0123456789 +-"
log-file = "/gw/logs/smsbox.log"
#log-level = 0
access-log = "/opt/julius/SMS/gateway-1.4.1/gw/logs/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&password=foobar...

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 = nop
text = "You asked nothing and I did it!"

# 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"

group = sms-service
keyword = complex
catch-all = yes
#get-url = "http://127.0.0.1/sendsms?to=%p&msg=%r";
accept-x-kannel-headers = true
max-messages = 3
concatenation = true



#---------------------------------------------
# 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 = "/gateway-1.4.1/gw/logs/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
unified-prefix = "+358,00358,0;+,00"
access-log = "/opt/julius/sms/gateway-1.4.1/gw/logs/access.log"
store-file = "/opt/julius/sms/gateway-1.4.1/gw/logs/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 = fake
smsc-id = FAKE
port = 10000
connect-allow-ip = 127.0.0.1

# SMSC HTTP
# This special "SMSC" is used for HTTP based connections with other gateways 
and various other relay
# services, when direct SMSC is not available.

#group = smsc
#smsc = http
#smsc-id = http
#host = localhost
#port = 14000
#system-type = kannel
#smsc-username = tester
#smsc-password = foobar
#send-url = "http://localhost:13013/";
#connect-allow-ip = "127.0.0.1"
#log-file = "/gateway-1.4.1/gw/logs/http.log"
#denied-smsc-id id-list = http;modem

# GSM modem
# This driver allows a GSM Modem or Phone to be connected to Kannel and work as 
a virtual SMSC

group = smsc
smsc = at
host = 127.0.0.1
port = 13013
smsc-id = modem
modemtype = auto
device = /dev/ttyUSB0
speed = 115200
#pin = 1234
smsc-username = tester
smsc-password = foobar
log-file = "/gateway-1.4.1/gw/logs/modem.log"

group = modems
id = itegno3800
name = "iTEGNO 3800"
detect-string = "ITEGNO"
detect-string2 = "3800"
speed = 115200
no-pin = true
#pin = 1234

#---------------------------------------------
# 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 = 13013
sendsms-chars = "0123456789 +-"
log-file = "/gateway-1.4.1/gw/logs/smsbox.log"
log-level = 0
access-log = "/gateway-1.4.1/gw/logs/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&password=foobar...

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 = nop
text = "You asked nothing and I did it!"

# 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"

# Service for catching url messages

group = sms-service
keyword = 
catch-all = yes
name = http
get-url = "http://127.0.0.1/tmpy.html?to=%p&msg=%r";;;
accept-x-kannel-headers = true
max-messages = 0
concatenation = true

and my errors...

2008-08-12 07:33:09 [32549] [0] INFO: Debug_lvl = -1, log_file = <none>, 
log_lvl = 0
2008-08-12 07:33:09 [32549] [0] WARNING: DLR: using default 'internal' for 
storage type.
2008-08-12 07:33:09 [32549] [0] INFO: DLR using storage type: internal
2008-08-12 07:33:09 [32549] [0] DEBUG: Kannel bearerbox version `1.4.1'.
Build `Aug  5 2008 00:44:30', compiler `3.4.6 20060404 (Red Hat 3.4.6-3)'.
System Linux, release 2.6.9-42.ELsmp, version #1 SMP Wed Jul 12 23:27:17 EDT 
2006, machine i686.
Hostname TESTING03, IP 127.0.0.1.
Libxml version 2.6.30.
Using OpenSSL 0.9.7a Feb 19 2003.
Using native malloc.

2008-08-12 07:33:09 [32549] [0] INFO: Added logfile 
`/opt/julius/sms/gateway-1.4.1/gw/logs/kannel.log' with level `0'.
2008-08-12 07:33:09 [32549] [0] INFO: Started access logfile 
`/opt/julius/sms/gateway-1.4.1/gw/logs/access.log'.
2008-08-12 07:33:09 [32549] [0] INFO: HTTP: Opening server at port 13000.
2008-08-12 07:33:09 [32549] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2008-08-12 07:33:09 [32549] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
2008-08-12 07:33:09 [32549] [0] DEBUG: Started thread 3 
(gw/bb_http.c:httpadmin_run)
2008-08-12 07:33:09 [32549] [0] DEBUG: starting smsbox connection module
2008-08-12 07:33:09 [32549] [0] INFO: BOXC: 'smsbox-max-pending' not set, using 
default (100).
2008-08-12 07:33:09 [32549] [0] DEBUG: Started thread 4 
(gw/bb_boxc.c:sms_to_smsboxes)
2008-08-12 07:33:09 [32549] [0] DEBUG: Started thread 5 
(gw/bb_boxc.c:smsboxc_run)
2008-08-12 07:33:09 [32549] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to 
pid 32549.
2008-08-12 07:33:09 [32549] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 
maps to pid 32549.
2008-08-12 07:33:09 [32549] [0] INFO: Set SMS resend frequency to 60 seconds.
2008-08-12 07:33:09 [32549] [0] INFO: SMS resend retry set to unlimited.
2008-08-12 07:33:09 [32549] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps 
to pid 32549.
2008-08-12 07:33:09 [32549] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) 
maps to pid 32549.
2008-08-12 07:33:09 [32549] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 32549.
2008-08-12 07:33:09 [32549] [0] INFO: DLR rerouting for smsc id <FAKE> disabled.
2008-08-12 07:33:09 [32549] [0] DEBUG: Started thread 6 
(gw/smsc/smsc_fake.c:fake_listener)
2008-08-12 07:33:09 [32549] [0] INFO: DLR rerouting for smsc id <FAKE> disabled.
2008-08-12 07:33:09 [32549] [0] ERROR: bind failed
2008-08-12 07:33:09 [32549] [0] ERROR: System error 98: Address already in use
2008-08-12 07:33:09 [32549] [0] ERROR: smsc_fake: could not create listening 
socket in port 10000
2008-08-12 07:33:09 [32549] [0] ERROR: Failed to create fake smsc connection
2008-08-12 07:33:09 [32549] [0] PANIC: Cannot start with SMSC connection failing
2008-08-12 07:33:09 [32549] [0] PANIC: gw/bearerbox(gw_panic+0xa3) [0x80b3537]
2008-08-12 07:33:09 [32549] [0] PANIC: gw/bearerbox(smsc2_start+0x337) 
[0x80577d3]
2008-08-12 07:33:09 [32549] [0] PANIC: gw/bearerbox(main+0x905) [0x8052529]
2008-08-12 07:33:09 [32549] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xe0) 
[0x5d6ec0]
2008-08-12 07:33:09 [32549] [0] PANIC: gw/bearerbox [0x8051799]


      

Reply via email to