[OpenSER-Users] radius_does_uri_exist

Marc LEURENT lftsy at free.fr
Mon Jan 14 16:19:17 CET 2008


-----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 at krusty:[~L/freeradius]# tail -f radius.log
Mon Jan 14 16:08:18 2008 : Auth: Login incorrect:
[aeron at sip.bob.net/<no User-Password attribute>] (from client private
port 0)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHi311N4+o+2LtdFwRAgGNAKC4xB0R5mHjgZ0zNKCaEEcqCgCUaQCdG+p0
4KoP/SuAUHJ8u6GFnaOTLYw=
=OXcY
-----END PGP SIGNATURE-----




More information about the sr-users mailing list