AND ... *sigh*
sorry :(
in gwlib/cfg.def add to dlr-db group delete_dlrs:
SINGLE_GROUP(dlr-db,
OCTSTR(id)
OCTSTR(table)
OCTSTR(field-smsc)
OCTSTR(field-timestamp)
OCTSTR(field-source)
OCTSTR(field-destination)
OCTSTR(field-service)
OCTSTR(field-url)
OCTSTR(field-mask)
OCTSTR(field-status)
+ OCTSTR(delete-dlrs)
)
educational for me :-7
I think you can follow my - er - hacking process of thought here
James.
_THIS_ time
make check is good
running box without delete-dlrs is okay
running box with delete-dlrs = 0 is okay
running box with delete-dlrs = 1 is okay
sending sms without delete-dlrs is okay BUT not testing any more today (I forgot my
mobile!! DOH!)
On Tue, May 18, 2004 at 03:56:48PM +0100, James Coleman wrote:
> oops sorry :(
>
> who spotted the *ahem* deliberate error there?
> two deliberate errors!
> ohh alright not deliberate
>
> void dlr_init(Cfg* cfg)
> {
> CfgGroup *grp;
> + CfgGroup *dlrdbgrp;
>
> /* create the DLR mutex */
> dlr_mutex = mutex_create();
>
> /* check which DLR storage type we are using */
> grp = cfg_get_single_group(cfg, octstr_imm("core"));
> dlr_type = cfg_get(grp, octstr_imm("dlr-storage"));
>
> + dlrdbgrp = cfg_get_single_group(cfg, octstr_imm("dlr-db"));
> + if (!dlrdbgrp) delete_dlrs = 0;
> + else {
> + /* delete dlrs 1 true, 0 false */
> + cfg_get_integer(&delete_dlrs, dlrdbgrp, octstr_imm("delete-dlrs"));
> + /* -1 (parameter not specified - default false) */
> + if (delete_dlrs == -1) delete_dlrs = 0;
> + }
>
>
> I'm very silly sometimes sorry again! :(
>
> _this_ time make check works (.conf files without dlr-db okay with this)
>
> James.
--
http://web.tiscali.it/cedric/jacques_brel_show.html
http://www.thehelix.ie/2004_06_02_Jacques_Brel.html
June Wed/Thur 2/3, Jacques Brel - Ced & Stella
http://www.greenpeace.org/international_en/features/details?item_id=327510
Greenpeace tree-huggers indicted by U.S..
Brazilian mahogany barons curtailing free speech. Grrr,
The following statement is false.
The preceding statement is true. - Douglas Hofstadter
I, James row worse maji.
http://www.bcoleman.com my brother Bill Coleman
He's a bit good! Launching his debut CD right now.
software patents (coming soon to an EU near you) bad for users, for developers
good for monopolistic innovation stifling big business
http://swpat.ffii.org/
beware entering overwhelming twisty maze of political legalese