<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>in addition, check also cnxcc module, if you haven't done it yet,
      it may offer the features you are looking for, without having to
      build them with timer callbacks.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 18.05.21 14:16, Henning Westerholt
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM0PR05MB65959E32D47AC591C0FB1686C52C9@AM0PR05MB6595.eurprd05.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Just some ideas for research:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">IMS route:
            <a
              href="https://kamailio.org/docs/modules/devel/modules/ims_charging.html"
              moz-do-not-send="true">https://kamailio.org/docs/modules/devel/modules/ims_charging.html</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Using SIP session timer and then executing on
            the periodic re-INVITE the check and end the dialog if
            needed<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Insert the call in a user specific profile
            together with a dialog timeout and then periodically check
            the profiles in a timer route and update the timeout<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Insert the call in a hash table together with a
            timeout and then periodically checks this again in a timer
            route<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Cheers,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Henning<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">-- <o:p>
            </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Henning Westerholt –
          </span><span style="mso-fareast-language:EN-US"><a
              href="https://skalatan.de/blog/" moz-do-not-send="true"><span
                style="color:#0563C1" lang="EN-GB">https://skalatan.de/blog/</span></a></span><span
            style="mso-fareast-language:EN-US" lang="EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB">Kamailio services –
          </span><span style="mso-fareast-language:EN-US"><a
              href="https://gilawa.com/" moz-do-not-send="true"><span
                style="color:#0563C1" lang="EN-GB">https://gilawa.com</span></a></span><span
            style="mso-fareast-language:EN-US">
            <span lang="EN-GB"><o:p></o:p></span></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> </o:p></span></p>
        <div style="border:none;border-top:solid #E1E1E1
          1.0pt;padding:3.0pt 0cm 0cm 0cm">
          <p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b>
            sr-users <a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.kamailio.org"><sr-users-bounces@lists.kamailio.org></a>
            <b>On Behalf Of </b>Avremy Cohen<br>
            <b>Sent:</b> Tuesday, May 18, 2021 11:29 AM<br>
            <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
            <b>Subject:</b> [SR-Users] execute callback every X minutes
            mid call<o:p></o:p></p>
        </div>
        <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
        <div>
          <div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt">Hi <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt">I am
                trying to execute code every X min in active calls and I
                cant seem to find any way to do this. I basically have a
                function  that checks if the user has balance and
                permission to carry on the call and the callback should
                trigger it every X mins. <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt">The 
                call_control module doesnt work for me since<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt">               
                A. It doesn't trigger a function it just ends the
                callback<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt">               
                B. it uses an external application to calculate it <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt">any advice
                is appreciated <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal" style="margin-left:35.4pt">Avi<o:p></o:p></p>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>