And you can get full notification starting Kannel at smsc and
sending mms to that sim.
Aarno
On 22.5.2005, at 22.50, Alejandro Guerrieri wrote:
Linkas,
I've been investigating the issue some time ago, and after googleing a
little I've came up with a bunch of lines borrowed from many places.
I've been able to send the SMS indication, but I've neved been able to
download the content. I don't know if it's a problem on the message
I've constructed or if (most probably) my operator is filtering MMS
download outside of their MMSC infrastructure.
Anyway, here is the PHP code I'm using. $address should contain the
URL containing the MMS encoded message ( hex encoded and with "%"'s)
and there are a couple of constants you must define regarding your
particular Kannel setup (KANNEL_SERVER, USERNAME, PASSWORD and
GLOBAL_SENDER)
<?
$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 );
?>
Please let me know if you suceed.
Hope it helps,
On 5/22/05, Linkas <[EMAIL PROTECTED]> wrote:
Hello,
I would like to send the SMS indication about a MMS direcly with
kannel.
I don't want to send an MMS with kannel - I just want to send the SMS
that tells the phone about the MMS.
Can anyone help me composing the headers and contents ?
Thanks
J
--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/