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

Marc Haisenko haisenko at comdasys.com
Mon Feb 20 10:23:52 MST 2006


On Monday 20 February 2006 12:36, Edwin Groothuis wrote:
> 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?

Step 1: remove the "static" in front of the function you'd like to get 
exported.

Step 2: rename chan_zap.so to res_zap.so, adapt the modules.conf to the new 
name.

Step 3: Profit !

> Edwin

C'ya,
	Marc

-- 
Marc Haisenko
Comdasys AG

Rüdesheimer Straße 7
D-80686 München
Tel:   +49 (0)89 - 548 43 33 0
Fax:   +49 (0)89 - 548 43 33 29
e-mail: haisenko at comdasys.com
http://www.comdasys.com



More information about the asterisk-dev mailing list