Hi, i have tryed that but still the same, i even put preload => res_configman.so
The only way i could make it find the variables was to create a simlink of 
res_configman.so to libres_configman.so and link it in the Makefile. That way 
it works, however with asterisk there's no need for that.
How can we share a function from a res_xxx to a chan_yyy?

I have on res_xxx.c this

include res_xxx.h

struct cm {
        opbx_mutex_t          lock;
        enum cm_state        state;
        char               * modname;
        char               * filename;
        unsigned int         num_secs;
        const cm_section_t * secs;
        cm_matrix_t        * vals;
        cm_hash_t         ** hashes;
        cm_key_t          ** key_arrays;
        cm_cli_entry_t clis[3];
};

cm_t *cm_create (const char *modname, const cm_section_t *sections, int num)
{
        cm_t *cm;
        char   buf[128];
        ....
}




on rex_xxx.h i have this:

typedef struct cm    cm_t;


cm_t  *cm_create (const char *modname, const cm_section_t *sections, int num);

on chan_yyy i have:

include res_xxx.h

if (!(config = cm_create("gsm", config_sections, sizeof(config_sections) / 
sizeof(cm_section_t)))) {

And i get the error (cm_create symbol not found) 

Somehow this works on asterisk 1.2 and 1.4

Any hints anywone??

Regards

Carlos Galveias
IT. Manager
[email protected]


Rua do Ganges NÂș 6 R/C A
1990 - 356 Lisboa
Portugal

Contactos:
Tel:     +351 21 896 80 75
Tlm:    +351 91 438 82 39
Sip;     [email protected]
Mail:  [email protected]
Web:  www.siptel.pt





From: Konstantinos Arvanitis 
Sent: Thursday, February 24, 2011 2:10 PM
To: Developers Mailing List 
Subject: Re: [Callweaver-dev] symbol lookup issue


Make sure res_configman.so is loaded before chan_gsm, using 
load => res_configman.so
load => chan_gsm.so


in modules.conf.




--------------------------------------------------------------------------------


_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev


_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to