Hi all,i configured kannel as smsgw and wapgw,all run
perfectly.But my problem is to send the XML document
containing OTA settings.While sending from HTTP url i
got this error at smsbox log:

2007-04-30 15:29:31 [5161] [3] DEBUG: OTA service with
XML document
Entity: line 1: parser error : Start tag expected, '<'
not found
/usr/local/gateway-1.4.1/test/settings.txt
^
2007-04-30 15:29:31 [5161] [3] ERROR: OTA: No document
to parse. Probably an error in OTA source
2007-04-30 15:29:31 [5161] [3] DEBUG: Status: 400
Answer: <Erroneous ota source, cannot compile>

this is http url:
http://10.10.2.175:13013/cgi-bin/sendota?username=tester&password=foobar&to=+221xxxxx&text=/usr/local/gateway-1.4.1/test/settings.txt&type=settings

Can sommeone help me please?That's my last step in
kannel setting.I require all the kannel expert for
help.Please i cry!!!
PS:added are my .xml and kannel.conf files.     

    
---------------------------------
  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.     
---------------------------------
  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.


             
---------------------------------
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.
             
---------------------------------
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.
#
# THIS IS A SAMPLE CONFIGURATION FOR KANNEL
#
# For any modifications to this file, see Kannel User Guide 
# If that does not help, send email to users@kannel.org
#
include = "/etc/modems.conf"

group = core
admin-port = 13000
admin-password = pwd
status-password = pwd
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
wapbox-port = 13002
wdp-interface-name = "*"
store-file = "/var/log/kannel/kannel.store"
http-proxy-host = "127.0.0.1"
http-proxy-port = 8081
#http-proxy-exceptions = "127.0.0.1"
#http-proxy-username = "user"
#http-proxy-password = "password"
#ssl-certkey-file = "mycertandprivkeyfile.pem"


# Smsbox related
#smsbox-port = 13001
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1"
#unified-prefix = "00358,0"
#white-list = "http://127.0.0.1/white-list.txt";
#black-list = "http:/7.0.0.1/black-list.txt"
#store-file = "kannel.store"

# Wapbox related
group = wapbox
bearerbox-host = localhost
log-file = "/tmp/wapbox.log"
log-level = 0
access-log = "/tmp/wapaccess.log"
syslog-level = none
map-url = "http://127.0.0.1/* http://127.0.0.1:8080/*";
http-interface-name = localhost
#wapbox-port = 13002
#udp-deny-ip = "*.*.*.*"
#udp-allow-ip = "127.0.0.1"
#wdp-interface-name = "*"

# PPG CORE SETUP, for defining the push request interface
group = ppg
ppg-url = /cgi-bin/sendsms
ppg-port = 8080
concurrent-pushes = 100
users = 1024
trusted-pi = true
#ppg-allow-ip = 127.0.0.1
ppg-allow-ip = "*.*.*.*"
service-name = wap
default-smsc = http

#TEST PAP PROTOCOL
#group = test-ppg
#retries = 2
#pi-ssl = yes

#group = configuration
#push-url = https://localhost:8080/etc/kannel.conf
#pap-file = /usr/local/gateway-1.4.1/test/push.control
#content-file = /etc/kannel/si.txt
#content-file = /usr/local/gateway-1.4.1/test/push.content
#username = tester
#password = foobar

# SMSC CONNECTIONS - GLOBAL FIELDS
#group = smsc
#smsc = 
#smsc-id = ID
#denied-smsc-id = "X;Y"
#allowed-smsc-id = "Z"
#preferred-smsc-id = "W"
#allowed-prefix = "040;050"
#denied-prefix = "060;070"
#alt-charset = 


# SMSC Nokia CIMD2
#group = smsc
#smsc = cimd2
#host = 
#port = 
#smsc-username =
#smsc-password =
#keepalive = 
#sender-prefix =


# SMSC EMI
#group = smsc
#smsc = emi2 
#smsc = emi_ip to use the old implementation
#host =
#port =
#smsc-username =
#smsc-password =
#device = /dev/
#phone = 
#our-port =
#receive-port =
#connect-allow-ip =
#keepalive = 
#flow-control =


# SMSC SMPP
#group = smsc
#smsc = smpp
#host = 127.0.0.1
#port = 0
#receive-port =
#smsc-username = ""
#smsc-password = ""
#system-type = "SMS
#interface-version = 3.4
#connect-allow-ip = "*.*.*.*"
#keepalive = 50
#address-range =


# SMSC SEMA
#group = smsc
#smsc = sema
#device = /dev/tty0
#smsc_nua = (X121 smsc address)
#home_nua = (x121 radio pad address)
#wait_report = 0/1 (0 means false, 1 means true)


# SMSC OIS
#group = smsc
#smsc = ois
#host = 103.102.101.100
#port = 10000
#receive-port = 10000
#ois-debug-level = 0


