Hello,
I've noticed that 90% of my SIP traffic is REGISTER requests. I am trying to implement some sort of caching mechanism (which will inherently be faster than doing a RADIUS lookup on every REGISTER request) using exec and a perl script which does a lookup from a memory-cached file.
I'm using exec_msg() to call the perl script; however it is not behaving as I would expect.
Here's the code snippet from my SER config.
if (exec_msg("/usr/local/bin/check_register.pl")) { break; } else { if (!radius_www_authorize("")) {
I am just in preliminary testing stage so I have the perl script merely exiting with 0 status. exec documentation is not clear as to whether it uses the shell return codes to determine the exit status of exec_msg
If I am exit(0)ing from the perl script I would expect the if( to fail, not break and do the radius_www_authorize. Is that not correct?
Thanks for the help!
Regards, Daniel Corbe