[PATCH] CIMD2 driver upgraded to smsconn api

2003-03-21 Thread Angel Fradejas



So, finally 
here it is. A first working version of the Nokia CIMD2 driver upgraded to the 
more convenient api SMSCConn*. I took Kalle Majorla's work on this issue as 
a starting point, then further improved it.
 
I have 
tested this with two providers, with every type of message I could think of 
(binary, ems, class 0, concatenated and so on) and works 
fine.
 
Also I've 
been playing around hard with connections and reconnections, dropping them by 
iptables, and also with the http interfaces stop-smsc and 
start-smsc.
 
Apart from 
the obvious API upgrade, I'd like to highlight some other features I added (some 
of them compatibility breakers):
 
1) Support 
for "our-hort" smsc config directive
 
2) Support 
for "our-port" smsc config directive
 
3) 
Harmonization of "my-number" config directive, instead of "sender-prefix", to 
make it consistent with other drivers, such as AT2, EMI2, SMASI and SMPP. 
(** COMPATIBILITY BREAKER **)
 
4) 
Interpretation of "keepalive" config directive in seconds instead of minutes, 
also by means of consistency with others drivers. It happens that one of my 
providers has a timeout to cut connections shorter than a minute. (** 
COMPATIBILITY BREAKER **)
 
5) Added 
support for parameter 069, Service Center Address, to avoid cludging log files 
with warnings and packet dumps. I also have a provider that sends this parameter 
with every MO.
 
6) 
Harmonization of log messages, with the format "CIMD2[smsc_id]: 
xxx", to ease identification of messages by 
connection.
 
Maybe some you can try it out and 
vote.
 
It would be 
nice to see this going into CVS for the upcoming 1.3.2 
release.
 
Cheers.
 
Angel FradejasMediafusión España, 
S.A.[EMAIL PROTECTED]www.mediafusion.esTel. +34 91 252 32 
00Fax +34 91 572 27 08 


cimd2_smscconn.diff
Description: Binary data


[RFC] new 'sms-service' transport type 'store'

2003-03-21 Thread Stipe Tolj
Hi list,

we came accross a demand that can be implemented in Kannel for various
other functional uses.

Assume you want to receive MOs via bearerbox and pass to smsbox, but
you don't want to handle them on-the-fly. So what you can do is push
them via 'get-url' to an HTTP server and store them application
internally. 

If you want to avoid this, we may provide a simple 'store' transport,
that stores the MO into a file of kannel.store file structure. Hence
If you want to re-queue those stored messages you simply stop
bearerbox, copy the contents of the store to kannel.store and they
will be re-routed to smsbox.

A config would look like this:

  group = sms-service
  accepted-smsc = "smsc_a;smsc_b"
  ...
  store = "/var/kannel/store/%i"

to store all MOs from smsc links 'smsc_a' and 'smsc_b' to
/var/kannel/store/smsc_a and /var/kannel/store/smsc_b.

I think this shouldn't be too hard to implement and would be very
usefull to have a re-queuing alternative.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
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: [PATCH] emi2 connection fix

2003-03-21 Thread Stipe Tolj
> Here's a fix against current CVS for the emi2 driver. I've tested it
> with primary and alternate host setups, dropping connections, and so
> on, and seems to work fine.
> 
> Commit please.

done

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
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: hexadecimal code

2003-03-21 Thread Stipe Tolj
> Does anybody know how to convert gif file or bitmap file into
> hexadecimal code?

this is *definetly* off-topic!

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
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



[PATCH] emi2 connection fix

2003-03-21 Thread Angel Fradejas



Here's a fix 
against current CVS for the emi2 driver. I've tested it with primary and 
alternate host setups, dropping connections, and so on, and seems to work 
fine.
 
Commit 
please.
 
Angel FradejasMediafusión España, 
S.A.[EMAIL PROTECTED]www.mediafusion.esTel. +34 91 252 32 
00Fax +34 91 572 27 08 


patch_emi2.diff
Description: Binary data


hexadecimal code

2003-03-21 Thread Bartosz Jozwiak



Hello,
 
Does anybody know how to convert gif file or bitmap 
file into
hexadecimal code?
 
 
Regards,
 
 
Bartosz JozwiakResearch & Development 
DepartmentCq-Link, GreenTonee-mail: [EMAIL PROTECTED]Office tel no.: +597 
433932/492065/464954private tel. no.: +597 8500569
 
