This is the question. It would be better that PPG would handle this matter.

Aarno

PS. Yes, it should work, because this is the binary code PPG would generate for you.

On 13 Sep 2005, at 04:49, John M L wrote:

Thanks, willy.

Do all phones support this method?

-
John

[EMAIL PROTECTED] wrote:

Hi,
For me it's easier to send WAP PUSH using this method:
 $title = "title";
 $url = "the_url";
 $text  = "%01"; // transid
 $text .= "%06"; // PDU Type (push)
 //$text .= "%04%03"; // length of content-type
 $text .= "%01";
 $text .= "%AE%81%EA"; // content-type: application/vnd.wap.sic
 $text .= "%02"; // wbxml_version
 $text .= "%05"; // si_public_id
 $text .= "%6A"; // charset= (sibxml->charset)
 $text .= "%00"; // string table length
 $text .= "%45"; // <si>
 $text .= "%C6"; // <indication..
 $text .= "%0C%03".rawurlencode($url)."%00"; // href=url
 $text .= "%01"; // end indication>
 $text .= "%03".rawurlencode(trim($title))."%00";
 $text .= "%01"; // </indication>
 $text .= "%01"; // </si>
And push it with
http://url/cgi-bin/sendsms?...&udh=%06%05%04%0B%84%23%F0&text=$text";
FYI I use PHP. Hope it can help you :)
Regards
Willy
----- Original Message ----- From: "John M L" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 13, 2005 3:11 AM
Subject: kannel sms and wap push

I'm trying to impelment a mobile content distribution server using
Kannel.  The developers prior to me got smsbox working and now I'm
trying to setup wapbox and ppg.

Are wapbox and ppg both necessary for mobile content (i.e. ringtones,
wallpapers and other binary file) distribution?

Also, when I try to use a web query (through smsc = http) I get the
following error in the smsbox.log

2005-09-12 15:56:55 [10020] [4] INFO: Starting to service <test> from <
0018081234567> to < 0018081234567>
2005-09-12 15:56:55 [10020] [5] INFO: No reply sent, denied.

If anyone could shed some light on this I'd be very appreciative. I was thrown into this and haven't had (and don't have) much time to tinker
with kannel as we are on a big time crunch.


Here's my kannel.conf

group = core
admin-port = 13000
admin-password = password
status-password = password
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
wapbox-port = 13002
#box-deny-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
udp-allow-ip = "*.*.*.*"
wdp-interface-name="*"
log-file = "/tmp/kannel.log"
log-level = 1
access-log = "/tmp/kannel.access"
unified-prefix = "+358,00358,0;+,00"
white-list = "sms_send"

group = smsc
smsc = at
smsc-id = wave293
#keepalive=5
#sim-buffering=true
max-error-count=2
modemtype = wavecom
device = /dev/ttyS0

group = smsc
smsc = at
smsc-id = sierra
#allowed-smsc-id = ""
modemtype = sierra_750
device = /dev/modem
#speed = 9600
#keepalive = 60
sim-buffering = true
#max-error-count = 5

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
log-file = "/tmp/smsbox.log"
log-level = 1
access-log = "/tmp/smsaccess.log"


# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
get-url = "http://mydomain.org/z_send/sms.php?from=%p&body=%a";
max-messages=0
#text = "No service specified"
assume-plain-text = true

group = sendsms-user
username = sms_send
password = password
max-messages = 5

include = "/etc/kannel/modems.conf"


# WAPBOX SETUP

group = wapbox
bearerbox-host = localhost
log-file = "/tmp/wapbox.log"
log-level = 1
syslog-level = none
access-log = "/tmp/wapaccess.log"

# PPG SETUP

group = ppg
ppg-url = /wapppush
ppg-port = 8080
concurrent-pushes = 50
users = 52
ppg-allow-ip = "*.*.*.*"
trusted-pi = false

group = wap-push-user
wap-push-user = "pi_user"
ppg-username = "wap_pusher"
ppg-password = password

group = smsc
smsc = http
smsc-id = HTTP
port = 10000
system-type = kannel
smsc-username = "sms_send"
smsc-password = password
no-sender = true
no-coding = true
send-url = http://mydomain.org/wapstuff



Thanks,

John








Reply via email to