[OpenSIPS-Users] radius accounting, Acct-Status-Type = 0

Miha miha at softnet.si
Wed Jan 18 02:27:29 EST 2017


Tnx:)

working!


br
miha



On 17/01/2017 12:30, Ionut Ionita wrote:
>     Also if you'll check latest commit in master[0], modified radius 
> code to throw error and not start if any attribute/
> value/vendor is not found in order to not get to similar situations in 
> the future. Backported the commit back to 2.1.
>
> [0] 
> https://github.com/OpenSIPS/opensips/commit/75573b41c5453b495a3fa9ad1bdf2df3ee0f4c2f
>
> Regards,
>
> Ionut Ionita
> OpenSIPS Developer
> On 01/17/2017 12:06 PM, Ionut Ionita wrote:
>> Hello again,
>>
>>     Found a fix for your problem. You should use *dictionary.rfc2866* 
>> (freeradius has it). This dictionary has value defined
>> for *Failed*.
>>
>> VALUE›  Acct-Status-Type›   ›   Start›  ›   › 1
>> VALUE›  Acct-Status-Type›   ›   Stop›   ›   ›   2
>> VALUE›  Acct-Status-Type›   ›   Alive›  ›   ›   3   # dup
>> VALUE›  Acct-Status-Type›   ›   Interim-Update› ›   3
>> VALUE›  Acct-Status-Type›   ›   Accounting-On›  ›   7
>> VALUE›  Acct-Status-Type›   ›   Accounting-Off› ›   8
>> VALUE›  Acct-Status-Type›   ›   Failed› ›   ›   15
>>
>>
>> Regards,
>>
>> Ionut Ionita
>> OpenSIPS Developer
>> On 01/17/2017 10:33 AM, Miha wrote:
>>> ok, then i will use this value and on radius side i will catch it 
>>> and set to internally to STOP if this is only soluton.
>>>
>>> The thing is when 486/busy comes, opensips sends this broken radius 
>>> accouting request and radius server does not replay to it and that 
>>> is why the opensips waits almost 40s to send back ACK on 486.
>>>
>>>
>>> Or is there any other solution?
>>>
>>>
>>> br
>>> miha
>>>
>>> On 17/01/2017 09:27, Ionut Ionita wrote:
>>>> No, thank you it's fine now. That value was for testing purposes 
>>>> only, you can remove it now.
>>>> OpenSIPS it's using *Failed* value for *Acct-Status-Type* which is 
>>>> not defined anywhere (nor in
>>>> our dictionary, nor in any RFC or somewhere else). Not finding that 
>>>> value results in having *0
>>>> *for *Acct-Status-Type*, the value you were seeing before. Will let 
>>>> you know when we'll decide
>>>> how we should fix this issue.
>>>>
>>>> Regards,
>>>> Ionut Ionita
>>>> OpenSIPS Developer
>>>> On 01/17/2017 09:38 AM, Miha wrote:
>>>>> Hi Ionut
>>>>>
>>>>> do I need on bouth sides or opensips side?
>>>>>
>>>>> I can see that now i get:  Acct-Status-Type = Modem-Start in radius.
>>>>>
>>>>>
>>>>> br
>>>>> miha
>>>>>
>>>>> On 16/01/2017 16:45, Ionut Ionita wrote:
>>>>>>
>>>>>> Hi Miha,
>>>>>>
>>>>>>     Can you set in your radius dictionary file where the 
>>>>>> *Acct-Status-Type* values are defined
>>>>>>
>>>>>> VALUE    Acct-Status-Type    Start›  ›   ›   1
>>>>>> VALUE    Acct-Status-Type    Stop›   ›   ›   2
>>>>>> VALUE    Acct-Status-Type    Alive›  ›   ›   3
>>>>>> VALUE    Acct-Status-Type    Accounting-On›  › 7
>>>>>> VALUE    Acct-Status-Type    Accounting-Off› ›   8
>>>>>>
>>>>>> the following line, just below the others:
>>>>>>
>>>>>> VALUE    Acct-Status-Type    Failed        4
>>>>>>
>>>>>> and then check if you'll see *4 *instead of *0* for 
>>>>>> *Acct-Status-Type*?
>>>>>>
>>>>>> It seems that opensips it's using a value that's not in the 
>>>>>> radius dictionary, *Failed* value.
>>>>>>
>>>>>>
>>>>>> Ionut Ionita
>>>>>> OpenSIPS Developer
>>>>>> On 01/16/2017 04:05 PM, Miha wrote:
>>>>>>> Hello
>>>>>>>
>>>>>>> how can i define that for 486/busy opensips will send 
>>>>>>> Acct-Status-Type = 2 to radius server?
>>>>>>> Acct-Status-Type = 0 it not like standard thing and it should 
>>>>>>> not be send :)
>>>>>>>
>>>>>>>
>>>>>>> I imported dictinary.opensips and .sip.
>>>>>>>
>>>>>>>
>>>>>>> tnx
>>>>>>> miha
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> Users at lists.opensips.org
>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users at lists.opensips.org
>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170118/45639608/attachment.html>


More information about the Users mailing list