<div dir="ltr">Diego,<br><br>It looks like there is another problem (nothing to do with the fact that your account is bellow 0.<br>Can u send me the "radius -X" logs?<br><br>DanB<br><br><div class="gmail_quote">On Wed, Oct 1, 2008 at 2:02 PM, Diego Zuaneti Arruda <span dir="ltr"><<a href="mailto:diego@fasternet.com.br">diego@fasternet.com.br</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;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2"> Ok, but the radius returns status 407, and
the call does not come to openser.</font></div>
<div><font face="Arial" size="2"> There is some additional configuration for
the call is routed to the openser when the user do not have credit?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> In the messages logs, I have:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Oct 1 08:59:52 sipserver1 cdrtool[4698]:
Notice: maxduration of 0 is less then minimumDurationCharged (60)<br>Oct 1
08:59:52 sipserver1 cdrtool[4698]: GetBalance <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a><br>Oct
1 08:59:53 sipserver1 cdrtool[4698]: MaxSessionTime
CallId=YzcyMWM3YTgzNDg1MWY2YWFlYzhjMzdhNDYxM2Q3NGU. <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a>
To=<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a> Duration=10800 Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>
Lock=1<br>Oct 1 08:59:53 sipserver1 cdrtool[4698]: Notice: maxduration of
0 is less then minimumDurationCharged (60)<br>Oct 1 08:59:53 sipserver1
cdrtool[4698]: GetBalance <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a><br>Oct
1 08:59:54 sipserver1 cdrtool[4698]: MaxSessionTime
CallId=YzcyMWM3YTgzNDg1MWY2YWFlYzhjMzdhNDYxM2Q3NGU. <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a>
To=<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a> Duration=10800 Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>
Lock=1<br>Oct 1 08:59:54 sipserver1 cdrtool[4698]: Notice: maxduration of
0 is less then minimumDurationCharged (60)<br>Oct 1 08:59:54 sipserver1
cdrtool[4698]: GetBalance <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a><br>Oct
1 08:59:54 sipserver1 cdrtool[4698]: MaxSessionTime
CallId=YzcyMWM3YTgzNDg1MWY2YWFlYzhjMzdhNDYxM2Q3NGU. <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a>
To=<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a> Duration=10800 Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>
Lock=1<br>Oct 1 08:59:54 sipserver1 cdrtool[4698]: Notice: maxduration of
0 is less then minimumDurationCharged (60)<br>Oct 1 08:59:54 sipserver1
cdrtool[4698]: GetBalance <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a><br>Oct
1 08:59:54 sipserver1 cdrtool[4698]: MaxSessionTime
CallId=YzcyMWM3YTgzNDg1MWY2YWFlYzhjMzdhNDYxM2Q3NGU. <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a>
To=<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a> Duration=10800 Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>
Lock=1<br>Oct 1 08:59:54 sipserver1 cdrtool[4698]: Notice: maxduration of
0 is less then minimumDurationCharged (60)<br>Oct 1 08:59:54 sipserver1
cdrtool[4698]: GetBalance <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a><br>Oct
1 08:59:55 sipserver1 cdrtool[4698]: DebitBalance
CallId=NTcyZjgyYzY5N2QzMDdhNmI4Yzk5MTBkZTUwMzljNmU. <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a>
To=<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a> Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> Duration=0<br>Oct 1
08:59:55 sipserver1 cdrtool[4698]: Error: session
NTcyZjgyYzY5N2QzMDdhNmI4Yzk5MTBkZTUwMzljNmU. of <a href="mailto:87004@fastervoip.com.br" target="_blank">87004@fastervoip.com.br</a> does not
exist<br>Oct 1 08:59:56 sipserver1 cdrtool[4698]: MaxSessionTime
CallId=YzcyMWM3YTgzNDg1MWY2YWFlYzhjMzdhNDYxM2Q3NGU. <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a>
To=<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a> Duration=10800 Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>
Lock=1<br>Oct 1 08:59:56 sipserver1 cdrtool[4698]: Notice: maxduration of
0 is less then minimumDurationCharged (60)<br>Oct 1 08:59:56 sipserver1
cdrtool[4698]: GetBalance <a href="mailto:From=87004@fastervoip.com.br" target="_blank">From=87004@fastervoip.com.br</a><br></font></div>
<div><font face="Arial" size="2"> And after that returns 407 to the
user.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks again.</font></div>
<div><font face="Arial" size="2">Diego.</font></div><font color="#888888">
</font><blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div class="Ih2E3d">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="danb@sms4sip.com" href="mailto:danb@sms4sip.com" target="_blank">DanB</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="diego@fasternet.com.br" href="mailto:diego@fasternet.com.br" target="_blank">Diego Zuaneti Arruda</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b> <a title="users@lists.kamailio.org" href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a> </div>
</div><div><div></div><div class="Wj3C7c"><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>Sent:</b> Wednesday, October 01, 2008 4:28
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Kamailio-Users] Send
MaxCallDuration and UserCredit for freeradius-cdrtool</div>
<div><br></div>
<div dir="ltr">Diego,<br><br>the connector is just the translator between
cdrtool and radius/openser, so no need of coding anything inside, but use that
information inside openser to make a decision.<br>A good way to go would be an
AVP check inside openser.cfg like:<br><br>check_value_of_ ($avp(s:credit)):
(need to be replaced by real condition you want to
match)<br> $rU =
"ann-insufficient_credit";<br><br>Cheers,<br>DanB<br><br><br>
<div class="gmail_quote">On Tue, Sep 30, 2008 at 10:38 PM, Diego Zuaneti Arruda
<span dir="ltr"><<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</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;">
<div bgcolor="#ffffff">
<div>
<div><font face="Arial" size="2"> DanB,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font size="-0"><font face="Arial" size="2"> The problem was solved
with the new version.<br> I don't understand very well the python
language.<br> It's possible to return SIP-AVP = nocredit#1 when the
user have no credits? So I can return a message to the user saying he has no
credits.</font></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks again.</font></div>
<div><font face="Arial" size="2">Diego.</font></div></div><font color="#888888"></font>
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="danb@sms4sip.com" href="mailto:danb@sms4sip.com" target="_blank">DanB</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="diego@fasternet.com.br" href="mailto:diego@fasternet.com.br" target="_blank">Diego Zuaneti Arruda</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
<a title="users@lists.kamailio.org" href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a> </div></div>
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, September 30, 2008 3:15 PM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for
freeradius-cdrtool</div>
<div><br></div>
<div dir="ltr">Hi Diego,<br><br>fixed now in
pre2.<br><br>Cheers,<br>DanB<br><br>
<div class="gmail_quote">On Tue, Sep 30, 2008 at 5:58 PM, Diego Zuaneti
Arruda <span dir="ltr"><<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</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;">
<div bgcolor="#ffffff">
<div>
<div><font face="Arial" size="2"> DanB,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> <font face="Times New Roman" size="3">I'm testing the freeradius-cdrtool, and found a possible problem.
<br> When I turn off the call before answer, the session is
not finished. <br></font></font><font face="Arial" size="2"><font face="Times New Roman" size="3"> Here's a part of the
logs:</font></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">rlm_python [freeradius-cdrtool]: Entering
accounting section<br>rlm_python [freeradius-cdrtool]: Got the following
params: (('Acct-Status-Type', 'Failed'), ('Service-Type',
'Sip-Session'), ('Sip-Response-Code', '503'), ('Sip-Method', 'Invite'),
('X-Ascend-Bridge', '0x694de248a0b22d087cf199b7'), ('Sip-From-Tag',
'"000d6570880e01462b3c62f9-0908d279"'), ('Acct-Session-Id', '"<a href="mailto:000d6570-880e0028-2a382841-1ef5c833@200.187.80.9%22%27" target="_blank">000d6570-880e0028-2a382841-1ef5c833@200.187.80.9"'</a>),
('User-Name', '"<a href="mailto:87001@fastervoip.com.br%22%27" target="_blank">87001@fastervoip.com.br"'</a>), ('Calling-Station-Id',
'"<a href="mailto:sip%3A87001@fastervoip.com.br" target="_blank">sip:87001@fastervoip.com.br</a>"'), ('Called-Station-Id',
'"<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a>"'),
('Sip-Translated-Request-URI',
'"sip:01591184701@200.187.80.17:5060;transport=udp"'), ('Sip-Rpid',
'"87001"'), ('Source-IP', '"<a href="http://200.187.80.9" target="_blank">200.187.80.9</a>"'), ('Source-Port', '"5070"'),
('Acct-Authentic', '49'), ('SIP-Proxy-IP', '"<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>"'), ('Canonical-URI', '"<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a>"'),
('Billing-Party', '"<a href="mailto:87001@fastervoip.com.br%22%27" target="_blank">87001@fastervoip.com.br"'</a>), ('Contact',
'"<sip:87001@200.187.80.9:5070;transport=udp>"'), ('NAS-Port',
'5060'), ('Acct-Delay-Time', '0'), ('NAS-IP-Address', '<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>'),
('Client-IP-Address', '<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>'), ('Acct-Unique-Session-Id',
'"3db548b64d9445ce"'))<br>rlm_python [freeradius-cdrtool]: Extracted
atribute <Acct-Status-Type> with value
<Failed><br>rlm_python [freeradius-cdrtool]: Extracted atribute
<User-Name> with value <<a href="mailto:87001@fastervoip.com.br" target="_blank">87001@fastervoip.com.br</a>><br>rlm_python
[freeradius-cdrtool]: Extracted atribute <Canonical-URI> with
value <<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a>><br>rlm_python
[freeradius-cdrtool]: Extracted atribute <Called-Station-Id> with
value <<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a>><br>rlm_python
[freeradius-cdrtool]: Extracted atribute <Acct-Session-Id> with
value <<a href="mailto:000d6570-880e0028-2a382841-1ef5c833@200.187.80.9" target="_blank">000d6570-880e0028-2a382841-1ef5c833@200.187.80.9</a>><br><b>rlm_python:EXCEPT:<type
'exceptions.TypeError'>: end_session() takes exactly 6 arguments (4
given)</b><br> modcall[accounting]: module "python" returns ?? for
request 261<br>modcall: leaving group accounting (returns ok) for
request 261<br>Sending Accounting-Response of id 147 to <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> port
41560<br>Finished request 261<br></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Diego.</font></div></div>
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="danb@sms4sip.com" href="mailto:danb@sms4sip.com" target="_blank">DanB</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="diego@fasternet.com.br" href="mailto:diego@fasternet.com.br" target="_blank">Diego Zuaneti Arruda</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
<a title="users@lists.kamailio.org" href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a> </div></div>
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, September 30, 2008 11:54 AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for
freeradius-cdrtool</div>
<div><br></div>
<div dir="ltr">"The avps received will be available in openser as:
callMaxDur and credit, where callMaxDur is the maximum duration the
user is allowed to be connected with the destination and credit
represents the amount of credit available at starting of the call.
This info can be used later in an bbua able to timeout calls based on
duration.<br>"<br><br>
<div class="gmail_quote">On Tue, Sep 30, 2008 at 4:38 PM, Diego Zuaneti
Arruda <span dir="ltr"><<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</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;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2"> Thanks DanB, the problem was
solved.</font></div>
<div><font face="Arial" size="2"> How send BYE when
expires credit in conversation?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks.</font></div>
<div><font face="Arial" size="2">Diego.</font></div><font color="#888888"></font>
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="danb@sms4sip.com" href="mailto:danb@sms4sip.com" target="_blank">DanB</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="diego@fasternet.com.br" href="mailto:diego@fasternet.com.br" target="_blank">Diego Zuaneti
Arruda</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
<a title="users@lists.kamailio.org" href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a> </div></div>
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, September 30, 2008 11:19 AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for
freeradius-cdrtool</div>
<div><br></div>
<div dir="ltr">Here is an already patched version:<br><a href="http://frad-cdrtool.sourceforge.net/rlm_digest.c" target="_blank">http://frad-cdrtool.sourceforge.net/rlm_digest.c</a><br>You
should replace your rlm_digest.c with this one and recompile the
server.<br><br>DanB<br><br>
<div class="gmail_quote">On Tue, Sep 30, 2008 at 4:14 PM, Diego
Zuaneti Arruda <span dir="ltr"><<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</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;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2"> I'm using the freeradius
1.1.7, and not patched the rlm_digest.</font></div>
<div><font face="Arial" size="2"> Where to find the patch
rlm_digest ?</font></div>
<div><font face="Arial" size="2"></font> </div><font color="#888888">
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Diego.</font></div></font>
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="danb@sms4sip.com" href="mailto:danb@sms4sip.com" target="_blank">DanB</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="diego@fasternet.com.br" href="mailto:diego@fasternet.com.br" target="_blank">Diego
Zuaneti Arruda</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
<a title="users@lists.kamailio.org" href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a> </div></div>
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, September 30, 2008 11:08 AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for
freeradius-cdrtool</div>
<div><br></div>
<div dir="ltr">Diego,<br><br>the problem is with your digest
module which is sanitizing the parameters in
authentication phase only, therefore the parameters like
Username, Digest-URI are not available in the authorization
phase (no way for the connector to read them).<br>Did u patch
your rlm_digest as per the README.txt? What version of
freeradius are u using?<br><br>DanB<br><br>
<div class="gmail_quote">On Tue, Sep 30, 2008 at 3:56 PM, Diego
Zuaneti Arruda <span dir="ltr"><<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</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;">
<div bgcolor="#ffffff">
<div>
<div><font face="Arial" size="2"> DanB,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> Yes, I changed the
kamailio.cfg.</font></div>
<div><font face="Arial" size="2"> I´m sending the
full log of radius attached.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Diego.</font></div></div>
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="danb@sms4sip.com" href="mailto:danb@sms4sip.com" target="_blank">DanB</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="diego@fasternet.com.br" href="mailto:diego@fasternet.com.br" target="_blank">Diego
Zuaneti Arruda</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
<a title="users@lists.kamailio.org" href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a> </div></div>
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, September 30, 2008 10:34 AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Kamailio-Users] Send MaxCallDuration and UserCredit
for freeradius-cdrtool</div>
<div><br></div>
<div dir="ltr">Diego,<br><br>looks like there was no session
started at first place.<br>Did u change the openser.cfg
config? You need to add callid into radius_proxy_authorize
so that the callid should be used (example in README.txt
of the freeradius-cdrtool sources).<br><br>Also, can u
post a full authorize/account_start/account_stop sequence
as logged by "radiusd -X".<br><br>DanB<br>
<div class="gmail_quote">On Tue, Sep 30, 2008 at 3:00 PM,
Diego Zuaneti Arruda <span dir="ltr"><<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</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;">
<div bgcolor="#ffffff">
<div>
<div><font face="Arial" size="2"> Hi
DanB,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div>I updated the CDRTool to version 6.6.8 and
freeradius-cdrtool to version 1.2-pre. <br>I'm getting
this log and not doing the Debit.</div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Sep 30 09:57:22 sipserver1
cdrtool[12948]: DebitBalance <a href="mailto:CallId=000d6570-880e0035-39c8f267-5c77e9d2@192.168.0.1" target="_blank">CallId=000d6570-880e0035-39c8f267-5c77e9d2@192.168.0.1</a></font><font face="Arial" size="2"> <a href="mailto:From=87001@mydomain.com.br" target="_blank">From=87001@mydomain.com.br</a> To=<a href="mailto:sip%3A00551599998888@mydomain.com.br" target="_blank">sip:00551599998888@mydomain.com.br</a>
Gateway=<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> Duration=11<br>Sep 30
09:57:22 sipserver1 cdrtool[12948]: ConnectFee=0.00
Span=1 Duration=60 DestId=55159 domain=<a href="http://mydomain.com.br" target="_blank">mydomain.com.br</a> Profile=551
Period=weekday Rate=551 Interval=0-24 Cost=0.85/60
Price=0.8500<br>Sep 30 09:57:22 sipserver1
cdrtool[12948]: Error: session <a href="mailto:000d6570-880e0035-39c8f267-5c77e9d2@192.168.0.1" target="_blank">000d6570-880e0035-39c8f267-5c77e9d2@192.168.0.1</a>
for <a href="mailto:87001@mydomain.com.br" target="_blank">87001@mydomain.com.br</a> does not
exist<br></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks.</font></div>
<div><font face="Arial" size="2">Diego.</font></div></div>
<div>
<div></div>
<div>
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="danb@sms4sip.com" href="mailto:danb@sms4sip.com" target="_blank">DanB</a>
</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="diego@fasternet.com.br" href="mailto:diego@fasternet.com.br" target="_blank">Diego Zuaneti Arruda</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:</b>
<a title="users@lists.kamailio.org" href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, September 30, 2008 5:47 AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [Kamailio-Users] Send MaxCallDuration and
UserCredit for freeradius-cdrtool</div>
<div><br></div>
<div dir="ltr">Hi Diego,<br><br>you don't need to set
anything in Users file. The connector does that for
you dynamically, based on the responses received from
cdrtool. Your configuration will be static and always
limit the user to the same call duration. For more
information, see the README file within
freeradius-cdrtool source
directory.<br><br>Cheers,<br>DanB<br><br>
<div class="gmail_quote">On Mon, Sep 29, 2008 at 10:49
PM, Diego Zuaneti Arruda <span dir="ltr"><<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</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;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2"> Hi
all,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> How I
send to freeradius-cdrtool the maxCallDuration and
UserCredit?</font></div>
<div><font face="Arial" size="2"> On the
/etc/raddb/users I have:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><a href="mailto:87001@mydomain.com.br" target="_blank">87001@mydomain.com.br</a></font><font face="Arial" size="2"> Auth-Type := Digest,
User-Password ==
"mypassword"<br>
Reply-Message =
"Authenticated",<br> SIP-AVP
= "authentic#1",</font></div>
<div><font face="Arial" size="2"> SIP-AVP
= "callMaxDur:60",</font></div>
<div><font face="Arial" size="2"> SIP-AVP
= "credit:25"</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> Is this
correct ?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks.</font></div>
<div><font face="Arial" size="2">Diego.</font></div>
<div><font face="Arial" size="2"></font> </div></div><br>_______________________________________________<br>Users
mailing list<br><a href="mailto:Users@lists.kamailio.org" target="_blank">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></blockquote></div><br></div></blockquote></div></div></div></blockquote></div><br></div></div></div></blockquote></div></blockquote></div><br></div></div></div></blockquote></div></blockquote></div><br></div></div></div>
</blockquote></div></blockquote></div><br></div></div></div></blockquote></div></blockquote></div><br></div></div></div></blockquote></div></blockquote></div><br></div></div></div></blockquote></div>
</blockquote></div><br></div>