http://www.cq-link.srhttp://www.greentone.com


RE: anyone tested the new 'reconnect-delay' with EMI2 links?!

2003-03-21 Thread Angel Fradejas
I've located the bug (sorry, my fault when isolating the patch) and fixed
it. I'm just trying it now over four EMI2 link, dropping the connection to
see if reconnection is ok and so on.

When finished I'll submit a patch against current cvs.

Angel Fradejas
Mediafusión España, S.A.
[EMAIL PROTECTED]
www.mediafusion.es
Tel. +34 91 252 32 00
Fax +34 91 572 27 08



-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de
Stipe Tolj
Enviado el: jueves 20 de marzo de 2003 16:15
Para: [EMAIL PROTECTED]
Asunto: anyone tested the new 'reconnect-delay' with EMI2 links?!


Hi list,

I just tried to restart our production server with a bunch of EMI/UCP
links and the new reconnect harmonized config, but *all* EMI2 links
failed to connect ;((

Anyone had the chance to test this? Seems something is wrong in here.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
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




[BUG] gw/wap_push_ppg.c/read_ppg_config()

2003-03-21 Thread Paul Keogh

 if (cfg == NULL)
 return USER_CONFIGURATION_NOT_ADDED;

 grp = cfg_get_single_group(cfg, octstr_imm("ppg"));
 if ((ppg_url = cfg_get(grp, octstr_imm("ppg-url"))) == NULL)

The code snippet above crashes if grp is NULL.

I suggest that the

 if (cfg == NULL)

is replaced with

 if (cfg == NULL || cfg_get_single_group(cfg, octstr_imm("ppg")) ==
NULL) {

(evaluation is left to right I think :-))

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: accept-x-kannel-headers

2003-03-21 Thread Stipe Tolj
> btw, should I write a patch for the current CVS ?

always ;)

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
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: accept-x-kannel-headers

2003-03-21 Thread Dziugas Baltrunas
I think it's possible :)

therefore i can't understand why the snip about accept-x-kannel-headers
has been removed from userguide?! :)

btw, should I write a patch for the current CVS ?

regards,
Dziugas Baltrunas

On Fri, 21 Mar 2003, Stipe Tolj wrote:

> > everything seems to work fine. but what about the userguide?
>
> can you provide a patch in unified format?!
>
> Stipe
>
> [EMAIL PROTECTED]
> ---
> Wapme Systems AG
>
> Vogelsanger Weg 80
> 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: accept-x-kannel-headers

2003-03-21 Thread Stipe Tolj
> everything seems to work fine. but what about the userguide?

can you provide a patch in unified format?!

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
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: accept-x-kannel-headers

2003-03-21 Thread Dziugas Baltrunas
sorry, seems like it's my mistake since i mixed up when restarting kannel
after changing configuration file.

everything seems to work fine. but what about the userguide?

regards,
Dziugas Baltrunas

On Fri, 21 Mar 2003, Dziugas Baltrunas wrote:

> Hi list,
>
> i'm using current CVS version of kannel. i would like to ask if
> accept-x-kannel-headers behaviour has changed. i have defined
> accept-x-kannel-headers as true in my sms-service, but kannel still
> reports a warning
>
> 2003-03-21 07:24:09 [5] WARNING: Tried to set UDH field, denied.
>
> and UDH is not being sent. futhermore, there is nothing about
> accept-x-kannel-headers in usergide of developement version
> (http://www.kannel.org/download/1.3.1/userguide-1.3.1/userguide.html)
>
> regards,
> Dziugas Baltrunas
>



accept-x-kannel-headers

2003-03-21 Thread Dziugas Baltrunas
Hi list,

i'm using current CVS version of kannel. i would like to ask if
accept-x-kannel-headers behaviour has changed. i have defined
accept-x-kannel-headers as true in my sms-service, but kannel still
reports a warning

2003-03-21 07:24:09 [5] WARNING: Tried to set UDH field, denied.

and UDH is not being sent. futhermore, there is nothing about
accept-x-kannel-headers in usergide of developement version
(http://www.kannel.org/download/1.3.1/userguide-1.3.1/userguide.html)

regards,
Dziugas Baltrunas