<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=265533612-29112006><FONT face=Arial color=#0000ff size=2>I will 
do that !! </FONT></SPAN></DIV>
<DIV><SPAN class=265533612-29112006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=265533612-29112006><FONT face=Arial color=#0000ff size=2>thanks 
Greger.</FONT></SPAN></DIV>
<DIV><SPAN class=265533612-29112006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=265533612-29112006><FONT face=Arial color=#0000ff 
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=265533612-29112006><FONT face=Arial color=#0000ff 
size=2>Ricardo.-</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Mensaje original-----<BR><B>De:</B> Greger V. Teigre 
  [mailto:greger@teigre.com]<BR><B>Enviado el:</B> miércoles, 29 de noviembre de 
  2006 7:32<BR><B>Para:</B> Ricardo Martinez<BR><B>CC:</B> Atle Samuelsen; 
  Andrei Pelinescu-Onciul; serusers@iptel.org<BR><B>Asunto:</B> Re: [Serusers] 
  route by time of the day?<BR><BR></FONT></DIV>Hi Ricardo,<BR>I suggest you add 
  the new function on the wishlist for SER on the updated tracker:<BR><A 
  class=moz-txt-link-freetext 
  href="http://tracker.iptel.org/browse/SER">http://tracker.iptel.org/browse/SER</A><BR><BR>There's 
  a Wishlist version you can assign your wish to ;-)<BR>g-)<BR><BR>Ricardo 
  Martinez wrote: 
  <BLOCKQUOTE 
  cite=midC92D4A34C6B8FC44A10451D881EE1BE71AB8DE@marantz.magenta.local 
  type="cite"><PRE wrap="">Thanks for all your answers.
        Finally i made a tiny script in shell, that check for certain time of the day, then i call the script via exec_msg in my ser.cfg and decide my routing logic, works pretty well.
Anyway if you can include a command in the SER core, that check for certain hour in the day it would be very helpful.
Thanks !

Best Regards,

Ricardo Martinez.-

-----Mensaje original-----
De: Atle Samuelsen [<A class=moz-txt-link-freetext href="mailto:clona@cyberhouse.no">mailto:clona@cyberhouse.no</A>]
Enviado el: martes, 21 de noviembre de 2006 3:08
Para: Andrei Pelinescu-Onciul
CC: Ricardo Martinez; <A class=moz-txt-link-abbreviated href="mailto:serusers@iptel.org">serusers@iptel.org</A>
Asunto: Re: [Serusers] route by time of the day?



Hi again :) 

* Andrei Pelinescu-Onciul <A class=moz-txt-link-rfc2396E href="mailto:andrei@iptel.org">&lt;andrei@iptel.org&gt;</A> [061120 22:59]:
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">On Nov 20, 2006 at 22:47, Atle Samuelsen <A class=moz-txt-link-rfc2396E href="mailto:clona@cyberhouse.no">&lt;clona@cyberhouse.no&gt;</A> wrote:
    </PRE>
      <BLOCKQUOTE type="cite"><PRE wrap="">Hi,


* Andrei Pelinescu-Onciul <A class=moz-txt-link-rfc2396E href="mailto:andrei@iptel.org">&lt;andrei@iptel.org&gt;</A> [061120 21:39]:
      </PRE>
        <BLOCKQUOTE type="cite"><PRE wrap="">On Nov 20, 2006 at 16:50, Ricardo Martinez <A class=moz-txt-link-rfc2396E href="mailto:rmartinez@redvoiss.net">&lt;rmartinez@redvoiss.net&gt;</A> wrote:
        </PRE>
          <BLOCKQUOTE type="cite"><PRE wrap="">Hello list.
        I'm wondering if anyone has implemented a routing rule depending on the time of the day.
          </PRE></BLOCKQUOTE><PRE wrap="">None that I know of.

        </PRE>
          <BLOCKQUOTE type="cite"><PRE wrap="">        Is there a way to acomplish this?, maybe using AVP ? or something like that?
          </PRE></BLOCKQUOTE><PRE wrap="">You would need either a new module or you could perhaps modify lcr to
take the date into account (should be easy).
        </PRE></BLOCKQUOTE><PRE wrap="">Why not extend the avp-framework ? you could then do a
if($time&gt;=1200){
        route(1200)
}else{
        route(else);
};
      </PRE></BLOCKQUOTE><PRE wrap="">I've assumed that a huge date based routing table was involved (that's
why I suggested changing lcr).
Anyway avp is not the answer, avp are used to store attributes (and the
current time is not a user/domain attribute).
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->Sorry my bad there. I tought even one more step ahead :$ I was thinking
useing avp + time as a call-forwarding solution ;) but that could
proberbly be done by something like 

if(gettimeofday() &gt;$time_from_database){
};

  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">A new script functions would work:
if (gettimeofday()&gt;"10:01:45"){...}.

I can see the use, but right now adding this has a very low priority
(next release if there are more requests and we don't forget :-)).
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->
Thanks Andrei, Would be nice to see at some point of time.

- Atle

i&gt; 
  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">Andrei
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->_______________________________________________
Serusers mailing list
<A class=moz-txt-link-abbreviated href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</A>
<A class=moz-txt-link-freetext href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</A>


  </PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>