Hello, Seem to be having some problems with WAP push. The code to construct the UDH and message is below. It used to work, but then somewhere along the line it stopped.
Tried to both Nokia and SonyEricsson handsets, and both are ignoring the message. If someone could take a look and make sure my construction techniques are right I would appreciate it. Thanks, Alex $from = "Sender"; $to = "44xxxxxxxxxxx"; function hex_encode( $text, $joiner='' ) { for ($l=0; $l<strlen($text); $l++) { $letter = substr($text, $l, 1); $ret .= sprintf("%s%02X", $joiner, ord($letter)); } return $ret; } $submittedwappushurl = urlencode("http://www.google.com"); $submittedwappushtext = "test"; // override messagebody with wappush and set udh $messageudh = "%06%05%04%0B%84%23%F0"; $messagebody = "%1B%06%01%AE%02%05%6A%00%45%C6%0C%03".hex_encode($submittedwappushurl,'%')."%00%01%03".hex_encode($submittedwappushtext,'%')."%00%01%01";