<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>&nbsp;&nbsp;&nbsp; $rU = &quot;ann-insufficient_credit&quot;;<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">&lt;<a href="mailto:diego@fasternet.com.br">diego@fasternet.com.br</a>&gt;</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">&nbsp;DanB,</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font size="-0"><font face="Arial" size="2">&nbsp; The problem was solved with 
the new version.<br>&nbsp; I don&#39;t understand very well the python 
language.<br>&nbsp; It&#39;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>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</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 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 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">&lt;<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</a>&gt;</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">&nbsp; DanB,</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">&nbsp;&nbsp; <font face="Times New Roman" size="3">I&#39;m testing the freeradius-cdrtool, and found a possible problem. 
    <br>&nbsp;&nbsp; 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">&nbsp;&nbsp; Here&#39;s a part of the 
    logs:</font></font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">rlm_python [freeradius-cdrtool]: Entering 
    accounting section<br>rlm_python [freeradius-cdrtool]: Got the following 
    params: ((&#39;Acct-Status-Type&#39;, &#39;Failed&#39;), (&#39;Service-Type&#39;, &#39;Sip-Session&#39;), 
    (&#39;Sip-Response-Code&#39;, &#39;503&#39;), (&#39;Sip-Method&#39;, &#39;Invite&#39;), (&#39;X-Ascend-Bridge&#39;, 
    &#39;0x694de248a0b22d087cf199b7&#39;), (&#39;Sip-From-Tag&#39;, 
    &#39;&quot;000d6570880e01462b3c62f9-0908d279&quot;&#39;), (&#39;Acct-Session-Id&#39;, &#39;&quot;<a href="mailto:000d6570-880e0028-2a382841-1ef5c833@200.187.80.9%22%27" target="_blank">000d6570-880e0028-2a382841-1ef5c833@200.187.80.9&quot;&#39;</a>), 
    (&#39;User-Name&#39;, &#39;&quot;<a href="mailto:87001@fastervoip.com.br%22%27" target="_blank">87001@fastervoip.com.br&quot;&#39;</a>), (&#39;Calling-Station-Id&#39;, &#39;&quot;<a href="mailto:sip%3A87001@fastervoip.com.br" target="_blank">sip:87001@fastervoip.com.br</a>&quot;&#39;), (&#39;Called-Station-Id&#39;, &#39;&quot;<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a>&quot;&#39;), 
    (&#39;Sip-Translated-Request-URI&#39;, 
    &#39;&quot;sip:01591184701@200.187.80.17:5060;transport=udp&quot;&#39;), (&#39;Sip-Rpid&#39;, 
    &#39;&quot;87001&quot;&#39;), (&#39;Source-IP&#39;, &#39;&quot;<a href="http://200.187.80.9" target="_blank">200.187.80.9</a>&quot;&#39;), (&#39;Source-Port&#39;, &#39;&quot;5070&quot;&#39;), 
    (&#39;Acct-Authentic&#39;, &#39;49&#39;), (&#39;SIP-Proxy-IP&#39;, &#39;&quot;<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>&quot;&#39;), (&#39;Canonical-URI&#39;, &#39;&quot;<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a>&quot;&#39;), (&#39;Billing-Party&#39;, 
    &#39;&quot;<a href="mailto:87001@fastervoip.com.br%22%27" target="_blank">87001@fastervoip.com.br&quot;&#39;</a>), (&#39;Contact&#39;, 
    &#39;&quot;&lt;sip:87001@200.187.80.9:5070;transport=udp&gt;&quot;&#39;), (&#39;NAS-Port&#39;, 
    &#39;5060&#39;), (&#39;Acct-Delay-Time&#39;, &#39;0&#39;), (&#39;NAS-IP-Address&#39;, &#39;<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>&#39;), (&#39;Client-IP-Address&#39;, 
    &#39;<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>&#39;), 
    (&#39;Acct-Unique-Session-Id&#39;, &#39;&quot;3db548b64d9445ce&quot;&#39;))<br>rlm_python 
    [freeradius-cdrtool]: Extracted atribute &lt;Acct-Status-Type&gt; with value 
    &lt;Failed&gt;<br>rlm_python [freeradius-cdrtool]: Extracted atribute 
    &lt;User-Name&gt; with value &lt;<a href="mailto:87001@fastervoip.com.br" target="_blank">87001@fastervoip.com.br</a>&gt;<br>rlm_python 
    [freeradius-cdrtool]: Extracted atribute &lt;Canonical-URI&gt; with value 
    &lt;<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a>&gt;<br>rlm_python 
    [freeradius-cdrtool]: Extracted atribute &lt;Called-Station-Id&gt; with 
    value &lt;<a href="mailto:sip%3A01591184701@fastervoip.com.br" target="_blank">sip:01591184701@fastervoip.com.br</a>&gt;<br>rlm_python 
    [freeradius-cdrtool]: Extracted atribute &lt;Acct-Session-Id&gt; with value 
    &lt;<a href="mailto:000d6570-880e0028-2a382841-1ef5c833@200.187.80.9" target="_blank">000d6570-880e0028-2a382841-1ef5c833@200.187.80.9</a>&gt;<br><b>rlm_python:EXCEPT:&lt;type 
    &#39;exceptions.TypeError&#39;&gt;: end_session() takes exactly 6 arguments (4 
    given)</b><br>&nbsp; modcall[accounting]: module &quot;python&quot; 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>&nbsp;</div>
    <div><font face="Arial" size="2"></font>&nbsp;</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">&quot;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>&quot;<br><br>
      <div class="gmail_quote">On Tue, Sep 30, 2008 at 4:38 PM, Diego Zuaneti 
      Arruda <span dir="ltr">&lt;<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</a>&gt;</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">&nbsp; Thanks DanB, the problem was 
        solved.</font></div>
        <div><font face="Arial" size="2">&nbsp; How send BYE when 
        expires&nbsp;credit in conversation?</font></div>
        <div><font face="Arial" size="2"></font>&nbsp;</div>
        <div><font face="Arial" size="2"></font>&nbsp;</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">&lt;<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</a>&gt;</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">&nbsp; I&#39;m using the freeradius 1.1.7, 
            and not patched the rlm_digest.</font></div>
            <div><font face="Arial" size="2">&nbsp; Where to find the patch 
            rlm_digest ?</font></div>
            <div><font face="Arial" size="2"></font>&nbsp;</div><font color="#888888">
            <div><font face="Arial" size="2"></font>&nbsp;</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&nbsp; 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">&lt;<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</a>&gt;</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">&nbsp; DanB,</font></div>
                <div><font face="Arial" size="2"></font>&nbsp;</div>
                <div><font face="Arial" size="2">&nbsp;&nbsp; Yes, I changed the 
                kamailio.cfg.</font></div>
                <div><font face="Arial" size="2">&nbsp;&nbsp; I´m sending the full 
                log of radius attached.</font></div>
                <div><font face="Arial" size="2"></font>&nbsp;</div>
                <div><font face="Arial" size="2"></font>&nbsp;</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 
                  &quot;radiusd -X&quot;.<br><br>DanB<br>
                  <div class="gmail_quote">On Tue, Sep 30, 2008 at 3:00 PM, Diego 
                  Zuaneti Arruda <span dir="ltr">&lt;<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</a>&gt;</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">&nbsp; Hi DanB,</font></div>
                    <div><font face="Arial" size="2"></font>&nbsp;</div>
                    <div>I updated the CDRTool to version 6.6.8 and 
                    freeradius-cdrtool to version 1.2-pre. <br>I&#39;m getting this 
                    log and not doing the Debit.</div>
                    <div><font face="Arial" size="2"></font>&nbsp;</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">&nbsp;<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>&nbsp;</div>
                    <div><font face="Arial" size="2"></font>&nbsp;</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&#39;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">&lt;<a href="mailto:diego@fasternet.com.br" target="_blank">diego@fasternet.com.br</a>&gt;</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">&nbsp; Hi all,</font></div>
                        <div><font face="Arial" size="2"></font>&nbsp;</div>
                        <div><font face="Arial" size="2">&nbsp;&nbsp; How&nbsp;I 
                        send to freeradius-cdrtool the maxCallDuration and 
                        UserCredit?</font></div>
                        <div><font face="Arial" size="2">&nbsp;&nbsp; On the 
                        /etc/raddb/users&nbsp;I have:</font></div>
                        <div><font face="Arial" size="2"></font>&nbsp;</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">&nbsp;Auth-Type := Digest, 
                        User-Password == 
                        &quot;mypassword&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        Reply-Message = 
                        &quot;Authenticated&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SIP-AVP 
                        = &quot;authentic#1&quot;,</font></div>
                        <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SIP-AVP 
                        = &quot;callMaxDur:60&quot;,</font></div>
                        <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SIP-AVP 
                        = &quot;credit:25&quot;</font></div>
                        <div><font face="Arial" size="2"></font>&nbsp;</div>
                        <div><font face="Arial" size="2">&nbsp;&nbsp; Is this 
                        correct ?</font></div>
                        <div><font face="Arial" size="2"></font>&nbsp;</div>
                        <div><font face="Arial" size="2"></font>&nbsp;</div>
                        <div><font face="Arial" size="2"></font>&nbsp;</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>&nbsp;</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>