<div dir="ltr">Here is an already patched version:<br><a href="http://frad-cdrtool.sourceforge.net/rlm_digest.c">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">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 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> 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>