At modules in sourceforge

2001-12-07 Thread Aarno Syvänen


Hi Matthew,

Downloaded sourceforge version. It has two at modules. Does
at2 contain your fixes enabling two simultaneous MO messages ?

Is there a newer version somewhere?

Aarno




Re: Heads up: SSL client code to verify SSL server certificates

2001-12-07 Thread Stipe Tolj

 I'm going to commit a patch that adds certificate verification
 to the Kannel SSL client code. Previously all SSL client connections
 were doen with verification disabled. This way an encrypted connection
 was established but the identity of the server was not proven.
 
 Please review this code and give me some feedback.

I would suggest to post the patch to the devel@ list, so those who are
interested and feel responsible have a change to view at the code
before commiting to cvs.

The one who send the patch (if having cvs write permissions) should at
least wait for some time to get the heads up counted. I would suggest
the voting structure:

-1 : no way, not acceptable
0 : don't know, I'm not the showstopper
+1 : yep, that looks ok, go commit

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




RE: Heads up: SSL client code to verify SSL server certificates

2001-12-07 Thread Jörg Pommnitz

Sorry if I stepped on some toes. I did not consider the
changes to be THAT intrusive. They do not change the structure
of the code, they just add a new feature. I took care
not to change the behaviour of the system when the new
configuration option is not set.

I'm willing to back the changes out if you oppose them.
Do you?

Regards
  Jörg




Re: Heads up: SSL client code to verify SSL server certificates

2001-12-07 Thread Stipe Tolj

 Sorry if I stepped on some toes. I did not consider the
 changes to be THAT intrusive. They do not change the structure
 of the code, they just add a new feature. I took care
 not to change the behaviour of the system when the new
 configuration option is not set.
 
 I'm willing to back the changes out if you oppose them.
 Do you?

Nono, Jörg, your fine with me.

I just wanted to note that it should be done on the voting scheme in
general. It hasn't to be on every single change, especially when
routined contributers like you know what they are doing and know that
they don't create any inconsistency or trouble to others :))


Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




Re: Heads up: SSL client code to verify SSL server certificates

2001-12-07 Thread Stipe Tolj

 Sorry if I stepped on some toes. I did not consider the
 changes to be THAT intrusive. They do not change the structure
 of the code, they just add a new feature. I took care
 not to change the behaviour of the system when the new
 configuration option is not set.
 
 I'm willing to back the changes out if you oppose them.
 Do you?
 
 I agree on stipe's voting idea but only for drastic changes.
 bugfixes and small modifications should be rolled out. After all,
 this is a development CVS.

yep, of course, same opinion -- it seems I didn't make it as clear as
you Andreas.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




Re: Heads up: SSL client code to verify SSL server certificates

2001-12-07 Thread Stipe Tolj

BTW, the patch looks good!

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




Re: Typo in at2

2001-12-07 Thread Stipe Tolj

 there's a typo in the modem definitions for at2, diff (smsc_at2.c) follows:
 
 diff -U1 -r1.14 smsc_at2.c
 --- smsc_at2.c  2001/11/14 17:17:45 1.14
 +++ smsc_at2.c  2001/12/06 13:51:28
 @@ -74,3 +74,3 @@
  { falcom,AT+IFC=2,2, 9600  ,
 AT+CNMI=1,2,0,0,0,  Falcom,   NULL,   0, 0, 1, 0, 0   },
 -{ ericcson,  AT+IFC=2,2, 9600  , AT+CNMI=3,2,0,0,
 R520m,NULL,   0, 0, 1, 1, 1   }
 +{ ericsson,  AT+IFC=2,2, 9600  , AT+CNMI=3,2,0,0,
 R520m,NULL,   0, 0, 1, 1, 1   }
  };

typo has been fixed in cvs, thanks a lot!

BTW, we would appritiate to attach diffs to the mail, so the long
lines don't get wrapped. Thanks.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




Ericsson phones supporting WAP bookmarks

2001-12-07 Thread Aarno Syvänen

Hi List  Stipe,

Started building support for client provisioning. Do you
know what Ericsson phones support WAP bookmarks ?

Aarno




Re: Ericsson phones supporting WAP bookmarks

2001-12-07 Thread Aarno Syvänen

Paul Keogh wrote:
 
 
  Started building support for client provisioning. Do you
  know what Ericsson phones support WAP bookmarks ?
 
 
 R320, R380 and R520 as far as I recall.
 
 Do you mean WAP 2.0 client provisioning or Ericsson proprietary ?

