PDU

PDU SearchSearch
Author Message
Tim S
New member
Username: Tdawgpharaoh

Post Number: 1
Registered: 04-2004
Posted on Sunday, April 18, 2004 - 06:27 pm:   

Hi All;

I have this PHP script, it sends MMS notifications, but it only seems to work on Nokia 7650 (I do not have other Nokia models) but on my T68i (before I sold it) and on my P800 the phone will not accept the message...

I am sure there are header troubles, perhaps an extra Nokia header in there, which should not be when dealing with Ericsson. Anyopne see a problem?

$message = "%01"; // Transaction ID
$message .= "%06"; //PDU Type (push)
$message .= "%22"; //Headers Length (content-type + headers)
$message .= "%61%70%70%6C%69%63%61%74"; // this is 'application/vnd.wap.mms-mess
age'
$message .= "%69%6F%6E%2F%76%6E%64%2E"; // hex encoded
$message .= "%77%61%70%2E%6D%6D%73%2D";
$message .= "%6D%65%73%73%61%67%65%00";
$message .= "%AF%84";
$headers = $message;

//everything before here is now saved as variable headers

//var message begins
$message = "";

//---------- X-Mms-Message-Type ----------
$message .= "%8C" . "%82"; // m-notification-ind

//---------- X-Mms-Transaction-Id ----------
$message .="%98%41%00";

//---------- X-Mms-Version ----------
$message .= "%8D" . "%90"; // 1.0

//---------- From ----------
$message .= "%89%02%41%00";

//---------- X-Mms-Message-Class ----------
$message .= "%8A" . "%" . $class; // 80 = personal, 81 = ad, 82=info, 83 = auto

//---------- X-Mms-Message-Size ----------
$message .= "%8E%02%0B%05";

//---------- X-Mms-Expiry ----------
$message .= "%88%05%81%03%01%51%80";

//---------- X-MMS-Content-Location ----------
$message .= "%83" . hex_encode($address) . "%00";

//var message completed


SEND
udh=%06%05%04%0B%84%23%F0&text=".$headers.$message;
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2303
Registered: 10-2002
Posted on Monday, April 19, 2004 - 02:40 pm:   

There may be other problems, but the From header looks incorrect.