Hello all
I am using kannel-1.4.0 for WAP push. I got a problem while sending the XML document containing OTA settings. While sending from HTTP url I got an error at smsbox. Here I am using fakesmsc Why I am getting such an error? Is there any mistake in the configuration file or at XML file. I saved the XML file at ../gateway-1.4.0/test directory with name
MyURLEncodedXMLdocument.xml
Here I am attaching the logfile...
2005-04-01 11:45:49[5641] [3]INFO: smsbox: Got HTTP request </cgi-bin/sendota> from <xxx.xxx.xxx.xxx>
2005-04-01 11:45:49[5641] [3]INFO: sendsms used by <otauser>
2005-04-01 11:45:49[5641] [3]DEBUG: OTA service with XML document
Entity: line 1: error: Start tag expected, '<' not found
MyURLEncodedXMLdocument.xml
^
2005-04-01 11:45:49[5641] [3]ERROR: OTA: No document to parse. Probably an error in OTA source
2005-04-01 11:45:49[5641] [3]DEBUG: Status: 400 Answer: <Erroneous ota source, cannot compile
>
My configuration file is as follows:
#core
group = core
admin-port = 14000
smsbox-port = 14001
wapbox-port = 14002
admin-password = adpass
status-password = stpass
admin-allow-ip = "127.0.0.1"
box-allow-ip = "127.0.0.1"
#SMSC connections
group = smsc
smsc = fake
smsc-id = ID2
port = 11000
#WAPbox
group = wapbox
bearerbox-host = "127.1.0.0"
syslog-level = 0
#SMSbox
group = smsbox
smsbox-id = s1
bearerbox-host = localhost
sendsms-port = 14003
sendsms-chars = "1234506789hello+=-"
global-sender = yyyyyyyyyy
reply-couldnotfetch = "Server down"
#Services
group = sms-service
keyword = nop
text = "No operation"
group = sms-service
keyword = default
text = "This is a default"
#send-smsusers
group=sendsms-user
username=otauser
password=otapass
concatenation=true
max-messages=50
And My xml file is as ...
<?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="xxx.xxx.xxx.xxx"/>
<PARM NAME="PORT" VALUE="9200"/>
<PARM NAME="CAD_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"/>
</CAHRACTERISTIC>
<CHARACTERISTIC TYPE="URL" VALUE="http://wap.company.com"/>
<CHARACTERISTIC TYPE="NAME">
<PARM NAME="NAME" VALUE="Your WAP company"/>
</CHARACTERISTIC>
</CHARACTERISTIC-LIST>
The HTTP URL I am passing is :
http://xxx.xxx.xxx.xxx:14003/cgi-bin/sendota?username=otauser&password=otapass&to=yyyyyyyyy&text=MyURLEncodedXMLdocument.xml&type=settings
Advanced Thanks for help...
G.S.Choudary
