oh! heaven must have answered my prayers!
can you teach me to apply in the patch? im using the latest version
1.4.1 i'm really new to linux, kannel and SMS+Push Programing.
will this patch work with the one i'm using to send pushes? (see attached)
i need to know all that's needed so that i can deploy flawlessly with
smart communications.
you are my only hope.
Thank You,
Clarence Carino
Rafael Sevilla wrote:
I assume you're trying to deploy to Smart... I actually wrote a patch
to an older version of Kannel that changes the behavior of the binfo
field so that you can set the TC and SD parameters for CIMD2. It's
been a while since I've actually used it but you can find it on the
ph-mobileapps yahoogroup. Feel free to subscribe.
<?php
$kannel = array(
host => 'host',
port => 13013,
user => 'username',
pass => 'password'
);
$fields = array(
from => 'server',
to => 'subscriber',
smsc => 'smsc-id',
links => 'sample.com/test.php',
title => 'Go To This Site?'
);
sendwappush($fields,$kannel);
print "Sent";
function sendwappush ($fields, $kannel, $debug=0) {
$fields[udh] = '%06%05%04%0B%84%23%F0';
$fields[text] = '%1B%06%01%AE%02%05%6A%00%45%C6%0C%03'.
urlencode($fields[links]).
'%00%01%03'.
urlencode($fields[title]).
'%00%01%01';
unset ( $fields[title], $fields[links] );
while(list($k,$v) = each($fields)) {
if ( $v != "" ) {
$string .= "&$k=$v";
}
}
$result = @file("http://".$kannel[host].":".$kannel[port].
"/cgi-bin/sendsms".
"?user=".$kannel[user].
"&pass=".$kannel[pass].
"&".$string);
}
?>