[asterisk-dev] Module name

Olle E. Johansson oej at edvina.net
Wed Dec 22 16:59:14 UTC 2010


Are there any well-known or previously unknown dangers with having a module reading it's own module name from inside the module?

I want res_danger.so to know that it was loaded as res_danger.so. If not, I want to know which name that was used. Found out that I can read the module information, but have no clue if I put any code in danger there and can't find any previous examples of reading the resource name outside of the module handler itself.

/O


More information about the asterisk-dev mailing list