<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY 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'">000d6570-880e0028-2a382841-1ef5c833@200.187.80.9"'</A>),
('User-Name', '"<A
href="mailto:87001@fastervoip.com.br%22'">87001@fastervoip.com.br"'</A>),
('Calling-Station-Id', '"sip:87001@fastervoip.com.br"'), ('Called-Station-Id',
'"sip:01591184701@fastervoip.com.br"'), ('Sip-Translated-Request-URI',
'"sip:01591184701@200.187.80.17:5060;transport=udp"'), ('Sip-Rpid', '"87001"'),
('Source-IP', '"200.187.80.9"'), ('Source-Port', '"5070"'), ('Acct-Authentic',
'49'), ('SIP-Proxy-IP', '"127.0.0.1"'), ('Canonical-URI',
'"sip:01591184701@fastervoip.com.br"'), ('Billing-Party', '"<A
href="mailto:87001@fastervoip.com.br%22'">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', '127.0.0.1'),
('Client-IP-Address', '127.0.0.1'), ('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">87001@fastervoip.com.br</A>><BR>rlm_python
[freeradius-cdrtool]: Extracted atribute <Canonical-URI> with value
<sip:01591184701@fastervoip.com.br><BR>rlm_python [freeradius-cdrtool]:
Extracted atribute <Called-Station-Id> with value
<sip:01591184701@fastervoip.com.br><BR>rlm_python [freeradius-cdrtool]:
Extracted atribute <Acct-Session-Id> with value <<A
href="mailto:000d6570-880e0028-2a382841-1ef5c833@200.187.80.9">000d6570-880e0028-2a382841-1ef5c833@200.187.80.9</A>><BR><STRONG>rlm_python:EXCEPT:<type
'exceptions.TypeError'>: end_session() takes exactly 6 arguments (4
given)</STRONG><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 127.0.0.1 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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=danb@sms4sip.com href="mailto:danb@sms4sip.com">DanB</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=diego@fasternet.com.br
href="mailto:diego@fasternet.com.br">Diego Zuaneti Arruda</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=users@lists.kamailio.org
href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 30, 2008 11:54
AM</DIV>
<DIV style="FONT: 10pt arial"><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">diego@fasternet.com.br</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV class=Ih2E3d>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=danb@sms4sip.com href="mailto:danb@sms4sip.com"
target=_blank>DanB</A> </DIV>
<DIV
style="FONT: 10pt arial; 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: 10pt arial; 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: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Tuesday, September 30, 2008 11:19 AM</DIV>
<DIV
style="FONT: 10pt arial; 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=danb@sms4sip.com href="mailto:danb@sms4sip.com"
target=_blank>DanB</A> </DIV>
<DIV
style="FONT: 10pt arial; 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: 10pt arial; 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: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Tuesday, September 30, 2008 11:08 AM</DIV>
<DIV
style="FONT: 10pt arial; 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=danb@sms4sip.com href="mailto:danb@sms4sip.com"
target=_blank>DanB</A> </DIV>
<DIV
style="FONT: 10pt arial; 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: 10pt arial; 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: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Tuesday, September 30, 2008 10:34 AM</DIV>
<DIV
style="FONT: 10pt arial; 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=danb@sms4sip.com href="mailto:danb@sms4sip.com"
target=_blank>DanB</A> </DIV>
<DIV
style="FONT: 10pt arial; 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: 10pt arial; 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: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Tuesday, September 30, 2008 5:47 AM</DIV>
<DIV
style="FONT: 10pt arial; 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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></BLOCKQUOTE></BODY></HTML>