-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Good afternoon, I'm trying to use the radius_does_uri_exist() function to check if the user exist before forwarding it to voicemail when it's not enable. I'm using radius AAA and the radius_does_uri_exist() seems to fail.. Any idea how to solve it?
Thanks
# -- uri_radius paramaters -- modparam("uri_radius", "radius_config", "/etc/radiusclient-ng/radiusclient.conf") modparam("uri_radius", "service_type", 11) # Radius service type used in radius_does_uri_exist check.
....... if (!lookup("location")) { if (radius_does_uri_exist()) { # Will Redirect to voicemail when fixed sl_send_reply("480", "Temporarily Unaivailable - Will Redirect To Voicemail"); exit; }; xlog("L_DBG", "ACC RADIUS: 404 NOT FOUND FOR $si \r\n"); sl_send_reply("404", "Not Found"); exit;
.....
When I'm trying to call aeron which is not connected but exists, I have a 404 not found whereas I should have a 480...
root@krusty:[~L/freeradius]# tail -f radius.log Mon Jan 14 16:08:18 2008 : Auth: Login incorrect: [aeron@sip.bob.net/<no User-Password attribute>] (from client private port 0)