Hello,

I'm writing this again because I would like to know if someone can help me in letting kannel send an MMS notification. I know kannel is not an MMS gateway - I don't need it - I just need to send the SMS that notifies the MMS and the URL from wich the MMS has to be downloaded - just as a wappush.

Anyone can help ?


Thanks
J

PS:
Alejandro Guerrieri already helped a little, but his data are not working for me:

his code was:

    $message = "%01"; //Transaction ID
    $message .= "%06"; //PDU Type (push)
    $message .= "%04"; //Headers Length (content-type + headers)
    $message .= "%03"; //Length of content type
    $message .= "%BE"; //Content-Type: application/vnd.wap.mms-message
    $message .= "%81%83"; //Charset is US-ASCII
    $message .= "%8C%82"; //X-Mms-Message-Type: m-notification- indicator
    $message .= "%98" . rand(1,9) . "@pl" . "%00"; // X-Mms- Transaction-Id
    $message .= "%8D%90"; // X-Mms-Version: 1.0
    $message .= "%8A%80"; // X-Mms-Message-Class: Personal
    $message .= "%8E%01%64"; // X-MMS-Size: 100
    $expiry = time() + 31104000; // 1 year expiry
    $expiry = dechex($expiry);
    $expiry = chunk_split($expiry, 2, '%');
    $expiry = substr($expiry, 0, 12);
$message .= "%88%06%80%04" . $expiry; // X-MMS-Expiry: one year from now
    $message .= "%83" . $address . "%00"; // X-MMS-Content-Location
    echo "$message";
    $URL = KANNEL_SERVER.
                "/cgi-bin/sendsms".
                "?username=".USERNAME.
                "&password=".PASSWORD.
                "&from=".GLOBAL_SENDER.
                "&to=".$to.
                "&udh=%06%05%04%0B%84%23%F0".
                "&text=".$message;
    $result = file_get_contents( $URL );

Reply via email to