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?
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.
- when receive sip message with REGISTER method - initiate auth with
radius. (Authentification)
- radius_www_authorize in auth_radius.so
- when receive INVITE message - ask radius 'bout permissions and parse
answer: get permission and next hop IP. (Authorization)
???? misc_radius ????
- 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?
В Tue, 23 Apr 2013 15:35:42 +0300 Vitaliy Aleksandrov vitalik.voip@gmail.com пишет:
$rd = $avp(s:next-hop);
it not work $avp(s:next-hop) in new misc_radius. need SIP-AV attributes if i understand correctly.