<div>Hello Alex, Camila, list,</div><div><br></div><div>I'm replying this old thread to follow the sequence of the conversation.</div><div><br></div><div>With two months of delay, I would like to share the credit control module we talked about with the hope of helping somehow to the community with this contribution.</div>
<div><br></div><div>The project has three parts:</div><div><br></div><div>- The module itself: <a href="https://github.com/caruizdiaz/cnxcc">https://github.com/caruizdiaz/cnxcc</a></div><div>- The web interface: <a href="https://github.com/caruizdiaz/cnxcc-web">https://github.com/caruizdiaz/cnxcc-web</a></div>
<div>- A helper script: <a href="https://github.com/caruizdiaz/cnxcc-db-sync">https://github.com/caruizdiaz/cnxcc-db-sync</a></div><div><br></div><div>Mixed together, we have a ready-to-use credit control monitoring tool.</div>
<div><br></div><div>Regards,</div><div><br></div><div>-- <br>Carlos<div><a href="http://caruizdiaz.com/" target="_blank">http://caruizdiaz.com</a></div><div>+595981146623</div><div><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 5:10 PM, Carlos Ruiz Díaz <span dir="ltr"><<a href="mailto:carlos.ruizdiaz@gmail.com" target="_blank">carlos.ruizdiaz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks! I'll start a new thread and I'll put the code on github.<div><br></div><div>If it turns to be actually useful to the community, it would be great, but if not, it will be a good learning material for the developers coming, because it covers important topics on Kamalio's Core Development :D.</div>
<div><br></div><div>Best regards.<div><div class="h5"><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 5:01 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That is indeed a rather sophisticated superset of what I've been working on! I look forward to this contribution.<div>
<div><br>
<br>
On 11/19/2012 03:00 PM, Carlos Ruiz Díaz wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Hello Camila, Alex.<br>
<br>
I wrote a module that you may find useful for this purpose and which I'm<br>
planning to release in the next few days.<br>
<br>
Please allow me to introduce its features:<br>
<br>
- It relies on the dialog module to track the calls it handles<br>
<br>
- You can group calls by an ID, which can be the client ID, profile ID<br>
or whatever value you want as long as it uniquely identify a group of calls.<br>
<br>
- You can have several calls consuming the same pool of credit at the<br>
same time. Every call belongs to a call-group. A call-group can have one<br>
or more calls.<br>
<br>
- When the credit (time) is exhausted, all calls of the same call-group<br>
are automatically finalized.<br>
<br>
- An event_route is fired for every call forced to finalize. It contains<br>
a faked SIP message but with the right call-id and tags of the call<br>
forced to end. This may be useful for back-office operations such as<br>
billing, logging, rtpproxy tear down, etc.<br>
<br>
- It exposes 3 xmlrpc commands:<br>
1. to monitor the calls grouped by call-group.<br>
2. to monitor the calls of a certain call-group.<br>
3. to finalize a call.<br>
<br>
- It has a (very ugly, but improvable) web interface for real time<br>
monitoring using the 3 xmlrpc commands. You can see on line what's<br>
happening in the module and you can terminate calls through it.<br>
<br>
- It was designed to be maintained in RAM.<br>
<br>
- I'm adding other ways to make the credit control, not only with<br>
timeout in seconds, but with credit amount, cost per second, cadence,<br>
rate, etc.<br>
<br></div></div>
We at conexiongroup <<a href="http://www.conexiongroup.com/" target="_blank">http://www.conexiongroup.com/</a><u></u>> are making the final<div><br>
arrangements to release the source code and hopefully, it will be<br>
helpful to you or to other people that might have faced the same<br>
problems we had and which took us to the decision of writing this code.<br>
Regards.<br>
<br>
Carlos.<br>
<br>
On Mon, Nov 19, 2012 at 11:50 AM, Alex Balashov<br></div><div>
<<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a> <mailto:<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.<u></u>com</a>>> wrote:<br>
<br>
Not presently, but I am actually working on an enhancement to the<br>
dialog module (for contribution back into the open-source project)<br>
that will do just that, as I have this need also.<br>
<br>
<br>
On 11/19/2012 09:29 AM, Camila Troncoso wrote:<br>
<br>
Hi,<br>
<br>
I have a kamailio proxy server that´s controlling the limit of calls<br>
that clients can make with profile grouping. In other side I<br>
also limit<br>
clients call duration base on users credit ( DATABASE) and<br>
/timeout<br>
/feature .<br>
<br>
<br>
Before the calls get answer I calculate how much time the client has<br>
left for this call and set the timeout variable. When the time is<br>
reached the proxy sends BYEs two both sides of this call.<br>
<br>
I want when the call timeout, as before explain, all other calls<br>
in the<br>
same profile end too, because the client has expired his credit.<br>
<br>
Is there a way to achieve this?<br>
<br>
Regards,<br>
<br>
Camila<br>
<br>
*Camila Troncoso **|* Ingeniero de Desarrollo<br>
<br>
RedVoiss *|*<a href="mailto:ctroncoso@redvoiss.net" target="_blank">ctroncoso@redvoiss.net</a><br></div>
<mailto:<a href="mailto:ctroncoso@redvoiss.net" target="_blank">ctroncoso@redvoiss.net</a><u></u>> <mailto:<a href="mailto:ctroncoso@redvoiss.net" target="_blank">ctroncoso@redvoiss.net</a><br>
<mailto:<a href="mailto:ctroncoso@redvoiss.net" target="_blank">ctroncoso@redvoiss.net</a><u></u>>__><br>
<br>
Santiago- Chile *|*<a href="tel:%2B56%202%202408535" value="+5622408535" target="_blank">+56 2 2408535</a> <tel:%2B56%202%202408535><br>
<br>
<a href="http://www.redvoiss.net" target="_blank">www.redvoiss.net</a> <<a href="http://www.redvoiss.net" target="_blank">http://www.redvoiss.net</a>> <<a href="http://www.redvoiss.net" target="_blank">http://www.redvoiss.net</a>><br>
<br>
<br>
<br>
______________________________<u></u>___________________<div><br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users<br>
mailing list<br></div>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a> <mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>><br>
<a href="http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users" target="_blank">http://lists.sip-router.org/__<u></u>cgi-bin/mailman/listinfo/sr-__<u></u>users</a> <<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a>><div>
<br>
<br>
<br>
<br>
--<br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br></div>
Tel: <a href="tel:%2B1-678-954-0670" value="+16789540670" target="_blank">+1-678-954-0670</a> <tel:%2B1-678-954-0670><br>
Fax: <a href="tel:%2B1-404-961-1892" value="+14049611892" target="_blank">+1-404-961-1892</a> <tel:%2B1-404-961-1892><div><br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com/" target="_blank">http://www.alexbalashov.com/</a><br>
<br></div>
______________________________<u></u>___________________<div><br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br></div>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a> <mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>><br>
<a href="http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users" target="_blank">http://lists.sip-router.org/__<u></u>cgi-bin/mailman/listinfo/sr-__<u></u>users</a><div><br>
<<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a>><br>
<br>
<br>
<br>
<br>
--<br>
Carlos<br>
<a href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a><br>
<a href="tel:%2B595981146623" value="+595981146623" target="_blank">+595981146623</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
<br>
</div></blockquote><div><div>
<br>
<br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br>
Tel: <a href="tel:%2B1-678-954-0670" value="+16789540670" target="_blank">+1-678-954-0670</a><br>
Fax: <a href="tel:%2B1-404-961-1892" value="+14049611892" target="_blank">+1-404-961-1892</a><br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com/" target="_blank">http://www.alexbalashov.com/</a><br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Carlos<div><a href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a></div><div><a href="tel:%2B595981146623" value="+595981146623" target="_blank">+595981146623</a></div>
<br>
</div></div></div>
</blockquote></div><br><br>
</div></div>