Hello,

I have configured Kannel to work as a PPG on input, and SMPP on output. I have several 
remarks
concerning the configuration:
- I have seen that the field Source_Addr on the SMPP request is not filled in using 
field my_number
of smsc group, but using field global-sender of ppg group. Is there any reason or is 
it a bug ?
- on SMPP request, if the Source_addr is a numeric value, the TON set is not correct
- I have tried to analyse the binary request made by Kannel. Here my configuration 
file:
group = core
admin-port = 13000
wapbox-port = 13002
admin-password = bar
box-allow-ip = "127.0.0.1"
unified-prefix = "+,00"
access-log = "/usr/mobileway/log/access.log"

# WAPBOX SETUP, for pushing and for pulling (fetching) the wap data
group = wapbox
bearerbox-host = localhost
syslog-level = none

# PPG CORE SETUP, for defining the push request interface
group = ppg
ppg-url = /cgi-bin/wap-push.cgi
ppg-port = 8080
#ppg-ssl-port = 8081
concurrent-pushes = 100
trusted-pi = no
#users = 1024
ppg-deny-ip = 194.100.32.89;194.100.32.103
ppg-allow-ip = *.*.*.*;
#ssl-server-cert-file = "/Users/aarno/gateway/test/cert.pem"
#ssl-server-key-file = "/Users/aarno/gateway/test/key.pem"
global-sender="mobileway"       # TPOA sent on SMPP request. Must be alpha num, due to 
trouble on
TON value

#SMPP 1
group = smsc
smsc = smpp
smsc-id=mw_test_smpp
host = 62.80.122.178
port = 7901
receive-port = 8100
smsc-username = "mw_test_smpp"
smsc-password = eD2dq4L
system-type = "VMA"
address-range = ""
my-number= 3333333
enquire-link-interval=120
reconnect-delay=30

group = wap-push-user
wap-push-user = picom
ppg-username = mw_test_smpp
ppg-password = eD2dq4L
deny-ip = 222.222.222.222;
allow-ip = *.*.*.*;


Here the request sends by my PI:
Message to http://203.208.227.203:8080/cgi-bin/wap-push.cgi

Content-Type: multipart/related; boundary=PMasdfglkjhqwert; type="application/xml"

--PMasdfglkjhqwert

Content-Type: application/xml

<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" 
"http://www.wapforum.org/DTD/pap_1.0.dtd";>
<pap>
<push-message push-id="PI/32"> 
  <address address-value="[EMAIL PROTECTED]"/>
</push-message>
</pap>

--PMasdfglkjhqwert

Content-Type: text/vnd.wap.si

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/SI.dtd";>
<si>
  <indication href="http://www.boursorama.fr"; 
    si-id = "WapIDE_SI/1" 
    >Do you want to download boursorama information ?</indication>
</si>

--PMasdfglkjhqwert--

PPG Responses Received: 

<?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd";><pap><push-response push-id="PI/32"
sender-name="sing-prod1.local; WAP/1.3 (Kannel/1.2.0)" 
reply-time="2002-10-28T09:50:23Z"
sender-address="/cgi-bin/wap-push.cgi"></push-response><response-result code ="1001" 
desc="The
request has been accepted for processing"></response-result></pap>


What I do not understand is why in the binary message generated for SMPP, I found:
- mw_test_smpp
- WapIDE 3.1 PO
- 203.208.227.203:8080

Can you please help me ?

Thanks,

Evelyne NOTTON

Reply via email to