Dear sir,
 I am working on wappush and trying to configure kannel (gateway-1.2.1) so
that I can push messages to the GSM. I have already configured kannel for
sms and I can easily send sms to the GSM. I am using TC35 for connecting to
the GSM.

My flow is like

Application --> kannel --> TC35 --> GSM.

 Now If I configure kannel for WapPush (I am using openwave wappushlib for
it) I am able to send wappush request, even I recieve wappush service
Indication message on my mobile but I am not getting kannel response values
in my application. I always get exception

com.openwave.wappush.WapPushException: Connection timed out: connect
        at
com.openwave.wappush.ResponseBuilder.parseContent(ResponseBuilder.jav
a:114)
        at
com.openwave.wappush.PushResponseBuilder.build(PushResponseBuilder.ja
va:77)
        at com.openwave.wappush.Pusher.send(Pusher.java:239)
        at push.test.PushTest.testServiceIndicator(PushTest.java:95)
        at push.test.PushTest.main(PushTest.java:129)


 where else If I send any http request through my browser than I get error
code sometimes in the xml format.

 I dont understand what is missing here in my configuration because I am not
getting response in my application but the Wappush is delivered
successfully.


 Can I configure kannel for SMPP request so that it listens to smpp requests
and send it to GSM through TC35???

 If you want the java code for sending push message I can mail it to you. I
am using normal functioanlity for simple service indication.

 I am sending you my kannel.conf file, if you can get something out of it.
Please help me I urgently need this. I have tried everything but couldnt
resolve the problem. I have to send wappush messages and get replies back in
my application (error or successful delivery).

//kannel.conf***************************************************************
***************************************************

# REAL SENDING
# This is REAL kannel.conf which is used for sending SMS-es
# Please change PIN and prefix for use with different cards.
# conf file for TC-35 Siemens
# Created and modified by: Nishant Jain <[EMAIL PROTECTED]>
# Edited by Nishant Jain for WapPush


group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = bar
log-file = "/cygdrive/f/kannel/log/kannel.log"
log-level = 5
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;132.186.*.*"
#admin-deny-ip = ""
#admin-allow-ip = ""
unified-prefix = "+91,0091;+91,91"
access-log = "/cygdrive/f/kannel/log/access.log"
store-file = "/cygdrive/f/kannel/log/kannel.store"
wdp-interface-name = "*"



#MODEM CONFIGURATION
group = modems
id = siemens-tc35
name = "SIEMENS TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,0,1"
#init-string = "AT+CNMI=3,2,0,0,1"
speed = 9600 
#speed = 38400 
keepalive-cmd = "AT+CSQ"
enable-hwhs = "AT\\Q3"
need-sleep = true


#SMSC CONNECTIONS
#gsm modem configuration
group = smsc
smsc = at2
validityperiod = 11 
keepalive = 120 
#modemtype = auto
modemtype = siemens-tc35
#device = /dev/ttys0
device = /dev/COM2
sms-center = +919810051914 
pin = 1234 
speed=9600
my-number = +919810436688


#SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013 
sendsms-chars = "0123456789 +-"
log-file = "/cygdrive/f/kannel/log/smsbox.log"
log-level = 5
access-log = "/cygdrive/f/kannel/log/access.log"

group = sms-service
keyword = www
url = "http://%S";
concatenation = true
#header = "hoho"
accept-x-kannel-headers = true
assume-plain-text = true
post-url = "http://%S";
max-messages = 3


# A do-nothing service.
group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# Default service.
group = sms-service
keyword = default
text = "No services defined"


#SEND-SMS USERS
#this sender is for kannel relay testing
group = sendsms-user
username = tester
password = foobar
user-deny-ip = "*.*.*.*"
user-allow-ip = "132.186.*.*"
default-sender = +919810436688
max-messages = 1
concatenation = true 
#user-deny-ip = ""
#user-allow-ip = ""


# WAPBOX SETUP for pushing and for pulling data the wap data

group = wapbox
bearerbox-host = localhost
log-file = "/cygdrive/f/kannel/log/wapbox.log"
log-level = 5 
syslog-level = none


# PPG
group = ppg
#ppg-url = /cgi-bin/wappush.cgi 
ppg-url = /wappush
#ppg-port = 8080
ppg-port = 9001
concurrent-pushes = 100
users = 1024
ppg-allow-ip = "*.*.*.*"
trusted-pi = true 


group = wap-push-user
wap-push-user = tester
ppg-username = tester
ppg-password = foobar

****************************************************************************
*****************************************************

 If any parameter is missing or wrong value please tell me. I'll be very
thankful to you if you could find some solution for my query.


regards
Nishant


Reply via email to