<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    checked the sources and it seems that Juha reverted this feature
    with the commit:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=959ab319903b9625ead7292cc9638a20146e1cca">http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=959ab319903b9625ead7292cc9638a20146e1cca</a><br>
    <br>
    I guess it was accidentally, I will ask on devels list.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 8/14/12 7:34 PM, Brandon Armstead
      wrote:<br>
    </div>
    <blockquote cite="mid:69D31FDB-B6E7-4476-8014-D0B1CAAC1B39@cryy.com"
      type="cite">
      <div>Let me also add that I am using 3.2 but I see the commit was
        quite some time ago so I have a feeling it wouldn't work in 3.3
        either.  Thanks!</div>
      <div><br>
        Sent from my iPhone</div>
      <div><br>
        On Aug 14, 2012, at 10:27 AM, Daniel-Constantin Mierla &lt;<a
          moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <meta content="text/html; charset=UTF-8"
            http-equiv="Content-Type">
          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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
        </div>
      </blockquote>
    </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>