[Serusers] Question about radius_proxy_authorize()

Ricardo Martinez rmartinez at redvoiss.net
Fri Oct 8 18:39:15 CEST 2004


Hello.
	I have a question regarding to the authorization of a call via
radius.  Is there a way to forward the INVITE to a mediaserver, for example
Asterisk and this play a message for the unauthorized request?.  For example
: "You don't have permission to make this call", this forward message is
depending on the answer from the Radius Server.

                if (method=="INVITE" && search("^From:
<sip:.*@mydomain.com>")) {
                        if ( !radius_proxy_authorize("")) {
                                proxy_challenge("", "1");
                                log (1, "LOG: Llamada no AUTORIZADA\n");
                                break;
                        };
                };      

Is there a way?

Thanks in advance

Best Regards

Ricardo Martnez.






More information about the sr-users mailing list