radius fields

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

radius fields

chamo
hello

i have upgraded openser 1.2 to opensips 1.4 and some fields are missing

configuration of radiusclient is same, where can be a problem ?

openser 1.2
        Acct-Status-Type = Stop
        Service-Type = SIP
        Sip-Response-Code = 200  
        Sip-Method = Bye
        Event-Timestamp = "Nov  5 2008 09:12:01 CET"
        Sip-From-Tag = "as09f9ef87"
        Sip-To-Tag = "8902F870-350"
        Acct-Session-Id = "17fa6f18187165155
<http://www.snapanumber.com/>[hidden email]"
        NAS-Port = 5060
        Acct-Delay-Time = 0
        NAS-IP-Address = xx.xx.xx.xx
        Client-IP-Address = xx.xx.xx.xx
        Acct-Unique-Session-Id = "c639ab7129c59361"
        Timestamp = 1225872721 <http://www.snapanumber.com/>
opensips 1.4
        Acct-Status-Type = Stop
        Service-Type = SIP
        Sip-Response-Code = 200
        Sip-Method = Bye
        User-Name = "0232661863 <http://www.snapanumber.com/>@xx.xx.xx.xx"
        Calling-Station-Id = "sip:[hidden email]"
        Called-Station-Id = "sip:[hidden email]"
        Sip-Translated-Request-URI = "sip:[hidden email]:5060"
        Acct-Session-Id = "[hidden email]"
        Sip-To-Tag = "76362398-24A3"
        Sip-From-Tag = "as73795363"
        Sip-CSeq = "103"
        NAS-Port = 5060
        Acct-Delay-Time = 0
        NAS-IP-Address = xx.xx.xx.xx
        Client-IP-Address = xx.xx.xx.xx
        Acct-Unique-Session-Id = "6b306b48de82a9b0"
        Timestamp = 1225881409 <http://www.snapanumber.com/>



       


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: radius fields

Bogdan-Andrei Iancu
Hi,

Starting with openser 1.3, the default set of accounted values was
reduced to the strictly necessary values. If you need some extra  values
to be accounted, use the radius extra accounting:
    http://www.opensips.org/html/docs/modules/1.4.x/acc.html#ACC-extra-id

if you have issues identifying how to get the missing values, just let
me know.

Regards,
Bogdan

chamo wrote:

> hello
>
> i have upgraded openser 1.2 to opensips 1.4 and some fields are missing
>
> configuration of radiusclient is same, where can be a problem ?
>
> openser 1.2
>         Acct-Status-Type = Stop
>         Service-Type = SIP
>         Sip-Response-Code = 200  
>         Sip-Method = Bye
>         Event-Timestamp = "Nov  5 2008 09:12:01 CET"
>         Sip-From-Tag = "as09f9ef87"
>         Sip-To-Tag = "8902F870-350"
>         Acct-Session-Id = "17fa6f18187165155
> <http://www.snapanumber.com/>[hidden email]"
>         NAS-Port = 5060
>         Acct-Delay-Time = 0
>         NAS-IP-Address = xx.xx.xx.xx
>         Client-IP-Address = xx.xx.xx.xx
>         Acct-Unique-Session-Id = "c639ab7129c59361"
>         Timestamp = 1225872721 <http://www.snapanumber.com/>
> opensips 1.4
>         Acct-Status-Type = Stop
>         Service-Type = SIP
>         Sip-Response-Code = 200
>         Sip-Method = Bye
>         User-Name = "0232661863 <http://www.snapanumber.com/>@xx.xx.xx.xx"
>         Calling-Station-Id = "sip:[hidden email]"
>         Called-Station-Id = "sip:[hidden email]"
>         Sip-Translated-Request-URI = "sip:[hidden email]:5060"
>         Acct-Session-Id = "[hidden email]"
>         Sip-To-Tag = "76362398-24A3"
>         Sip-From-Tag = "as73795363"
>         Sip-CSeq = "103"
>         NAS-Port = 5060
>         Acct-Delay-Time = 0
>         NAS-IP-Address = xx.xx.xx.xx
>         Client-IP-Address = xx.xx.xx.xx
>         Acct-Unique-Session-Id = "6b306b48de82a9b0"
>         Timestamp = 1225881409 <http://www.snapanumber.com/>
>
>
>
>        
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

