Bug - memory leak in SSL handlers

2002-11-28 Thread Paul Keogh

Module is gwlib/conn.c

The OpenSSL code used in Kannel does not free up allocated resources.
This is OK for current executable usage but not OK if you are using
Kannel libraries in a reentrant manner. Specifically, OpenSSL
resources should be freed in conn_shutdown_ssl() and server_shutdown_ssl()
through calls to;

ERR_free_strings ();
EVP_cleanup();

Paul Keogh
ANAM Wireless Internet Solutions
http://www.anam.com 
+353 1 284 7555 (wired)   +353 86 234 6047 (wireless)
Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland
 




Re: MMS m-notification-ind and test_ppg

2002-11-28 Thread Alex Judd
Update from myself is that you can actually use Apache to serve binary mms
files quite successfully and send alerts with the m-notification code from
Aarno (thanks to Igor for the test image)

If anyone else is interested on this part, I'm putting together a faq
document covering this so I'll publish it when done.

Any ideas on the wap_ppg generation question?

Alex

 2. Serving MMS content

 I've configured Apache to serve .mms files with the content type
 application/vnd.wap.mms-message (thanks Ivor) however the phone complains
of
 a formatting error when it recieves the message. I'm using Nokia encoded
 binary messages here which should in theory work. Again, open for
 suggestions as how to verify these messages are correct.

 Thoughts are that I may need to use Kannel as a proxy to fetch the content
 from the Apache server and serve it itself. Guessing that might be the SAR
 issue that has been resolved that stopped this happening before however
now
 works.

 Thanks for the help so far :)

 Alex

 Skywire






Re: Howto send ott files

2002-11-28 Thread Ritesh Shah



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=foopass=barto=mobilenoudh=%0B%05%04%15%8A%00%00%00%03%02%03%01text=%30%00%00%.."

lynx --dump "http://127.0.0.1:12013/cgi-bin/sendsms?user=foopass=barto=mobilenoudh=%0B%05%04%15%8A%00%00%00%03%02%03%02text=%7F%FF%FF%..."lynx 
--dump "http://127.0.0.1:12013/cgi-bin/sendsms?user=foopass=barto=mobilenoudh=%0B%05%04%15%8A%00%00%00%03%02%03%03text=%FF%FF%FF%FF%FF%FF%FF%FF%FF"
but when I amsending as onemsg. kannel 
splits them into 3 butI get in my mobile as message cannot be displayed 
here.

lynx --dump "http://127.0.0.1:12013/cgi-bin/sendsms?user=foopass=barto=mobilenoudh=%0B%05%04%15%8A%00%00text=%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 Iam 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=userpassword=passfrom=fromnoto=mobilenoudh=%06 
   
%05%04%15%8A%00%00text=%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% 
   

Re: MMS m-notification-ind and test_ppg

2002-11-28 Thread Aarno Syvänen
Why base64 ? Why not binary (without -e flag)?

Aarno

On Wednesday, November 27, 2002, at 06:20 PM, Alex Judd wrote:


Aarno/Paul/Ivor/Andreas/Marco

I've been reading everyones post and problems on the Kannel mailing  
list in
depth with MMS notification sending and so far are still having  
problems
which I can't resolve - therefore wondering if you anyone can shed any  
light
with a couple of problems that I'm having with it.

1. Tokenisation of the m-notification txt file

I'm currently doing this using test_ppg and the output I'm getting is  
very
different from your 'humanised' tokenizing. Using

../test/test_ppg -e base64 -a mms -c mms
http://localhost:8080/wappush?username=yyypassword=xxx;
m-notification-ind.txt pap.txt'

I get

2002-11-27 16:42:05 Sent SMS [SMSC:889567] [SVC:test] [ACT:]
[from:2199] [to:+447740305115] [flags:0:2:0:0:0]
[msg:128:06063ABE966C6F63616C686F73743A3830383000AF84436F6E74656E742D54 
72616
E736665722D456E636F64696E670062696E617279008D020146B480436F6E74656E742D 
54797
0653A206170706C69636174696F6E2F766E642E7761702E6D6D732D6D6573736167650A 
582D4
D6D732D4D6573736167652D547970653A206D]  
[udh:12:0B05040B8423F3060301]

2002-11-27 16:42:05 Sent SMS [SMSC:889567] [SVC:test] [ACT:]
[from:2199] [to:+447740305115] [flags:0:2:0:0:0]
[msg:128:72793A203235363B20747970653D72656C61746976650A582D4D6D732D436F 
6E746
56E742D4C6F636174696F6E3A20687474703A2F2F3231322E3131382E3234342E32352F 
6D6D7
3746573742F6D312E6D6D730A582D5741502D4170706C69636174696F6E2D49643A2078 
2D776
1702D6170706C69636174696F6E3A6D6D732E]  
[udh:12:0B05040B8423F3060303]

2002-11-27 16:42:05 Sent SMS [SMSC:889567] [SVC:test] [ACT:]
[from:2199] [to:+447740305115] [flags:0:2:0:0:0]
[msg:128:2D6E6F74696669636174696F6E2D696E640A582D4D6D732D5472616E736163 
74696
F6E2D49643A203132350A582D4D6D732D56657273696F6E3A20312E300A582D4D6D732D 
4D657
3736167652D436C6173733A20506572736F6E616C0A582D4D6D732D4D6573736167652D 
53697
A653A20343931300A582D4D6D732D45787069]  
[udh:12:0B05040B8423F3060302]

from

(m-notification-ind.txt)
X-Mms-Message-Type: m-notification-ind
X-Mms-Transaction-Id: 125
X-Mms-Version: 1.0
X-Mms-Message-Class: Personal
X-Mms-Message-Size: 4910
X-Mms-Expiry: 256; type=relative
X-Mms-Content-Location: http://212.118.244.25/mmstest/m1.mms
X-WAP-Application-Id: x-wap-application:mms.ua

and

(pap.txt)
?xml version=1.0?
!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP//EN
http://www.wapforum.org/DTD/pap_1.0.dtd;
pap
push-message push-id=[EMAIL PROTECTED]
progress-notes-requested=false
address  
address-value=[EMAIL PROTECTED]
/address
/push-message
/pap

whereas my understanding is that I should get 8c8298 etc.

The working m-notification-ind message I've been using to test is

http://212.118.244.25:13013/cgi-bin/ 
sendsms?username=xxxpassword=yyyto=+44
7740305115from=testudh=%06%05%04%0b%84%23%f0text=%0f%06%03%be%af%84% 
8c%82
%98%39%39%39%35%40%66%6c%79%65%72%6f%6e%65%2e%63%6f%6d%00%8d%90%8a%80%8 
e%01%
64%88%06%80%04%3d%64%8d%80%83http://212.118.244.25/mmstest/mms.wml%00

which at least initiates a call to my wap server to receive the  
content. The
3 part message I can 'hear' receiving the message but can't see any  
call to
the webserver. Also interestingly, my external server looks as though  
it
receives the multipart message in order of 0,2,1 however I'm guessing  
the
message will still be arranged correctly by Kannel.

2. Serving MMS content

I've configured Apache to serve .mms files with the content type
application/vnd.wap.mms-message (thanks Ivor) however the phone  
complains of
a formatting error when it recieves the message. I'm using Nokia  
encoded
binary messages here which should in theory work. Again, open for
suggestions as how to verify these messages are correct.

Thoughts are that I may need to use Kannel as a proxy to fetch the  
content
from the Apache server and serve it itself. Guessing that might be the  
SAR
issue that has been resolved that stopped this happening before  
however now
works.

Thanks for the help so far :)

Alex

Skywire