# SMSC GSM
group = smsc
smsc = at
#host = localhost
#port = 13013
#smsc-id = smsserver
modemtype = wavecom
device = /dev/ttyS0
speed = 9600
#pin = 2345
#validityperiod = 167


# SMSC Fake
#group = smsc
#smsc = fake
#host = 192.168.1.126
#port = 10000
#connect-allow-ip = "*.*.*.*"


# SMSC HTTP
group = smsc
smsc = http
system-type = kannel
smsc-username = tester
smsc-password = foobar
port = 13015
connect-allow-ip = "*.*.*.*"
#send-url = "http://localhost:13015/cgi-bin/sendota";
send-url = "http://localhost:13015/cgi-bin/sendsms";


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789+"
global-sender = 13013
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
sendsms-url = /cgi-bin/sendsms
sendota-url = /cgi-bin/sendota
#white-list =
#black-list =
#reply-couldnotfetch = 
#reply-couldnotrepresent = 
#reply-requestfailed =
#reply-emptymessage = 


# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
user-allow-ip = "*.*.*.*"
max-messages = 3
concatenation = true


group = sendsms-user
username = playsms
password = pwd
#user-deny-ip = ""
#user-allow-ip = ""

# this sender is for Kannel relay testing (http_smsc)

group = sendsms-user
username = kannel
password = rL4y
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"
#name = service_kannel
#forced-smsc = ID
#default-smsc = ID
#faked-sended =
#max-messages = 1
#concatenation = 1
#split-chars = 
#split-suffix = 
#omit-empty = 
#header =
#footer =
#allowed-prefix =
#denied-prefix =
#white-list =
#black-list =

#OTA-SETTING
group = ota-setting
ota-id = kannel
location = http://localhost
service = "Notre site wap"
ipaddress = 127.0.0.1
phonenumber = +2214658605
bearer = data
calltype = analog
connection = cont
pppsecurity = off
authentication = normal
login = tester
secret = foobar

# PPG USER SETUP, for authorizing a specific push user

group = wap-push-user
ppg-username = tester
ppg-password = foobar
allow-ip = "*.*.*.*"
allowed-prefix = +221
default-smsc = http


# SMS SERVICES

#group = sms-service
#name = nothing
#keyword = nop
#aliases = "noppy;niente"
#text = "You asked nothing and I did it!"
#get-url = "http://";
#post-url = "http://";
#file = "/tmp/"
#accepted-smsc = ID
#allowed-prefix = 
#denied-prefix = 
#catch-all = false
#send-sender = false
#strip-keyword = false
#faked-sender = 
#max-messages = 1
#accept-x-kannel-headers = false
#assume-plain-text = false
#concatenation = false
#split-chars = 
#split-suffix = "+"
#omit-empty = true
#header =
#footer =
#prefix = 
#suffix =
#white-list =
#black-list =


# SMS SERVICE GET-URL EXAMPLE
#group = sms-service
#keyword = relay
#get-url = "http://localhost/service?phone=%p&text=%r&binary=%b&smsc=$i&time=%t


# SMS SERVICE black-list
#group = sms-service
#keyword = black-list
#text = "You are not alowed to use this service, Go away!"


# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
text = "No service specified"

group = sms-service
keyword = ok
get-url = "http://%S";
text = "kannel fonctionne"

group = sms-service
keyword = wap
name = "wap"
post-url = "http://127.0.0.1/cgi-bin/sendsms?sender=%p&to=%P&text=%k%s%r";
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
accepted-smsc = "at;http"
<?xml version="1.0"?>
<!DOCTYPE CHARACTERISTIC-LIST SYSTEM "file:///gw/settings.dtd">
<CHARACTERISTIC-LIST>

<CHARACTERISTIC TYPE="ADDRESS">
<PARM NAME="BEARER" VALUE="GSM/CSD"/>
<PARM NAME="PROXY" VALUE="10.10.2.175"/>
<PARM NAME="PORT" VALUE="9201"/>
<PARM NAME="CSD_DIALSTRING" VALUE="+12345678"/>
<PARM NAME="PPP_AUTHTYPE" VALUE="PAP"/>
<PARM NAME="PPP_AUTHNAME" VALUE="tester"/>
<PARM NAME="PPP_AUTHSECRET" VALUE="foobar"/>
<PARM NAME="CSD_CALLTYPE" VALUE="ISDN"/>
<PARM NAME="CSD_CALLSPEED" VALUE="9600"/>
</CHARACTERISTIC>

<CHARACTERISTIC TYPE="URL" 
     VALUE="http://10.10.2.175/monsite/index.wml"/>

<CHARACTERISTIC TYPE="NAME">
<PARM NAME="NAME" VALUE="Notre site wap"/>
</CHARACTERISTIC>

</CHARACTERISTIC-LIST>

Reply via email to