Re: Wap push sanity check
First byte of UDH should be the udh lenght. In your example you have a UDHL of 0B while the lenght of your header is 06. Am i missing something ? On Thursday 24 August 2006 06:48, Mi Reflejo wrote: I post wappushes constructing the pdu by hand too. With some phones i has problems putting the http://; Please try $submittedwappushurl = urlencode(www.google.com); //without http:// PD: If it don't work. Take a look to this working pdu, may help you: 0B05040B8423F0 (udh) 0003 (wappush) 95 (serialID) 0101 ( one message of one ) DC0601AE02056A0045C60C03 7761702E676F6F676C652E636F6D (url) 00010344657363617267612079612022476F6F676C6522 (Message) 000101 Martin. On 8/22/06, Alex Kinch [EMAIL PROTECTED] wrote: Hi Aarno Must admit I haven't tried it yet, I've just been using PHP to construct and send a wap push via the normal sendsms http interface. Also tried it via sqlbox and no luck. Will have a go with PPG and let you know how it goes.. Alex On 8/21/06, Aarno Syvänen [EMAIL PROTECTED] wrote: Hello, does PPG work ? Aarno On 18 Aug 2006, at 23:12, Alex Kinch wrote: 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 = 44xxx; function hex_encode( $text, $joiner='' ) { for ($l=0; $lstrlen($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;
Re: Wap push sanity check
if you use PPG instead, it would do all this work for you Aarno On 24 Aug 2006, at 06:48, Mi Reflejo wrote: I post wappushes constructing the pdu by hand too. With some phones i has problems putting the http://; Please try $submittedwappushurl = urlencode(www.google.com); // without http:// PD: If it don't work. Take a look to this working pdu, may help you: 0B05040B8423F0 (udh) 0003 (wappush) 95 (serialID) 0101 ( one message of one ) DC0601AE02056A0045C60C03 7761702E676F6F676C652E636F6D (url) 00010344657363617267612079612022476F6F676C6522 (Message) 000101 Martin. On 8/22/06, Alex Kinch [EMAIL PROTECTED] wrote: Hi Aarno Must admit I haven't tried it yet, I've just been using PHP to construct and send a wap push via the normal sendsms http interface. Also tried it via sqlbox and no luck. Will have a go with PPG and let you know how it goes.. Alex On 8/21/06, Aarno Syvänen [EMAIL PROTECTED] wrote: Hello, does PPG work ? Aarno On 18 Aug 2006, at 23:12, Alex Kinch wrote: 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 = 44xxx; function hex_encode( $text, $joiner='' ) { for ($l=0; $lstrlen($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;
Re: Wap push sanity check
Hi Aarno Must admit I haven't tried it yet, I've just been using PHP to construct and send a wap push via the normal sendsms http interface. Also tried it via sqlbox and no luck. Will have a go with PPG and let you know how it goes.. Alex On 8/21/06, Aarno Syvänen [EMAIL PROTECTED] wrote: Hello, does PPG work ? Aarno On 18 Aug 2006, at 23:12, Alex Kinch wrote: 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 = 44xxx; function hex_encode( $text, $joiner='' ) { for ($l=0; $lstrlen($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;
Re: Wap push sanity check
Hello, does PPG work ? Aarno On 18 Aug 2006, at 23:12, Alex Kinch wrote: 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 = 44xxx; function hex_encode( $text, $joiner='' ) { for ($l=0; $lstrlen($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;
Wap push sanity check
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 = 44xxx; function hex_encode( $text, $joiner='' ) { for ($l=0; $lstrlen($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;