RE: Potential problem with dlr-storage in core group

"Alex Judd" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Skywire
Message-ID <[email protected]>
Thanks Alex - yes you're right - the --with-mysql and --with-mysql-directory
configuration parameters fixed the issue.

Interestingly though I couldn't see any if/defs in the code to stop the
check being valid as it was reporting in the tests?

    /*
     * assume we are using internal memory in case no directive
     * has been specified, warn the user anyway
     */
    if (dlr_type == NULL) {
        dlr_type = octstr_imm("internal");
        warning(0, "DLR: using default 'internal' for storage type.");
    }

    /* call the sub-init routine */
    if (octstr_compare(dlr_type, octstr_imm("mysql")) == 0) {
        handles = dlr_init_mysql(cfg);
    } else if (octstr_compare(dlr_type, octstr_imm("sdb")) == 0) {
        handles = dlr_init_sdb(cfg);
    } else if (octstr_compare(dlr_type, octstr_imm("oracle")) == 0) {
        handles = dlr_init_oracle(cfg);
    } else if (octstr_compare(dlr_type, octstr_imm("internal")) == 0) {
        handles = dlr_init_mem(cfg);
    } else if (octstr_compare(dlr_type, octstr_imm("pgsql")) == 0) {
        handles = dlr_init_pgsql(cfg);
    }

Kindest regards

Alex

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Alexander Malysh
Sent: 01 February 2005 14:14
To: [email protected]
Subject: Re: Potential problem with dlr-storage in core group

hi,

did you compile with mysql support?

Alex Judd wrote:

> Hi everyone
> 
>  
> 
> We're setting up DLR redirection into mySQL using the dlr-storage
> parameter in the core group, and it would appear that the octstr_compare
> in the dlr.c is not behaving as it should do.
> 
>  
> 
> Three basic tests.
> 
>  
> 
> 1. Setup for internal (works)
> 
>  
> 
> [config]
> 
> dlr-storage = "internal"
> 
>  
> 
> [logs]
> 
> 2005-01-23 12:45:07 [28122] [0] INFO: Debug_lvl = 1, log_file = <none>,
> log_lvl = 0
> 
> 2005-01-23 12:45:07 [28122] [0] INFO: DLR using storage type: internal
> 
> 2005-01-23 12:45:07 [28122] [0] INFO: Added logfile etc.
> 
>  
> 
> 2. Setup for mysql (fails)
> 
>  
> 
> [config]
> 
> dlr-storage = "mysql"
> 
>  
> 
> [logs]
> 
> 2005-01-23 12:44:27 [27827] [0] INFO: Debug_lvl = 1, log_file = <none>,
> log_lvl = 0
> 
> 2005-01-23 12:44:27 [27827] [0] PANIC: DLR: storage type 'mysql' is not
> supported!
> 
>  
> 
> 3. Setup for junk test (fails)
> 
>  
> 
> [config]
> 
> dlr-storage = "jungle"
> 
>  
> 
> [logs]
> 
> 2005-01-23 12:43:42 [27682] [0] INFO: Debug_lvl = 1, log_file = <none>,
> log_lvl = 0
> 
> 2005-01-23 12:43:42 [27682] [0] PANIC: DLR: storage type 'jungle' is not
> supported!
> 
>  
> 
> Anyone else seen this or worked around it?
> 
>  
> 
> Regards
> 
>  
> 
> Alex Judd

-- 
Thanks,
Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.