<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I am having a difficulty with prepaid in CDRTool. 
When I telnet to the server and</FONT></DIV>
<DIV><FONT size=2 face=Arial>give the commands manually as below the prepaid 
balance is decremented</FONT></DIV>
<DIV><FONT size=2 face=Arial>correctly. When I place the call thru Opensips the 
call is billed (as show below too) but the prepaid</FONT></DIV>
<DIV><FONT size=2 face=Arial>balance is not decremented. I did not install Call 
Control yet because it's not</FONT></DIV>
<DIV><FONT size=2 face=Arial>very important that I stop calls on the fly. Could 
that be the problem?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Thanks in advance for any suggestions,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Alberto</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 
face=Arial>_____________________________________________________________________</FONT></DIV>
<DIV><FONT size=2 face=Arial>os1:~# telnet os2 9024<BR>Trying 
XXX.XXX.197.172...<BR>Connected to os2.voip.net.<BR>Escape character is 
'^]'.<BR>MaxSessionTime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
href="mailto:CallId=6432622xvv@1">CallId=6432622xvv@1</A> 
From=sip:2001@os1.voip.net To=sip:005521850222333@XXX.XXX.197.171 Duration=7200 
Gateway=XXX.XXX.188.229 Lock=1<BR>402</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 
face=Arial>ShowPrice&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
From=sip:2001@os1.voip.net To=sip:005521850222333@XXX.XXX.197.171 
Gateway=XXX.XXX.188.229 Duration=59<BR>0.1300<BR>Duration: 59 
s<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; App: 
audio<BR>&nbsp;Destination: 55218<BR>&nbsp;&nbsp;&nbsp; Customer: <A 
href="mailto:subscriber=2001@os1.voip.net">subscriber=2001@os1.voip.net</A><BR>&nbsp;&nbsp;&nbsp;&nbsp; 
Connect: 0.0000<BR>&nbsp;&nbsp; StartTime: 2009-07-31 
17:06:51<BR>--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Span: 
1<BR>&nbsp;&nbsp;&nbsp; Duration: 60 s<BR>&nbsp;&nbsp; Increment: 6<BR>Min 
duration: 30<BR>&nbsp;&nbsp; ProfileId: plu / 
weekday<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RateId: plu / 
0-24h<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rate: 0.1300 / 60 
s<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Price: 0.1300</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 
face=Arial>DebitBalance&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
href="mailto:CallId=6432622xvv@1">CallId=6432622xvv@1</A> 
From=sip:2001@os1.voip.net To=sip:005521850222333@XXX.XXX.197.171 
Gateway=XXX.XXX.188.229 
Duration=59<BR>Ok<BR>MaxSessionTime=0<BR>0.1300<BR>Duration: 59 
s<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; App: 
audio<BR>&nbsp;Destination: 55218<BR>&nbsp;&nbsp;&nbsp; Customer: <A 
href="mailto:subscriber=2001@os1.voip.net">subscriber=2001@os1.voip.net</A><BR>&nbsp;&nbsp;&nbsp;&nbsp; 
Connect: 0.0000<BR>&nbsp;&nbsp; StartTime: 2009-07-31 
17:08:15<BR>--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Span: 
1<BR>&nbsp;&nbsp;&nbsp; Duration: 60 s<BR>&nbsp;&nbsp; Increment: 6<BR>Min 
duration: 30<BR>&nbsp;&nbsp; ProfileId: plu / 
weekday<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RateId: plu / 
0-24h<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rate: 0.1300 / 60 
s<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Price: 0.1300</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 
face=Arial>___________________________________________________________________________</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV>
<TABLE border=0 cellSpacing=2 width="100%">
  <TBODY>
  <TR bgColor=lightgrey>
    <TD>Id</TD>
    <TD><B>Start time</B></TD>
    <TD><B>Sip Proxy</B></TD>
    <TD><B>SIP caller</B></TD>
    <TD><B>SIP destination</B></TD>
    <TD><B>Dur</B></TD>
    <TD><B>Price</B></TD>
    <TD align=right><B>KBIn</B></TD>
    <TD align=right><B>KBOut</B></TD>
    <TD align=right><B>Status</B></TD>
    <TD align=right><B>Codecs</B></TD></TR>
  <TR bgColor=white>
    <TD onclick="return toggleVisibility('row1')" vAlign=top><A 
      href="http://187.0.197.172/CDRTool/callsearch.phtml#">1N</A></TD>
    <TD onclick="return toggleVisibility('row1')" vAlign=top><NOBR>2009-07-31 
      11:27:21</NOBR></TD>
    <TD onclick="return toggleVisibility('row1')" 