Mainly WAP 2.0, but Ericsson proprietary would bo of some interest, 
too.




RE: Ericsson phones supporting WAP bookmarks

2001-12-07 Thread Paul Keogh

   Started building support for client provisioning. Do you
   know what Ericsson phones support WAP bookmarks ?
  
  
  R320, R380 and R520 as far as I recall.
  
  Do you mean WAP 2.0 client provisioning or Ericsson proprietary ?
 
 Mainly WAP 2.0, but Ericsson proprietary would bo of some interest, 
 too.

All the listed ones above are not WAP 2.0 compliant and use the proprietary
format. In fact, the Ericsson format is exactly the same as the Nokia one,
I think it may have been a joint effort. You won't be able to easily
reuse much of this work for 2.0 - it implies an architecture, a bootstrap
model and the content is very different too. 

Anybody know of any handsets (current or planned) claiming WAP 2.0 client
provisioning support ?





Re: Ericsson phones supporting WAP bookmarks

2001-12-07 Thread Stipe Tolj

   Started building support for client provisioning. Do you
   know what Ericsson phones support WAP bookmarks ?
  
 
  R320, R380 and R520 as far as I recall.
 
  Do you mean WAP 2.0 client provisioning or Ericsson proprietary ?
 
 Mainly WAP 2.0, but Ericsson proprietary would bo of some interest,
 too.

the Nokia and Ericsson proprietary has been included at least for WAP
OTA (whole) configuration settings. It would be easy to add a function
that sends only bookmarks.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are




Kannel and http://wap.yahoo.de

2001-12-07 Thread Jörg Pommnitz

Hi List,
Kannel has trouble to reach the URL mentioned in the Subject.
The first culprit is, that in wap-appl.c the follow parameter
to http_start_request is zero. This way Kannel does not follow
redirects. Is there any reason not to change this to 1?

Even with this change in place it still fails, but at least it fails
in the same way the Nokia toolkit does when trying to reach the site
through HTTP.

Regards
  Jörg




help

2001-12-07 Thread LOGANATHAN


Dear friends,

   This is Loganathan. i am working on sms . i need some help from you.
now i am sending sms to one mobile. at that time the sms server has some
problem(means shutdown,.. etc).
my message where it will be store, is that message reach to that mobile
no.. if anybaby knows pls mail me .


kind regards
Loganathan.B





REF- USSD

2001-12-07 Thread Stephen Rothwell



Hi all, 

I am looking at the use of USSD as a bearer for wap 
- faster than SMS. 

Cant quite work out though if there is a delivery 
confirmation. So I have two questions I think

1. If roaming / or at any time - can I always 
retrieve a delivery confirmation of a SMS from an SMSC (even if the phone is 
abroad)

2. If I use USSD abroad the user experience will 
alway be the same as if the user was on home netwrok but is there a delivery 
confirmation I can retrieve for USSD.

As I am sure you'll appreciate this has a 
significant effect on any sort of billing models I may try

Many thanks for your help

Steve




at2: +CSMS detection broken, fix attached, new init string forericsson

2001-12-07 Thread Bob Pepin

Hi,
while trying to setup at2, I had to fix 2 more bugs. The first one is that 
at2_init_device uses octstr_case_compare as comparison function in 
list_search, which behaves like strcmp in that it return 0 if the strings 
match, which is exactly the opposite of what list_search expects. So it 
just returns the first thing it finds that doesn't match.

I also had to change the init string for ericssons, since the default 
+CNMI=3,2,0,0 didn't work neither for R320m nor for R520m.
It looks like they both don't support setting mt to 2.
Diff attached.


