<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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"><andrei@iptel.org></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"><clona@cyberhouse.no></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
* Andrei Pelinescu-Onciul <a class="moz-txt-link-rfc2396E" href="mailto:andrei@iptel.org"><andrei@iptel.org></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"><rmartinez@redvoiss.net></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>=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() >$time_from_database){
};
</pre>
<blockquote type="cite">
<pre wrap="">A new script functions would work:
if (gettimeofday()>"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>
</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>
</body>
</html>