ssue with Acct-Status-Type
Hello i need a little help. I am getting in Acct-Status-Type = 0 and due to this "0" i get this error: softswitch_rs: EXPAND %{tolower:type.%{Acct-Status-Type}.query} (39) softswitch_rs: --> type.0.query No such configuration item .type.0.query Reference is define like this: reference = "%{tolower:type.%{Acct-Status-Type}.query} How can i set in default (sites-available) that if Acct-Status-Type = 0 i set it to Stop so that the same confg will be like for "Stop". Tnx Miha
Hi,
How can i set in default (sites-available) that if Acct-Status-Type = 0 i set it to Stop so that the same confg will be like for "Stop".
at the start of the accounting section, something like, if(%{Acct-Status-Type} == 0) { update control { %{Acct-Status-Type} := Stop } } alan
H Alan tnx for help! i tried but getting: /usr/local/etc/raddb/sites-enabled/default[615]: Invalid expansion: "Stop" i tried with "" and without but the same. tnx miha On 16/01/2017 12:03, A.L.M.Buxey@lboro.ac.uk wrote:
Hi,
How can i set in default (sites-available) that if Acct-Status-Type = 0 i set it to Stop so that the same confg will be like for "Stop". at the start of the accounting section, something like,
if(%{Acct-Status-Type} == 0) { update control { %{Acct-Status-Type} := Stop } }
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
i tried with "" and without but the same.
its non paid quick advise, i wouldnt rely on my quickly typed pseudo config..... 'man unlang' will help.... but from your description and the error you are getting, it actually seems like your NAS is just broken. the Acct-Status-Type is an integer, which maps to known dictionary values.... <shrug> perhaps you will find joy by using its number - stop is "2". alan
On 16/01/2017 10:14, Miha wrote:
I am getting in Acct-Status-Type = 0 Then your NAS vendor doesn't read the RFCs (RFC2866 in this case). 0 is not a permitted value.
Firstly, are you sure that you're actually receiving Acct-Status-Type value 0? It's not just a default somewhere? Look at freeradius -X, or tcpdump or radsniff, or your accounting detail file to see if the NAS is actually sending Acct-Status-Type 0. I would be surprised if it is. Secondly, why do you think the value 0 means "Stop" ? Does the vendor document this behaviour? If the vendor really is sending this illegal value, it might mean something completely different.
How can i set in default (sites-available) that if Acct-Status-Type = 0 i set it to Stop so that the same confg will be like for "Stop".
I think you should first get to the bottom of what's actually happening on the wire. But if you really want to paper over the cracks, you can use unlang: if (Acct-Status-Type == 0) { update request { Acct-Status-Type := Stop } } Or I suppose you could edit share/dictionary.rfc2866 to define a label for value 0, but I don't think it would be a good idea to map two different values to "Stop" Regards, Brian.
On Jan 16, 2017, at 9:03 AM, Miha <miha@softnet.si> wrote:
yes, i noticed :)
you always find positive word ;)
The point is that it's a waste of your time to debug broken products. The people who created those products are too lazy and/or incompetent to implement the standards correctly. Instead, they push garbage onto you, the customer, and then you spend time and effort trying to figure out what's wrong with their products. It's ridiculous. You should name and shame. Post the maker and model of the equipment, and we'll put it on the Wiki with a "DO NOT BUY THIS" recommendation. That way fewer people run into the same issues. Alan DeKok.
participants (4)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Brian Candler -
Miha