Hi everybody and sorry for posting this again to the list. I don't want you guys to think that I'm DEMANDING FOR SUPPORT (we all have just had several discusions about that) but my experience tell me that if a posted question is easy enough, it is answered immediatly, or it will never be answerd!!!(people forget it...) Mine are two very simple questions about modules.conf. It's only a problem of concept, perhaps a wrong idea, only that. I please ask you to answer, because for me it's important to have everything more or less clear..... THANKS VERY MUCH in advance, and here they are, my two little questions... 1)As I have seen, to make Asterisk load chan_capi.so and chan_modem.so you must have: load=>chan_capi.so and load => chan_modem.so in your modules.conf. But I had understood some time ago that setting autoload => yes made Asterisk load every module that was necesary. Then, why must I load these channels explicitely? 2)For what is used the section [global]? thanks a lot one more time cmayor ___________________________________________________ Yahoo! Messenger - Nueva versi?n GRATIS Super Webcam, voz, caritas animadas, y m?s... http://messenger.yahoo.es
Il mer, 2003-07-09 alle 09:31, carlos del mayor ha scritto:> THANKS VERY MUCH in advance, and here they are, my two > little questions...Well, here are my two little answers, I hope they are not too wildly incorrect :)> 1)As I have seen, to make Asterisk load chan_capi.so > and chan_modem.so you must have: load=>chan_capi.so > and load => chan_modem.so in your modules.conf. But I > had understood some time ago that setting autoload => > yes made Asterisk load every module that was necesary. > Then, why must I load these channels explicitely?Because that way they are loaded first. Some other modules use symbols that are exported by those modules, and if those other modules got loaded first, they wouldn't work.> 2)For what is used the section [global]?My sample cfg says: ; Module names listed in "global" section will have symbols globally ; exported to modules loaded after them. So it is needed to get the aforementioned result! Bye, -- E.
> 1)As I have seen, to make Asterisk load chan_capi.so > and chan_modem.so you must have: load=>chan_capi.so > and load => chan_modem.so in your modules.conf. But I > had understood some time ago that setting autoload => > yes made Asterisk load every module that was necesary. > Then, why must I load these channels explicitely?I can't speak for chan_capi, but in the case of chan_modem, it has to be explicitly listed because explicitly listed modules come first, and chan_modem will choose which modules it wants to load (it's some ugly historical baggage).> 2)For what is used the section [global]?Unfortunately, I don't know of any way to, in the module ".so" file itself, tell the linker to make its symbols global when it loads it. This causes Asterisk to specifically request the symbols be made global (and thus available to other modules which are loaded later). Mark