[OpenSIPS-Users] aaa_radius problem with custom Attributes in radius with opensips

russellwilliams at hotmail.com russellwilliams at hotmail.com
Tue Apr 20 03:59:59 CEST 2010


HI
    I am somewhat new to opensips . I really need help.
I am using opensips ver 1.6.0
I have radiusclient-ng ver 0.5.6
I have Radiator ver 4.2
I am running CentOS 4.6

in my opensips.cfg 
------------------------------
-------------------------------
modparam("aaa_radius","sets',"set1 = (\
User-Name=$rU, \
Sip-Translated-Request-URI=$avp(i:107), \
Sip-Source-IP-Address=$avp(i:108), \
CALL-DIRECTION=$avp(i:3200), \
Sip-Req-URI=$rd, \
Sip-Uri-User-$fU, \
Called-Station-Id=$tU, \
Calling-Station-Id=$fU \
)")
-----------------------------------
later in route logic of opensips.cfg
---------------------------------
-----------------------------------
route[3] #the route that gets all calls passed to it.
{
    if(is_direction("downstream")) {
        avp_printf("$avp(I:108)","h323-remote-ip-address=$si");
        avp_printf("$avp(I:3200)","h323-call-origin=answer");
    }
    if(is_direction("upstream")) {
        avp_printf("$avp(I:108)","h323-remote-ip-address=$si");
        avp_printf("$avp(I:3200)","h323-call-origin=originate");
    }
    radius_send_acct("set1");
}
-------------------------------------
in my custom dictionary
------------------------------------
-----------------------------------
ATTRIBUTE    CALL-DIRECTION    3200    string

#####################################

both my Radiator4.2 and radiusclient point to the same dictionary

when I look into detail files for radius the CALL-DIRECTION attribute is not there 

any help is much appreciated.

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100419/bcc4d1b1/attachment.htm 


More information about the Users mailing list