<div dir="ltr">Hi Raul,<br><br>the design I follow is:<br><br>1. Use the timeout value received from radius into openser avps and write it into a header (Session-Timer).<br>2. Make Yate parse this header with regexpfile module and force that session-timer value to become timer recognized by Yate.<br>
<br>Once the timeout value is hit, Yate will automatically disconnect the running session.<br><br>Hope this info helps.<br><br>DanB<br><br><div class="gmail_quote">On Tue, Oct 14, 2008 at 4:54 PM, raul2r2 <span dir="ltr"><<a href="mailto:raul2r2@gmail.com">raul2r2@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi Again...<br>
It seems that problem 1 is solved... i only have to change the<br>
configuration in clients and servers configs file from freeradius and<br>
radius-client to point to my gateway ip-address not to my loopbak<br>
interface...<br>
But for problem two... any advice?...<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
raul2r2 wrote:<br>
><br>
> Hi Dan...<br>
> Well, it seems that i can solve the problem... the problem was that<br>
> i don't recompile correctly rlm_python module support. Thank you, i see a<br>
> similar answer from you in the same thread... Although my other problem<br>
> persists...<br>
> 1. How can i change/define NAS-IP-Addrees parameter from openser... it<br>
> takes loopback interface, and i need that this must be gateway public ip,<br>
> that i use in my rates for cdrtool to calculate correctly MaxSessionTime.<br>
> 2. I'm trying to hangup the call... I use a little server script that use<br>
> end_dlg_end MI function to fake bye's in both directions ending media<br>
> session. Problems is that openser script does not process these bye's so i<br>
> can not stop accounting. I know that this is an opensips limitation and<br>
> saw a discursion this October where opensips Bogdan developer admit that<br>
> he is working on some kind of solution.... Meanwhile i am looking for<br>
> alternativies... these are the two i have:<br>
> 1. Use mediaproxy and engage_media_proxy to end media session when dialog<br>
> expires (probably playing with timeout_avp dialog function and your<br>
> script)... but i'm not sure that this can solve the accounting problem.<br>
> 2. I read a bit about you are using SIP Session Timers and Yate to solve<br>
> this... can you help me a bit in the right direction or configuration<br>
> scripts...<br>
><br>
> Thank you in advance...<br>
> Cheers<br>
><br>
> DanB-2 wrote:<br>
>><br>
>> Raul,<br>
>><br>
>> this log shows only half of the call(stop one).<br>
>> Can u show a full trace (start and stop of the call)?<br>
>><br>
>> Cheers,<br>
>> DanB<br>
>><br>
>> On Thu, Oct 9, 2008 at 12:40 PM, raul2r2 <<a href="mailto:raul2r2@gmail.com">raul2r2@gmail.com</a>> wrote:<br>
>><br>
>>><br>
>>> Hi Dan...:<br>
>>> The syslog show this:<br>
>>> Oct 9 14:40:01 PREPSQL01 cdrtool[27237]: Normalize datasource<br>
>>> ser_radius,<br>
>>> database DB_radius, table radacct200810<br>
>>> Oct 9 14:40:01 PREPSQL01 cdrtool[27237]: Normalize lock id 5889 aquired<br>
>>> for<br>
>>> ser_radius:radacct200810<br>
>>> Oct 9 14:40:01 PREPSQL01 cdrtool[27237]: Normalize datasource<br>
>>> ser_radius,<br>
>>> database DB_radius, table radacct200809<br>
>>> Oct 9 14:40:01 PREPSQL01 cdrtool[27237]: Normalize lock id 5889 aquired<br>
>>> for<br>
>>> ser_radius:radacct200809<br>
>>> Oct 9 14:40:01 PREPSQL01 cdrtool[27237]: Database error: Table<br>
>>> 'radius.radacct200809' doesn't exist (1146)<br>
>>> Oct 9 14:40:01 PREPSQL01 cdrtool[27237]: Unlock<br>
>>> ser_radius:radacct200810<br>
>>> Oct 9 14:40:01 PREPSQL01 cdrtool[27237]: Unlock<br>
>>> ser_radius:radacct200809<br>
>>> Oct 9 14:40:02 PREPSQL01 cdrtool[27236]: Checking user quotas for data<br>
>>> source OpenSER<br>
>>> Oct 9 14:40:02 PREPSQL01 cdrtool[27236]: Using database queries to<br>
>>> block<br>
>>> accounts<br>
>>> Oct 9 14:40:02 PREPSQL01 cdrtool[27236]: No quota has been exceeded<br>
>>> Oct 9 14:40:14 PREPSQL01 cdrtool[7803]: DebitBalance<br>
>>> CallId=<a href="mailto:1A0082B8-7734-BA31-4828-3D24892A184C@192.168.0.41">1A0082B8-7734-BA31-4828-3D24892A184C@192.168.0.41</a><br>
>>> From=<a href="mailto:admin@goldslam.com">admin@goldslam.com</a> To=<a href="http://sip:0034678650039@192.168.0.130:5060" target="_blank">sip:0034678650039@192.168.0.130:5060</a><br>
>>> Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> Duration=8<br>
>>> Oct 9 14:40:14 PREPSQL01 cdrtool[7803]: Error: session<br>
>>> <a href="mailto:1A0082B8-7734-BA31-4828-3D24892A184C@192.168.0.41">1A0082B8-7734-BA31-4828-3D24892A184C@192.168.0.41</a> for <a href="mailto:admin@goldslam.com">admin@goldslam.com</a><br>
>>> does not exist<br>
>>><br>
>>> I don't know if the bad gateway could be the cause of this... How i can<br>
>>> change NAS-IP-Address in openser?<br>
>>> Cheers...<br>
>>><br>
>>><br>
>>> DanB-2 wrote:<br>
>>> ><br>
>>> > Raul,<br>
>>> ><br>
>>> > it looks like there is something wrong with the answer you receive<br>
>>> from<br>
>>> > cdrtool (could be wrong handled by connector too...).<br>
>>> ><br>
>>> > Can u post me the cdrtool syslog? There it should be seen the answer<br>
>>> > received.<br>
>>> ><br>
>>> > Cheers,<br>
>>> > DanB<br>
>>> ><br>
>>> > On Tue, Oct 7, 2008 at 7:27 PM, raul2r2 <<a href="mailto:raul2r2@gmail.com">raul2r2@gmail.com</a>> wrote:<br>
>>> ><br>
>>> >><br>
>>> >> Hi DanB...<br>
>>> >> Finally i have to set up manually, nothing different from README<br>
>>> >> configuration and from my older platform running previous version of<br>
>>> >> freeradius-cdrtool (1.1)... It's doesn't matter, setting up manually<br>
>>> is<br>
>>> >> enough for me... Thank you.<br>
>>> >> I have other stupid problem... first one is extracting gateway ip<br>
>>> in<br>
>>> >> authorization section of the script. I see it is extracted from<br>
>>> >> NAS-IP-Address... this contain the loopbak ip 127.0.0.1... how i can<br>
>>> >> change<br>
>>> >> this parameter in openser to send my real gateway ip?<br>
>>> >> The second one isn't so easy and it's possible that have some kind<br>
>>> of<br>
>>> >> relation with the previous one. When the script tries to do and<br>
>>> >> endsession<br>
>>> >> over cdrtool (6.6.9) rating engine, it raises the following<br>
>>> exception:<br>
>>> >> rlm_python [freeradius-cdrtool]: DebitBalance<br>
>>> >> CallId=<a href="mailto:27874A50-6363-3C25-6B88-6FBCB76686C6@192.168.0.41">27874A50-6363-3C25-6B88-6FBCB76686C6@192.168.0.41</a><br>
>>> >> From=<a href="mailto:admin@goldslam.com">admin@goldslam.com</a> To=<a href="http://sip:0034XXXXXXXXX@192.168.0.130:5060" target="_blank">sip:0034XXXXXXXXX@192.168.0.130:5060</a><br>
>>> >> Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> Duration=9<br>
>>> >> rlm_python:EXCEPT:exceptions.AttributeError: 'NoneType' object has no<br>
>>> >> attribute 'find'<br>
>>> >> I'll try to investigate a bit more why this is happening...<br>
>>> >> Cheers.<br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > Users mailing list<br>
>>> > <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
>>> > <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
>>> ><br>
>>> ><br>
>>><br>
>>> --<br>
>>> View this message in context:<br>
>>> <a href="http://www.nabble.com/Send-MaxCallDuration-and-UserCredit-for-freeradius-cdrtool-tp19731475p19896343.html" target="_blank">http://www.nabble.com/Send-MaxCallDuration-and-UserCredit-for-freeradius-cdrtool-tp19731475p19896343.html</a><br>
>>> Sent from the OpenSER Users Mailing List mailing list archive at<br>
>>> Nabble.com.<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
>>> <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
>> <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
>><br>
><br>
><br>
<br>
--<br>
</div></div>View this message in context: <a href="http://www.nabble.com/Send-MaxCallDuration-and-UserCredit-for-freeradius-cdrtool-tp19731475p19975181.html" target="_blank">http://www.nabble.com/Send-MaxCallDuration-and-UserCredit-for-freeradius-cdrtool-tp19731475p19975181.html</a><br>
<div><div></div><div class="Wj3C7c">Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>