Rithes,
firstly, your code is not right - there should
be "text=$data", not "&data".
furthermore, you should include "coding=2" in
the URL and $data should
be in format as UDH, ie. %3C%45%6D7 and so
on.
hope it will help.
regards,
Dziugas Baltrunas
----- Original Message -----
Sent: 2002 m. lapkrièio 27 d. 17:35
Subject: Re: Howto send ott files
Hi
I have put your code in my php file, but still I am
getting the same error. I am attaching my sendlogo.php in this
mail.
I use logoedit to get MCC and MNC values. For our operator
MCC-404 and MNC-07
so after conversion 04F470
in my kannel
log I am getting
this msg:35:3C456D707479207265706C792066726F6D20736572766963652070726F76696465723 E]
[udh:7:06050415820000]
Thanks & Regards Ritesh
-----
Original Message ----- From: "Dziugas Baltrunas" <[EMAIL PROTECTED]> To:
"Ritesh Shah" <[EMAIL PROTECTED]> Cc:
"Kannel" <[EMAIL PROTECTED]> Sent:
Wednesday, November 27, 2002 7:35 PM Subject: Re: Howto send ott
files
> ok, here is a snip from my php code: > >
$image = $path . "/logo/$id.otb"; > if (!empty($image) &&
file_exists($image)) { > $fd = @fopen($image, "r"); > $data =
"" 4096); > @fclose($fd); > > for ($i = 0; $i <
strlen($data); $i++) { > $IMG .= sprintf("%02X",
ord($data[$i])); > } > > } else { > die("Logotipas
numeriu $id neegzistuoja. Bandykite dar karta"); > } > >
//$code['omnitel'] = '42F610'; // Lithuania Omnitel > $code['bite'] =
'42F620'; // Lithuania UAB Bite GSM > > $data = "" .
$IMG; > > and UDH should be: 06050415820000 > > I use
ImageMagick to convet gif or jpeg images into Over The air > Bitmap. try
to search google for your operator code. if something goes > wrong,
write again. > > regards, > Dziugas > > >
On Wed, 27 Nov 2002, Ritesh Shah wrote: > > > Hi, >
> > > I am using nokia 3310. > > > > Pls.
correct me do I have to send the MCC and MNC for picture msg. also. >
> > > Regards > > Ritesh > > > > -----
Original Message ----- > > From: "Dziugas Baltrunas" <[EMAIL PROTECTED]> > >
To: "Ritesh Shah" <[EMAIL PROTECTED]> > >
Cc: "Kannel" <[EMAIL PROTECTED]> >
> Sent: Wednesday, November 27, 2002 6:57 PM > > Subject: Re:
Howto send ott files > > > > > > >
Hello, > > > > > > what model of Nokia are you using?
actually, i have the same problem - > > > nokia 5110 shows the
picutre correctly, but others don't. > > > > > > and
are you using correct code of your mobile phone operator? > >
> > > > Dziugas > > > > > > On Wed, 27
Nov 2002, Ritesh Shah wrote: > > > > > > > Hi
All, > > > > > > > > I am having two
problems. > > > > > > > > (1.) Howto send ott
files through kannel > > > > > > > > (2.) I am
able to send hexadecimal codes of logos and ringtones but > >
when I > > > > am sending picture msg. I am getting >
> > > message not displayed
here. > > > > > > > > I am sending the pic msg.
like this, Pls. let me know where I am doing > > > >
wrong. > > > > > > > > > > >
> >
> /cgi-bin/sendsms?username=user&password=pass&from=fromno&to=mobileno&udh=%06 >
> > > >
> %05%04%15%8A%00%00&text=%00%48%1C%01%00%00%00%00%03%F0%00%36%66%00%00%00%00% >
> > > >
> 03%18%00%30%CC%00%00%00%00%03%18%00%30%CC%00%00%0C%00%03%18%F1%F6%EE%00%00%E >
> > > >
> F%80%03%F1%9B%36%CC%00%07%3B%60%03%19%FB%36%CC%00%08%F9%90%03%19%83%36%CC%00 >
> > > >
> %10%EA%88%03%19%9B%36%CC%00%27%CA%74%03%18%F1%F6%CC%00%23%8E%E7%00%00%00%00% >
> > > >
> 00%00%33%84%CC%80%01%F0%00%00%01%79%C7%98%20%00%D8%0C%00%0F%3C%7E%3E%30%00%D >
> > > >
> 9%DE%00%3F%07%1C%F8%60%00%DB%6C%00%7F%8F%CF%F1%E0%00%DB%6C%00%E3%F3%F7%3F%F0 >
> > > >
> %01%F1%C6%00%0E%F0%7D%8F%F8%00%00%00%00%1F%F8%D8%1F%FC%00%00%00%00%0F%FF%8C% >
> > > >
> 27%FC%3E%00%00%00%1F%FD%FF%F0%CE%63%00%00%00%3F%F9%FF%F0%22%60%00%00%00%7F%F >
> > > >
> 3%BF%F0%00%60%3C%FE%00%07%C4%7F%E0%00%60%66%DB%00%00%00%7F%C0%00%60%66%DB%00 >
> > > >
> %00%00%3F%00%00%60%66%DB%00%00%00%3D%00%00%63%66%DB%00%00%00%18%00%00%3E%3C% >
> > > DB%00%00%00%08%00%00%00%00%00%00 > > > > >
> > > > > > > Regards > > > >
Ritesh > > > > > > > > > > > >
> > > > > > > >
> > > >
|