radius_load_caller_avps() from misc_radius module can help you.
Sorry can't find an example, but as I remember it's quite simple to use
this function.
Radius can insert next-hop to its Access-Accept reply and then you can
use it to send an INVITE to right destination:
$rd = $avp(s:next-hop); # or avp's name is equal to attribute name you
received in access-accept.
t_relay();
Hi again!
Need tips to some tricks with radius.
1. when receive sip message with REGISTER method - initiate auth with
radius. (Authentification)
- radius_www_authorize in auth_radius.so
2. when receive INVITE message - ask radius 'bout permissions and parse
answer: get permission and next hop IP. (Authorization)
???? misc_radius ????
3. when call
a) before call send Acct-Status-Type = Start with attributes.
b) after call send Acct-Status-Type = Stop with attributes.
(Accounting)
- acc_radius.so
1,3 - clear, I understand how it works.
2 - ? Kamailio must send request to radius server, get answer and route
call to server from "next-hop-IP" field. Can I make it?