[Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

raul2r2 raul2r2 at gmail.com
Tue Oct 7 19:27:53 CEST 2008


Hi DanB...
    Finally i have to set up manually, nothing different from README
configuration and from my older platform running previous version of
freeradius-cdrtool (1.1)... It's doesn't matter, setting up manually is
enough for me... Thank you.
    I have other stupid problem... first one is extracting gateway ip in
authorization section of the script. I see it is extracted from
NAS-IP-Address... this contain the loopbak ip 127.0.0.1... how i can change
this parameter in openser to send my real gateway ip?
    The second one isn't so easy and it's possible that have some kind of
relation with the previous one. When the script tries to do and endsession
over cdrtool (6.6.9) rating engine, it raises the following exception:
rlm_python [freeradius-cdrtool]: DebitBalance
CallId=27874A50-6363-3C25-6B88-6FBCB76686C6 at 192.168.0.41
From=admin at goldslam.com To=sip:0034XXXXXXXXX at 192.168.0.130:5060
Gateway=127.0.0.1 Duration=9
rlm_python:EXCEPT:exceptions.AttributeError: 'NoneType' object has no
attribute 'find'
I'll try to investigate a bit more why this is happening...
Cheers.


DanB-2 wrote:
> 
> Raul,
> 
> regarding auth parameter, you can either get it as returned from the
> rad_auth (inside the avp), or force it yourself.
> Make sure you have the attribute defined into the dictionary and check
> once
> again the configurations.
> 
> If you need further help, send me the "radiusd -X" output for both of your
> auth and acct-stop as well as your openser config.
> 
> Cheers,
> DanB
> 
> On Tue, Oct 7, 2008 at 1:14 PM, raul2r2 <raul2r2 at gmail.com> wrote:
> 
>>
>> Thank you for your answer Dan... The problem was that the previous README
>> file was too similar and i forget read more carefully the configuration
>> part
>> because i suppose in a first sight that it was equal to the new one...
>> Another stupid question is why script don't receive the Acct-Authentic
>> parameter from openser, giving up accounting it when receive the
>> accounting
>> start packet... I can sure you that i revised README file again and
>> nothing
>> different in configuration... I have Acct-Authentic in acc extra
>> parameters
>> and also defined in freeradius dictionary... strange thing is that in
>> previous version of the script this is working... I Know that is not a
>> script problem, openser must send this parameter... but why not?
>> Thank you in advance...
>>
>>
>> Diego Zuaneti Arruda wrote:
>> >
>> >   Hi all,
>> >
>> >    How I send to freeradius-cdrtool the maxCallDuration and UserCredit?
>> >    On the /etc/raddb/users I have:
>> >
>> > 87001 at mydomain.com.br Auth-Type := Digest, User-Password ==
>> "mypassword"
>> >         Reply-Message = "Authenticated",
>> >         SIP-AVP = "authentic#1",
>> >         SIP-AVP = "callMaxDur:60",
>> >         SIP-AVP = "credit:25"
>> >
>> >    Is this correct ?
>> >
>> >
>> >
>> > Thanks.
>> > Diego.
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.kamailio.org
>> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Send-MaxCallDuration-and-UserCredit-for-freeradius-cdrtool-tp19731475p19855938.html
>> Sent from the OpenSER Users Mailing List mailing list archive at
>> Nabble.com.
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>
> 
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Send-MaxCallDuration-and-UserCredit-for-freeradius-cdrtool-tp19731475p19863211.html
Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.





More information about the Users mailing list