Re: Howto send ott files
Hi, I got the prob. My concatenate is not working. When I am sending the picture msgs. by splitting manually it comes properly. The below code works perfectly well. lynx --dump "http://127.0.0.1:12013/cgi-bin/sendsms?user=foo&pass=bar&to=mobileno&udh=%0B%05%04%15%8A%00%00%00%03%02%03%01&text=%30%00%00%.." lynx --dump "http://127.0.0.1:12013/cgi-bin/sendsms?user=foo&pass=bar&to=mobileno&udh=%0B%05%04%15%8A%00%00%00%03%02%03%02&text=%7F%FF%FF%..." lynx --dump "http://127.0.0.1:12013/cgi-bin/sendsms?user=foo&pass=bar&to=mobileno&udh=%0B%05%04%15%8A%00%00%00%03%02%03%03&text=%FF%FF%FF%FF%FF%FF%FF%FF%FF" but when I am sending as one msg. kannel splits them into 3 but I get in my mobile as message cannot be displayed here. lynx --dump "http://127.0.0.1:12013/cgi-bin/sendsms?user=foo&pass=bar&to=mobileno&udh=%0B%05%04%15%8A%00%00&text=%30%00%00%.." Pls. let me know how to pass the proper udh which will do the concatenation. I am already using group = sendsms-userconcatenation = truemax-messages = 3 Thanks & Regards Ritesh - Original Message - From: Dziugas Baltrunas To: Ritesh Shah Cc: [EMAIL PROTECTED] Sent: Thursday, November 28, 2002 1:24 AM Subject: Re: Howto send ott files 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 ----- From: Ritesh Shah To: Dziugas Baltrunas Sent: 2002 m. lapkrièio 27 d. 17:35 Subject: Re: Howto send ott files HiI 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-07so after conversion 04F470in my kannel log I am getting thismsg:35:3C456D707479207265706C792066726F6D20736572766963652070726F76696465723E] [udh:7:0605041582]Thanks & RegardsRitesh- Original Message -From: "Dziugas Baltrunas" <[EMAIL PROTECTED]>To: "Ritesh Shah" <[EMAIL PROTECTED]>Cc: "Kannel" <[EMAIL PROTECTED]>Sent: Wednesday, November 27, 2002 7:35 PMSubject: 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: 0605041582>> 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
Re: Howto send ott files
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 - From: Ritesh Shah To: Dziugas Baltrunas Sent: 2002 m. lapkrièio 27 d. 17:35 Subject: Re: Howto send ott files HiI 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-07so after conversion 04F470in my kannel log I am getting thismsg:35:3C456D707479207265706C792066726F6D20736572766963652070726F76696465723E] [udh:7:0605041582]Thanks & RegardsRitesh- Original Message -From: "Dziugas Baltrunas" <[EMAIL PROTECTED]>To: "Ritesh Shah" <[EMAIL PROTECTED]>Cc: "Kannel" <[EMAIL PROTECTED]>Sent: Wednesday, November 27, 2002 7:35 PMSubject: 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: 0605041582>> 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 amdoing> > > > 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> > > >> > > >> > >> > >> > >> >> >>>>
Re: Howto send ott files
No, MCC/MNC are for operator logo only. But picture messages are concatenated, so you might want to check how they were split/assembled. - Original Message - From: "Ritesh Shah" <[EMAIL PROTECTED]> To: "Dziugas Baltrunas" <[EMAIL PROTECTED]> Cc: "Kannel" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 2:39 PM Subject: Re: Howto send ott files > 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 > > > > > > > > > > > > > >
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 = @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: 0605041582 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 > > > > > > > > > > > > > >
Re: Howto send ott files
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 > > > > > > >
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 > >
Howto send ott files
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