I had the same problem bu i fixed, no problems anymore...
thanks
Hi Nicolas,
I have been going through Kannel mails. I found your problem exactly the
same problem as I am facing.
Nicolas, could you please let me know if you were able to solve the
problem of sending ringtone to CDMA phone.
Anybody else, can you please see if their is a solution for the problem.
Regards and Thanks in advance.
Shantanu
----- Original Message ----- From: "Nicolas de Bari Embriz G. R."
<[EMAIL PROTECTED]>
To: "Alejandro Guerrieri" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Friday, April 22, 2005 1:40 AM
Subject: Re: enconde Ringtones
Hi, thanks for you fast answer.
The network is CDMA/GSM I did what you toll me, to send the messages like
this:
# ring tone
$msg = urlencode('//SCKL1581
024A3A5DD195C5D5A5B1840400272292312142D020C2D021029021030C29020C2102D020C21023020C00');
$result =
@file("http://$host$port/cgi-bin/sendsms?user=$user&password=$pass&to=$to&text=$msg");
after sending the message, i just receive a text msg with the tone data:
//SCKL1581
024A3A5DD195C5D5A5
B184040027229231214
2D020C2D02102902103
0C29020C2102D020C21
023020C00
Then i tryed to use the udh and coding to something like this:
$msg = urlencode('//SCKL1581
024A3A5DD195C5D5A5B1840400272292312142D020C2D021029021030C29020C2102D020C21023020C00');
$udh = '%06%05%04%15%81%00%00';
$coding = 2;
$result = @file("http://$host:
$port/cgi-bin/sendsms?user=$user&password=$pass&to=$to&text=$msg&udh=$udh&coding=$coding");
after sending the msg , I ireceived only dots, something like:
...................
...................
...................
what i am also trying to do, is to add a % to the binary data, using
something, like this:
$msg =
chunk_split(urlencode('024A3A5DD195C5D5A5B1840400272292312142D020C2D021029021030C29020C2102D020C21023020C00'),2,'%');
maybe i am coding wrong, i am just adding a % every 2 fiels, how should i
correctly post the msg?
This is the tone the one is supposed to work:
//SCKL1581
024A3A5DD195C5D5A5B1840400272292312142D020C2D021029021030C29020C2102D020C21023020C00
Thanks in advance
Nicolas,
I think you are merging 2 different technologies:
If you use //SCKL encoding, you don't have to use any UDH, it's just plain
text.
For //SCKL: try deleting the UDH field and coding fields, send the //SCKL
part as regular text and it shoudl work.
That means:
$msg = urlencode('//SCKL1581
024A3A650995D1D195C93D999804144288F511610611624D308314458418458418938C20C30
C5186108186108156'); (Delete the UDH and CODING fields from the request).
On the other hand, if you're trying to send it as binary (you'll be able to
send more data but it won't work on TDMA/CDMA networks), you shouldn't have
to use the //SCKL part, you should use the UDH, maybe the encoding (I've
never had to use it, though) and just the BINARY part of the ringtone,
somthing like this.
$msg =
urlencode('024A3A650995D1D195C93D999804144288F511610611624D3083144584184584
18938C20C30C5186108186108156'); $udh = '06050415810000';
$coding = 2;
I think you can spare the "%" and most probably the coding (having the UDH
forces binary encoding).
In short, the header //SCKL1581 as header and the UDH 06050415810000 are
the same thing expressed for different kind of delivery. 1581 is the
"Source Port" in Hex (5505 decimal). 0000 is the "Destination Port" (You
can skip that on single-message SCKL). 060504 is the binary equivalent of
"//SCKL".
Please let me know if you need anything else.
Hope it helps,
----- Original Message -----
From: "Nicolas de Bari Embriz G. R." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 21, 2005 8:55 PM
Subject: enconde Ringtones
> Hello, i see you post on the kannel-users list about enconding mono
> ringtones,
> I am having the same problem that you have, all the "binary data" i am
> sending is just received has plain text, any idea or recomendation for
> sending logos/tones over SMS?
>
> right now i am sending messasgs likethis:
>
> # TUNE
> $msg = urlencode('//SCKL1581
> 024A3A650995D1D195C93D999804144288F511610611624D308314458418458418938C20C
>30C5186108186108156'); $udh = '%06%05%04%15%81%00%00'; #TUNE
> $coding = 2;
>
>
> $result = @file("http://$host:
> $port/cgi-bin/sendsms?user=$user&password=$pass&to=$to&text=$msg&udh=$udh
>&coding=$coding");
>
>
>
> regards
__
Saunalahti Xtra - Uusi GSM-vuokrapuhelin ja edistykselliset Xtra-palvelut
käyttöösi alk. 4,95 e/kk! http://saunalahti.fi/xtra/