<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    first, thanks for publishing the extensions to the public space.<br>
    <br>
    If you want, you can include the module in the GIT repository of
    Kamailio. It will make installation easier, being part of the
    default source tree and packaged in releases.<br>
    <br>
    If you are interested in maintaining it in our git repository, write
    me to sort out development access.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 1/21/13 10:09 PM, Carlos Ruiz D&iacute;az
      wrote:<br>
    </div>
    <blockquote
cite="mid:CA+3gBcnVCa8SizygXi+odKVZi1gjecHdB=oLCCzhoJ62-0dO8g@mail.gmail.com"
      type="cite">
      <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&nbsp;two months of delay, I would like to share the credit
        control module we talked about with the hope of helping somehow
        to the&nbsp;community&nbsp;with this contribution.</div>
      <div><br>
      </div>
      <div>The project has three parts:</div>
      <div><br>
      </div>
      <div>- The module itself:&nbsp;<a moz-do-not-send="true"
          href="https://github.com/caruizdiaz/cnxcc">https://github.com/caruizdiaz/cnxcc</a></div>
      <div>- The web interface:&nbsp;<a moz-do-not-send="true"
          href="https://github.com/caruizdiaz/cnxcc-web">https://github.com/caruizdiaz/cnxcc-web</a></div>
      <div>- A helper script:&nbsp;<a moz-do-not-send="true"
          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>--&nbsp;<br>
        Carlos
        <div><a moz-do-not-send="true" 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&iacute;az <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:carlos.ruizdiaz@gmail.com" target="_blank">carlos.ruizdiaz@gmail.com</a>&gt;</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">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:abalashov@evaristesys.com"
                          target="_blank">abalashov@evaristesys.com</a>&gt;</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! &nbsp;I look forward to this contribution.
                        <div>
                          <div><br>
                            <br>
                            On 11/19/2012 03:00 PM, Carlos Ruiz D&iacute;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>
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1. to monitor the calls grouped
                              by call-group.<br>
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2. to monitor the calls of a
                              certain call-group.<br>
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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 &lt;<a
                            moz-do-not-send="true"
                            href="http://www.conexiongroup.com/"
                            target="_blank">http://www.conexiongroup.com/</a>&gt;
                          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>
                            &lt;<a moz-do-not-send="true"
                              href="mailto:abalashov@evaristesys.com"
                              target="_blank">abalashov@evaristesys.com</a>
                            &lt;mailto:<a moz-do-not-send="true"
                              href="mailto:abalashov@evaristesys.com"
                              target="_blank">abalashov@evaristesys.com</a>&gt;&gt;
                            wrote:<br>
                            <br>
                            &nbsp; &nbsp; Not presently, but I am actually working
                            on an enhancement to the<br>
                            &nbsp; &nbsp; dialog module (for contribution back
                            into the open-source project)<br>
                            &nbsp; &nbsp; that will do just that, as I have this
                            need also.<br>
                            <br>
                            <br>
                            &nbsp; &nbsp; On 11/19/2012 09:29 AM, Camila Troncoso
                            wrote:<br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; Hi,<br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; I have a kamailio proxy server
                            that&acute;s controlling the limit of calls<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; that clients can make with profile
                            grouping. In other side I<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; also limit<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; clients call duration &nbsp;base on users
                            credit ( DATABASE) &nbsp;and<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; /timeout<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; /feature .<br>
                            <br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; Before the calls get answer I
                            calculate how much time the client has<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; left for this call and set the
                            timeout variable. When the time is<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; reached the proxy sends BYEs two
                            both sides of this call.<br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; I want when the call timeout, as
                            before explain, all other calls<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; in the<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; same profile end too, because the
                            client has expired his credit.<br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; Is there a way to achieve this?<br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; Regards,<br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; Camila<br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; *Camila Troncoso **|* Ingeniero de
                            Desarrollo<br>
                            <br>
                            &nbsp; &nbsp; &nbsp; &nbsp; RedVoiss *|*<a
                              moz-do-not-send="true"
                              href="mailto:ctroncoso@redvoiss.net"
                              target="_blank">ctroncoso@redvoiss.net</a><br>
                          </div>
                          &nbsp; &nbsp; &nbsp; &nbsp; &lt;mailto:<a moz-do-not-send="true"
                            href="mailto:ctroncoso@redvoiss.net"
                            target="_blank">ctroncoso@redvoiss.net</a>&gt;
                          &lt;mailto:<a moz-do-not-send="true"
                            href="mailto:ctroncoso@redvoiss.net"
                            target="_blank">ctroncoso@redvoiss.net</a><br>
                          &nbsp; &nbsp; &nbsp; &nbsp; &lt;mailto:<a moz-do-not-send="true"
                            href="mailto:ctroncoso@redvoiss.net"
                            target="_blank">ctroncoso@redvoiss.net</a>&gt;__&gt;<br>
                          <br>
                          &nbsp; &nbsp; &nbsp; &nbsp; Santiago- Chile *|*<a
                            moz-do-not-send="true"
                            href="tel:%2B56%202%202408535"
                            value="+5622408535" target="_blank">+56 2
                            2408535</a> &lt;tel:%2B56%202%202408535&gt;<br>
                          <br>
                          &nbsp; &nbsp; &nbsp; &nbsp; <a moz-do-not-send="true"
                            href="http://www.redvoiss.net"
                            target="_blank">www.redvoiss.net</a> &lt;<a
                            moz-do-not-send="true"
                            href="http://www.redvoiss.net"
                            target="_blank">http://www.redvoiss.net</a>&gt;
                          &lt;<a moz-do-not-send="true"
                            href="http://www.redvoiss.net"
                            target="_blank">http://www.redvoiss.net</a>&gt;<br>
                          <br>
                          <br>
                          <br>
                          &nbsp; &nbsp; &nbsp; &nbsp; _________________________________________________
                          <div><br>
                            &nbsp; &nbsp; &nbsp; &nbsp; SIP Express Router (SER) and
                            Kamailio (OpenSER) - sr-users<br>
                            &nbsp; &nbsp; &nbsp; &nbsp; mailing list<br>
                          </div>
                          &nbsp; &nbsp; &nbsp; &nbsp; <a moz-do-not-send="true"
                            href="mailto:sr-users@lists.sip-router.org"
                            target="_blank">sr-users@lists.sip-router.org</a>
                          &lt;mailto:<a moz-do-not-send="true"
                            href="mailto:sr-users@lists.sip-router.org"
                            target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
                          &nbsp; &nbsp; &nbsp; &nbsp; <a moz-do-not-send="true"
                            href="http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users"
                            target="_blank">http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users</a>
                          &lt;<a moz-do-not-send="true"
                            href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                            target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;
                          <div>
                            <br>
                            <br>
                            <br>
                            <br>
                            &nbsp; &nbsp; --<br>
                            &nbsp; &nbsp; Alex Balashov - Principal<br>
                            &nbsp; &nbsp; Evariste Systems LLC<br>
                            &nbsp; &nbsp; 235 E Ponce de Leon Ave<br>
                            &nbsp; &nbsp; Suite 106<br>
                            &nbsp; &nbsp; Decatur, GA 30030<br>
                          </div>
                          &nbsp; &nbsp; Tel: <a moz-do-not-send="true"
                            href="tel:%2B1-678-954-0670"
                            value="+16789540670" target="_blank">+1-678-954-0670</a>
                          &lt;tel:%2B1-678-954-0670&gt;<br>
                          &nbsp; &nbsp; Fax: <a moz-do-not-send="true"
                            href="tel:%2B1-404-961-1892"
                            value="+14049611892" target="_blank">+1-404-961-1892</a>
                          &lt;tel:%2B1-404-961-1892&gt;
                          <div><br>
                            &nbsp; &nbsp; Web: <a moz-do-not-send="true"
                              href="http://www.evaristesys.com/"
                              target="_blank">http://www.evaristesys.com/</a>,
                            <a moz-do-not-send="true"
                              href="http://www.alexbalashov.com/"
                              target="_blank">http://www.alexbalashov.com/</a><br>
                            <br>
                          </div>
                          &nbsp; &nbsp; _________________________________________________
                          <div><br>
                            &nbsp; &nbsp; SIP Express Router (SER) and Kamailio
                            (OpenSER) - sr-users mailing list<br>
                          </div>
                          &nbsp; &nbsp; <a moz-do-not-send="true"
                            href="mailto:sr-users@lists.sip-router.org"
                            target="_blank">sr-users@lists.sip-router.org</a>
                          &lt;mailto:<a moz-do-not-send="true"
                            href="mailto:sr-users@lists.sip-router.org"
                            target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
                          &nbsp; &nbsp; <a moz-do-not-send="true"
                            href="http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users"
                            target="_blank">http://lists.sip-router.org/__cgi-bin/mailman/listinfo/sr-__users</a>
                          <div><br>
                            &nbsp; &nbsp; &lt;<a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>&gt;<br>
                            <br>
                            <br>
                            <br>
                            <br>
                            --<br>
                            Carlos<br>
                            <a moz-do-not-send="true"
                              href="http://caruizdiaz.com"
                              target="_blank">http://caruizdiaz.com</a><br>
                            <a moz-do-not-send="true"
                              href="tel:%2B595981146623"
                              value="+595981146623" target="_blank">+595981146623</a><br>
                            <br>
                            <br>
                            <br>
                            _______________________________________________<br>
                            SIP Express Router (SER) and Kamailio
                            (OpenSER) - sr-users mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:sr-users@lists.sip-router.org"
                              target="_blank">sr-users@lists.sip-router.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-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 moz-do-not-send="true"
                              href="tel:%2B1-678-954-0670"
                              value="+16789540670" target="_blank">+1-678-954-0670</a><br>
                            Fax: <a moz-do-not-send="true"
                              href="tel:%2B1-404-961-1892"
                              value="+14049611892" target="_blank">+1-404-961-1892</a><br>
                            Web: <a moz-do-not-send="true"
                              href="http://www.evaristesys.com/"
                              target="_blank">http://www.evaristesys.com/</a>,
                            <a moz-do-not-send="true"
                              href="http://www.alexbalashov.com/"
                              target="_blank">http://www.alexbalashov.com/</a><br>
                            <br>
                            _______________________________________________<br>
                            SIP Express Router (SER) and Kamailio
                            (OpenSER) - sr-users mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:sr-users@lists.sip-router.org"
                              target="_blank">sr-users@lists.sip-router.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <div><br>
                    </div>
                    -- <br>
                    Carlos
                    <div><a moz-do-not-send="true"
                        href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a></div>
                    <div><a moz-do-not-send="true"
                        href="tel:%2B595981146623" value="+595981146623"
                        target="_blank">+595981146623</a></div>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, April 16-17, 2013, Berlin
 - <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
  </body>
</html>