vAlign=top>XXX.XXX.197.171</TD>
    <TD onclick="return toggleVisibility('row1')" vAlign=top><NOBR><A 
      href="mailto:2001@os1.voip.net">2001@os1.voip.net</A></NOBR></TD>
    <TD vAlign=top><NOBR>+552185022233</NOBR> (BRAZIL CELL 55218)</TD>
    <TD vAlign=top align=right>00:04</TD>
    <TD vAlign=top align=right>0.0650</TD>
    <TD vAlign=top align=right></TD>
    <TD vAlign=top align=right></TD>
    <TD vAlign=top align=right><FONT color=green>Ok (200)</FONT></TD>
    <TD vAlign=top align=right></TD></TR>
  <TR>
    <TD></TD>
    <TD colSpan=11>
      <TABLE style="DISPLAY: block" id=row1 class=extrainfo border=0 
      cellSpacing=0 cellPadding=0 bgColor=#ccddff>
        <TBODY>
        <TR>
          <TD vAlign=top>
            <TABLE border=0 cellSpacing=0 cellPadding=0>
              <TBODY>
              <TR>
                <TD colSpan=3><B>Signalling information</B></TD></TR>
              <TR>
                <TD width=10></TD>
                <TD colSpan=2><A 
                  href="http://187.0.197.172/CDRTool/callsearch.phtml?cdr_source=opensips_radius&amp;cdr_table=radacct&amp;order_by=RadAcctId&amp;order_type=DESC&amp;begin_datetime=1236089340&amp;end_datetime=1249095300&amp;a_number=2001&amp;a_number_comp=contain&amp;SipStatus=200&amp;maxrowsperpage=15&amp;action=search&amp;call_id=1537464575-5264-19%40189.4.254.119"><FONT 
                  color=orange>Click here to show only this call 
              id</FONT></A></TD></TR>
              <TR>
                <TD width=10></TD>
                <TD>Call id: </TD>
                <TD>1537464575-5264-19@189.4.254.119</TD></TR>
              <TR>
                <TD width=10></TD>
                <TD colSpan=2><A 
                  onclick="return window.open('sip_trace.phtml?cdr_source=sip_trace&amp;callid=1537464575-5264-19%40189.4.254.119&amp;fromtag=1685903383&amp;totag=013be01d&amp;proxyIP=187.0.197.171', 'Trace',&#10;            'toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1,width=1000,height=600')" 
                  href="javascript:void(null);"><FONT color=red>Click here to 
                  see the SIP trace for this call</FONT></A> &nbsp;</TD></TR>
              <TR>
                <TD width=10></TD>
                <TD>From/to tags: </TD>
                <TD>1685903383/013be01d</TD></TR>
              <TR>
                <TD></TD>
                <TD>Start time: </TD>
                <TD>2009-07-31 11:27:21 </TD></TR>
              <TR>
                <TD></TD>
                <TD>Stop time: </TD>
                <TD>2009-07-31 11:27:25</TD></TR>
              <TR>
                <TD></TD>
                <TD>Method:</TD>
                <TD>Invite from <I>XXX.XXX.254.119:5264</I> </TD></TR>
              <TR>
                <TD></TD>
                <TD>From:</TD>
                <TD><A 
              href="mailto:2001@os1.voip.net">2001@os1.voip.net</A></TD></TR>
              <TR>
                <TD></TD>
                <TD>Domain:</TD>
                <TD>os1.voip.net</TD></TR>
              <TR>
                <TD></TD>
                <TD>To (dialed URI):</TD>
                <TD><A href="mailto:00552187722175@os1.voip.net"><FONT 
                  color=#0000ff>005521850222333</FONT>@os1.voip.net</A></TD></TR>
              <TR>
                <TD></TD>
                <TD>Canonical URI: </TD>
                <TD><A href="mailto:00552187722175@os1.voip.net"><FONT 
                  color=#0000ff>005521850222333@os1</FONT>.voip.net</A></TD></TR>
              <TR>
                <TD></TD>
                <TD>Next hop URI:</TD>
                <TD><A href="mailto:00552187722175@XXX.XXX.195.56"><FONT 
                  color=#0000ff>005521850222333@XXX.XXX.195</FONT>.56</A></TD></TR>
              <TR>
                <TD></TD>
                <TD>Destination: </TD>
                <TD>BRAZIL CELL (55218)</TD></TR>
              <TR>
                <TD></TD>
                <TD>Billing Party:</TD>
                <TD><FONT color=brown><A 
                  href="mailto:2001@os1.voip.net">2001@os1.voip.net</A></FONT></TD></TR>
              <TR>
                <TD></TD>
                <TD>Reseller:</TD>
                <TD><FONT color=brown>0</FONT></TD></TR></TBODY></TABLE></TD>
          <TD width=30>
          <TD vAlign=top></TD>
          <TD width=30></TD>
          <TD vAlign=top>
            <TABLE border=0 cellSpacing=0 cellPadding=0>
              <TBODY>
              <TR>
                <TD colSpan=3><B>Rating information</B></TD></TR>
              <TR>
                <TD></TD>
                <TD colSpan=2>Duration: 4 s<BR>App: audio<BR>Destination: 
                  55218<BR>Customer: <A 
                  href="mailto:subscriber=2001@os1.voip.net">subscriber=2001@os1.voip.net</A><BR>Connect: 
                  0.0000<BR>StartTime: 2009-07-31 16:27:21<BR>--<BR>Span: 
                  1<BR>Duration: 30 s<BR>Increment: 6<BR>Min duration: 
                  30<BR>ProfileId: plu / weekday<BR>RateId: plu / 0-24h<BR>Rate: 
                  0.1300 / 60 s<BR>Price: 
        0.0650</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></BODY></HTML>