[asterisk-dev] how to export symbols from app_ and chan_ objects?

Olle E Johansson oej at edvina.net
Mon Feb 20 10:02:05 MST 2006


20 feb 2006 kl. 12.36 skrev Edwin Groothuis:

> Greetings,
>
> I have the following problem:
>
>
> In chan_zap.c I have created a function which is used by a app_
> function (in this case, the counting of the number of active channels
> on a PRI. It will be used in a load-balancing function between two
> PRIs).
>
>
> Only problem is that the function in chan_zap.so doesn't get exported
> when it gets loaded. And AFAIK there is no other way of getting
> this information from a non-loadable-part of asterisk.
>
>
> Any suggestions?
>
Check the global section in modules.conf to solve this issue,

however, in the public version we usually create core interfaces for  
this kind of
solutions so we do not make modules depend on each other. That is why  
you
see modules registering for a lot of functions, like manager,  
switches, voicemail and
others.

/O



More information about the asterisk-dev mailing list