<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    this functionality should be already there. Doesn't work for you?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 8/14/12 7:16 PM, Brandon Armstead
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACr1DbAyjd4+-0AYVfXQKAg7FAVpZQOzLtvOTPigGx9Yvigrwg@mail.gmail.com"
      type="cite">Sorry to wake up an old thread.
      <div><br>
      </div>
      <div>However - I am looking to export this $timef function to the
        param initialization for accounting, i.e. db_table_acc</div>
      <div><br>
      </div>
      <div>modparam("db_table_acc", "acc_$ftime(Ymd)");</div>
      <div><br>
      </div>
      <div>I've looked into completing this myself however I simply am
        not familiar enough at this point between the three different
        modules that it would take to implement this (acc, dbsr1, pv).</div>
      <div><br>
      </div>
      <div>Look forward to any help / insight you may be able to
        provide.</div>
      <div><br>
      </div>
      <div>Thanks as always!</div>
      <div><br>
      </div>
      <div>Sincerely,</div>
      <div>Brandon Armstead<br>
        <br>
        <div class="gmail_quote">On Mon, Dec 19, 2011 at 11:55 AM,
          Daniel-Constantin Mierla <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@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">Hello,
            <div>
              <div class="h5"><br>
                <br>
                On 12/19/11 7:50 PM, Andreas Granig wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Hi Daniel,<br>
                  <br>
                  On 12/19/2011 07:29 PM, Daniel-Constantin Mierla
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    I don't know what are all the functions you think
                    of, but for the<br>
                    example provided above, config file does it easy
                    right now. There is a<br>
                    pseudo-variable that gives broken-time attribute
                    that can be used with<br>
                    avp_check(), iirc, should be:<br>
                    <br>
                    avp_db_load(...);<br>
                    if(avp_check("$time(wday)",
                    "eq/$avp(s:cf_weekday)/g")) { do CF }<br>
                    <br>
                    Of course there is the option of doing while loop,
                    but maybe gets to<br>
                    large for desired config file.<br>
                  </blockquote>
                  This is pretty much what I had in mind with my new
                  functions/module, but<br>
                  I've completely overlooked that PV when searching the
                  docs for this<br>
                  feature. Thank you very much for pointing that out!<br>
                </blockquote>
              </div>
            </div>
            for sake of public knowledge, just to add on time specific
            features: there is also $timef(format) which returns current
            time attributes based on strftime specifiers -- its
            documentation was missing, I just added it. Also, there is a
            transformation {s.ftime,format) which can take any integer
            variable holding timestamp and return value based on
            strftime format.
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                Cheers,<br>
                Daniel<br>
                <br>
                -- <br>
                Daniel-Constantin Mierla -- <a moz-do-not-send="true"
                  href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
                <a moz-do-not-send="true"
                  href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a>
                -- <a moz-do-not-send="true"
                  href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><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>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </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 Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
  </body>
</html>