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.