Re: Howto send ott files

Dziugas Baltrunas <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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 = @fread($fd, 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 = $code['bite'] . $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
> > >
> > >
> >
> >
> >
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.