[asterisk-dev] how to export symbols from app_ and chan_ objects?
haisenko at comdasys.com
Mon Feb 20 10:23:52 MST 2006
On Monday 20 February 2006 12:36, Edwin Groothuis wrote:
> 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
> 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?
Step 1: remove the "static" in front of the function you'd like to get
Step 2: rename chan_zap.so to res_zap.so, adapt the modules.conf to the new
Step 3: Profit !
Rüdesheimer Straße 7
Tel: +49 (0)89 - 548 43 33 0
Fax: +49 (0)89 - 548 43 33 29
e-mail: haisenko at comdasys.com
More information about the asterisk-dev