<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt">Yes, the subscriber user01@mydomain (of course, mydomian is a valid domain) is in the cdrtool.prepaid. What do you mean with "You need to add the prepaid user and its balance to cdrtool prepaid table too" is there anywhere else that i should flag/mark the user as prepaid?<br><div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv6695779245"><div><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:10pt;">If you check the logs, the cdrtool is identifying it as prepaid (Type=prepaid):<br>Jun&nbsp; 8 02:51:12 sip cdrtool[13359]: MaxSessionTime Duration=36000 
CallId=1226626922 From=sip:user01@mydomain Gateway=X.X.X.X 
To=sip:user02@mydomain<br>
Jun&nbsp; 8 02:51:12 sip cdrtool[13359]: MaxSessionTime=unlimited 
Type=prepaid CallId=1226626922 BillingParty=user01@mydomain DestId=None<br><div><br></div><div>I think the problem is that the cdrtool is answering MaxSessionTime=unlimited or DestId=None.</div><div>Thanks for your help,</div><div><br></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:verdana, helvetica, sans-serif;background-color:transparent;font-style:normal;">Leo.<br></div><div><br></div>  <div style="font-family:verdana, helvetica, sans-serif;font-size:10pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">Da:</span></b> Adrian Georgescu &lt;ag@ag-projects.com&gt;<br> <b><span style="font-weight:bold;">A:</span></b> OpenSIPS users mailling list &lt;users@lists.opensips.org&gt; <br> <b><span style="font-weight:bold;">Inviato:</span></b> Luned́ 10 Giugno 2013 15:23<br> <b><span
 style="font-weight:bold;">Oggetto:</span></b> Re: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid<br> </font> </div> <div class="yiv6695779245y_msg_container"><br><div id="yiv6695779245"><div>You need to add the prepaid user and its balance to cdrtool prepaid table too.<div><br></div><div>Adrian</div><div><br><div><div>On Jun 10, 2013, at 2:17 PM, Leonardo Uzcudun wrote:</div><br class="yiv6695779245Apple-interchange-newline"><blockquote type="cite"><div><div style="color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:verdana, helvetica, sans-serif;font-size:10pt;">Thanks Adrian for replying me but how do I enable it? The only note i've found in the cdrtool and callcontrol was to add the quote column to the opensips.subscriber (that i've already added it). Should i add another column?<br><div><span><br></span></div><div><br></div>  <div style="font-family:verdana, helvetica, sans-serif;font-size:10pt;"> <div style="font-family:times new
 roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">Da:</span></b> Adrian Georgescu &lt;<a rel="nofollow" ymailto="mailto:ag@ag-projects.com" target="_blank" href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>&gt;<br> <b><span style="font-weight:bold;">A:</span></b> Leonardo Uzcudun &lt;<a rel="nofollow" ymailto="mailto:uzcudunl@yahoo.it" target="_blank" href="mailto:uzcudunl@yahoo.it">uzcudunl@yahoo.it</a>&gt;; OpenSIPS users mailling list &lt;<a rel="nofollow" ymailto="mailto:users@lists.opensips.org" target="_blank" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&gt; <br> <b><span style="font-weight:bold;">Inviato:</span></b> Luned́ 10 Giugno 2013 13:45<br> <b><span style="font-weight:bold;">Oggetto:</span></b> Re: [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid<br> </font> </div> <div class="yiv6695779245y_msg_container"><br><div
 id="yiv6695779245"><div>You must mark the user as prepaid in OpenSIPS subscribers table.<div><br></div><div>Adrian<br><div><br><div><div>On Jun 8, 2013, at 7:26 PM, Leonardo Uzcudun wrote:</div><br class="yiv6695779245Apple-interchange-newline"><blockquote type="cite"><div><div style="color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:verdana, helvetica, sans-serif;font-size:10pt;">I guess, i've got some progress...but i can't understand why is not working.<br>Form the cdrtool logs i've:<br><br>
Jun&nbsp; 8 02:51:12 sip cdrtool[13359]: MaxSessionTime Duration=36000 
CallId=1226626922 From=sip:user01@mydomain Gateway=X.X.X.X 
To=sip:user02@mydomain<br>
Jun&nbsp; 8 02:51:12 sip cdrtool[13359]: MaxSessionTime=unlimited 
Type=prepaid CallId=1226626922 BillingParty=user01@mydomain DestId=None<br>
now cdrtool says: Type=prepaid<br><br>but from the callcontrol:<span><br>Jun&nbsp; 8 02:51:12 sip call-control[29789]: Call id 1226626922 of </span>user01@mydomain<span> to sip:</span>user02@mydomain<span> is postpaid not limited<br>Why callcontrol has identified it as "</span><span>postpaid not limited"?<br><br>My configuration is for a sigle domain, no PSTN.<br>Thanks for your help.... if someone could<br><br></span><div><br></div>  <div style="font-family:verdana, helvetica, sans-serif;font-size:10pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">Da:</span></b> leo &lt;<a rel="nofollow" ymailto="mailto:uzcudunl@yahoo.it" target="_blank" href="mailto:uzcudunl@yahoo.it">uzcudunl@yahoo.it</a>&gt;<br> <b><span style="font-weight:bold;">A:</span></b> <a rel="nofollow" ymailto="mailto:users@lists.opensips.org" target="_blank"
 href="mailto:users@lists.opensips.org">users@lists.opensips.org</a> <br> <b><span style="font-weight:bold;">Inviato:</span></b> Venerd́ 7 Giugno 2013 9:38<br> <b><span style="font-weight:bold;">Oggetto:</span></b>
 [OpenSIPS-Users] CDRTool - Callcontrol - Prepaid<br> </font> </div> <div class="yiv6695779245y_msg_container"><br>Hello:<br><br>I need some help to understand the CDRTool - Callcontrol - Prepaid, all the<br>efforts i could do reading, searching and testing to try to understand how<br>it works were unsuccessful.<br><br>My set-up would be very simple, I would like to give credit (in seconds) to<br>the users and after the call is ended the call duration time should be<br>subtracted to its balance.<br><br>My first concern is how do i map a user in the opensips.subscriber<br>(DB.table) to the prepaid billing?<br>The second one would be, how would i configure the rating/quota/prepaid to<br>have my set-up?<br><br>Thanks for your help.<br><br>Leo.<br><br><br><br>--<br>View this message in context: <a rel="nofollow" target="_blank"
 href="http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-Callcontrol-Prepaid-tp7586750.html">http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-Callcontrol-Prepaid-tp7586750.html</a><br>Sent from the OpenSIPS - Users mailing list archive at <a rel="nofollow" target="_blank" href="http://nabble.com/">Nabble.com</a>.<br><br>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a rel="nofollow" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br></div> </div> </div>  </div></div>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank"
 href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a rel="nofollow" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br></div></div></div></div><br><br></div> </div> </div>  </div></div>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></div></div><br>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a rel="nofollow" target="_blank"
 href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br></div> </div> </div>  </div></div></div><br><br></div> </div> </div>  </div></body></html>