Index: 
smsc_at2.c===RCS file: 
/home/cvs/gateway/gw/smsc_at2.c,vretrieving revision 1.15diff -B -u -r1.15 
smsc_at2.c--- smsc_at2.c   2001/12/07 10:51:54 1.15+++ smsc_at2.c  
2001/12/07 12:23:56@@ -72,7 +72,7 @@ { siemens,   AT\\Q3, 19200 , 
AT+CNMI=1,2,0,0,0,  SIEMENS,  M20,  0, 1, 1, 1, 1   }, { nokiaphone,  
AT+IFC=2,2, 9600  , AT+CNMI=1,2,0,0,0,  NokiaPhone ,  NULL,   0, 1, 1, 1, 1  
 }, { falcom,  AT+IFC=2,2, 9600  , AT+CNMI=1,2,0,0,0,  
Falcom,   NULL,   0, 0, 1, 0, 0   },-{ ericsson,AT+IFC=2,2, 9600 
 , AT+CNMI=3,2,0,0,R520m,NULL,   0, 0, 1, 1, 1   }+{ ericsson,   
  AT+IFC=2,2, 9600  , AT+CNMI=3,3,0,0,R520m,NULL,   0, 0, 1, 1, 
1   } };  /* maximum data to attempt to read in one go */@@ -489,6 +489,13 @@ }  +/* 
like octstr_case_compare, but return 1 when the strings match, 0 otherwise+ * Used 
later in list_search */+int at2_octstr_case_compare(Octstr *os1, Octstr *os2)+{+
return !(octstr_case_compare(os1, os2));+}+ 
/** ** 
at2_init_device ** initializes the device after being opened@@ -591,7 +597,7 @@  } 
  vals = octstr_split(ts, octstr_imm(,));   octstr_destroy(ts);-ts = 
list_search(vals, octstr_imm(1),(void *) octstr_case_compare);+  ts = 
list_search(vals, octstr_imm(1),(void *) at2_octstr_case_compare);   if(ts)  
privdata-phase2plus = 1;   list_destroy(vals,(void *) at2_octstr_destroy);


Re: charset_init()

2001-12-07 Thread Tuomas Luttinen

Paul Keogh wrote:

 This function leaks memory.
 
 I think it needs to be matched with something like;
 
 void charset_shutdown ()
 {
   xmlCleanupEncodingAliases ();
 }
 
 Because
 
 * This is the way all other _init/_shutdown pairs work
 * You never know who might call charset_init() from and when.

H, true. I added the function and a call to it in the gwlib_shutdown.

PS. What has happened to the checks, they all seem to fail now?


-- 
Tuomas Luttinen
 Application Developer -- Reach U
 **





RE: Heads up: SSL client code to verify SSL server certificates

2001-12-07 Thread Jörg Pommnitz

I just commited a fix for this problem. The code was incorrect
in multiple ways:

1. The SSL error queue for the thread might not have been empty,
   so incorrect error codes might have been handled.
   FIX: call ERR_clear_error() before calling SSL_connect

2. SSL_ERROR_WANT_READ and SSL_ERROR_WANT_WRITE was not handled
   at all. 
   FIX: I overcame this problem by making the socket blocking
   while calling SSL_connect. This should not be a problem since
   this function calls conn_open_tcp which might block, too.

3. In case of an error conn_destroy might have been called with a
   half initialized Connection. This might cause a crash when the 
   ssl_mutex was still NULL.
   FIX: make sure the mutex is created before any error handling.

I suspect 1.) might be true for other SSL I/O calls as well. This
should be audited.

Regards
  Jörg

-Original Message-
From: Jörg Pommnitz
To: 'Stipe Tolj '
Cc: ''[EMAIL PROTECTED]' '
Sent: 12/7/01 12:07 PM
Subject: RE: Heads up: SSL client code to verify SSL server certificates

Thanks, however I just discovered some misbehaviour that I'm unsure
whom to blame for:
If a certificate gets rejected than this currently not detected in

Connection *conn_open_ssl(Octstr *host, int port, Octstr *certkeyfile,
  Octstr *our_host)

and I don't understand why. HTTP requests over a SSL connection later
fail when they try to write something. I suspect this never came up
until now because the SSL negotiations always succeeded.

Any ideas?

Regards
  Jörg




RE: charset_init()

2001-12-07 Thread Jörg Pommnitz

  -Original Message-
  From: Tuomas Luttinen
  To: Kannel Development List (E-mail)
  Sent: 12/7/01 2:57 PM
  Subject: Re: charset_init()
  
  PS. What has happened to the checks, they all seem to fail now?

They report a failure because they do not expect the SSL debug output.
Maybe this should be removed.

Regards
  Jörg




Re: charset_init()

2001-12-07 Thread Aarno Syvänen

Hi,

Tuomas Luttinen wrote:

 PS. What has happened to the checks, they all seem to fail now?

Make check presumes logging only when error. Are there pure debug
statements
in check.log ?

Aarno




SMPP ton and npi in PDU

2001-12-07 Thread Ronan Derby

Folks,

Just wondering is there any way of easily setting the ton and npi
values in the SMPP bind_transmiter, bind_receiver, submit_sm and
deliver_sm without having to go editing the code?

I don't think I have the latest CVS version of kannel but its only
a week or two behind the CVS version.

Regards,
Ronan.