Mainly I’m not writing a new module, I’m modifying mod_spy to allow spying current active called without providing uuid, mainly I did the below:1-Creat new hash map to contain all bridged calls(userid@domain as key, and UUID as value).
2-when I receive any spy request I query the hash map, using userid@domain, if I find a uuid and add it as if I get it in command “userspy userid@domain uuid “
3-then I continue.
The point that I try to allocate the memory on session level and once the call get hangup I remove it from the hash map, however this doesn’t work as I expect only one hangup request comes and accordingly one entry from hasp being removed.
I attached here the code for your review