I've encoded the URL too, and this is my text:
%01 // Transaction ID
%06 // Push
%04 // Lenght of headers
%03 // Lenght of content-type
%B0 // Content type is application/vnd.wap.slc
%81 // Charset is
%EA // UTF-8

%02 // WBXML version
%06 // Wap Push SL
%6A // This is still a mistery
%00 // Leght of string table is zero
%85 // Here it starts the SL tag
%08%03 // URL type is "" and Start of string
http%3A%2F%2Fwww.info-me.it%2Fwap%2Findex.wml // The encoded URL
%00 // End of string
%01 // end of the SL tag

the UDH is always the same:udh=%06%05%04%0B%84%23%F0

But still my phone receive the SMS (I can ear it on my sound card :-D) and the SMSC set status to 1 (received by phone) but the phone is quiet and silent.

Ciao
Julien

Peter Beckman wrote:

It should be 100% binary.  You need to encode the URL.

On Sat, 26 Feb 2005, Linkas wrote:

In the the contrib/web/sendsms.php I have Service Indication (WAPPUSHSI) working fine, but not the WAPPUSHSL.

I've tried to modify a couple of "strange things" I saw, and here is the "job":

My UDH is: %06%05%04%0B%84%23%F0
(same ad Wap Push SI)

While the text message is:
$fields['text'] .= "%01";  # Transaction ID
$fields['text'] .= "%06";  # PDU Type (push)
$fields['text'] .= "%04";  # Headers Length
$fields['text'] .= "%03";     # Length of content type
// The next line looks strange - in the contrib was different
$fields['text'] .= "%B0";     # Content-Type: application/vnd.wap.slc
// End of strange line

$fields['text'] .= "%81";     # Charset
$fields['text'] .= "%EA";     # UTF-8

$fields['text'] .= "%02";  # Version number (wbxml_version)
$fields['text'] .= "%06";  # WBXML Public Identifier (sL_public_id)
// THIS line is strange too - why SIbxml and not SLbxml ?
$fields['text'] .= "%6A";  # charset= (sibxml->charset)
// END of strange line
$fields['text'] .= "%00";  # String table length

// The 'real' content I need to send where $URL is my wap page
$fields['text'] .= "%85"; # <sl>
$fields['text'] .= "%06"; # action="signal-high"
// Quite strange the URL is not 'urlencoded' but on the SI works ok like that
$fields['text'] .= "%08" . "%03" . $URL . "%00";
$fields['text'] .= "%01"; # </si>



The resulting HTTP GET is:

udh=%06%05%04%0B%84%23%F0
text=%01%06%04%03%B0%81%EA%02%06%6A%00%85%06%08%03http://www.info-me.it/wap/index.wml%00%01



Can anyone help?

Thanks
Julien


---------------------------------------------------------------------------


Peter Beckman Internet Guy
[EMAIL PROTECTED] http://www.purplecow.com/
---------------------------------------------------------------------------







Reply via email to