radius fields

chamo
In reply to this post by chamo
well,
what i need are these fields for accounting (i do it from radius thru
cdrtool)
        User-Name = "[hidden email]"
        Calling-Station-Id = "sip:[hidden email]"
        Called-Station-Id = "sip:[hidden email]"
        Sip-Translated-Request-URI =
"sip:[hidden email]:5060"
i tried something like this
modparam("acc", "radius_extra", "User-Name=$fU")
but in radius i get only
User-Name = "62.176.161.30"

i use also logging in acc database on localhost, this works ok
modparam("acc","db_extra","sip_from=$fU;sip_to=$rU;sipip_from=$si;sipip_to=$Ri")

thanks




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: radius fields

Bogdan-Andrei Iancu
chamo wrote:

> well,
> what i need are these fields for accounting (i do it from radius thru
> cdrtool)
>         User-Name = "[hidden email]"
>         Calling-Station-Id = "sip:[hidden email]"
>         Called-Station-Id = "sip:[hidden email]"
>         Sip-Translated-Request-URI =
> "sip:[hidden email]:5060"
> i tried something like this
> modparam("acc", "radius_extra", "User-Name=$fU")
> but in radius i get only
> User-Name = "62.176.161.30"
>  
Use $fu the get the entire FROM URI.

Regards,
Bogdan

> i use also logging in acc database on localhost, this works ok
> modparam("acc","db_extra","sip_from=$fU;sip_to=$rU;sipip_from=$si;sipip_to=$Ri")
>
> thanks
>
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

radius fields

chamo
In reply to this post by chamo
i have
modparam("acc", "radius_extra", "User-Name=$tt; Called-Station-Id=$tu;
Calling-Station-Id=$fu; Sip-Translated-Request-URI=$du")
but  user-name and sip-translated-requests-uri aren't working

(fu and du variables are from manual)

Chamo





_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: radius fields

Bogdan-Andrei Iancu
use $fU for User-Name and $ru for Sip-Translated-Request-URI .

Regards,
Bogdan

chamo wrote:

> i have
> modparam("acc", "radius_extra", "User-Name=$tt; Called-Station-Id=$tu;
> Calling-Station-Id=$fu; Sip-Translated-Request-URI=$du")
> but  user-name and sip-translated-requests-uri aren't working
>
> (fu and du variables are from manual)
>
> Chamo
>
>
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: radius fields

Bogdan-Andrei Iancu
In reply to this post by Bogdan-Andrei Iancu
The syntax is correct - I just tested it with no problem.

Be careful with the var() as these variables are inherited in a process
(by all routes executed by a process) and not shared across the
transaction.  See    
http://www.opensips.org/index.php?n=Resources.DocsCoreVar
In what route are you setting the $var(a) ?

Regards,
Bogdan

chamo wrote:

> my needed syntax is 023211@192.168.1.1 (without sip:)
> $var(a) = $fU + "@" + $fd;    // on this line i am getting syntax error
> , in manula ist similar $var(a) = "sip:" + $au + "@" + $fd;
> modparam("acc", "radius_extra", "User-Name=$var(a);
> Called-Station-Id=$tu; Calling-Station-Id=$fu;
> Sip-Translated-Request-URI=$ru");
>
> thank
> Chamo
>
>  
>> / /use $fU for User-Name and $ru for Sip-Translated-Request-URI .
>> / /
>> / /Regards,
>> Bogdan
>>
>> chamo wrote:
>>    
>>> / i have
>>>      
> /> >/ modparam("acc", "radius_extra", "User-Name=$tt; Called-Station-Id=$tu;
> /> >/ Calling-Station-Id=$fu; Sip-Translated-Request-URI=$du")
> /> >/ but  user-name and sip-translated-requests-uri aren't working
> /> >/
> /> >/ (fu and du variables are from manual)
> /> >/ _______________________________________________
> /> >/ Users mailing list
> /> >/ Users at lists.opensips.org <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
> /> >/ http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> /
>
>
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users