Hi Ricardo, I suggest you add the new function on the wishlist for SER on the updated tracker: http://tracker.iptel.org/browse/SER
There's a Wishlist version you can assign your wish to ;-) g-)
Ricardo Martinez wrote:
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 [mailto:clona@cyberhouse.no] Enviado el: martes, 21 de noviembre de 2006 3:08 Para: Andrei Pelinescu-Onciul CC: Ricardo Martinez; serusers@iptel.org Asunto: Re: [Serusers] route by time of the day?
Hi again :)
- Andrei Pelinescu-Onciul andrei@iptel.org [061120 22:59]:
On Nov 20, 2006 at 22:47, Atle Samuelsen clona@cyberhouse.no wrote:
Hi,
- Andrei Pelinescu-Onciul andrei@iptel.org [061120 21:39]:
On Nov 20, 2006 at 16:50, Ricardo Martinez rmartinez@redvoiss.net wrote:
Hello list. I'm wondering if anyone has implemented a routing rule depending on the time of the day.
None that I know of.
Is there a way to acomplish this?, maybe using AVP ? or something like that?
You would need either a new module or you could perhaps modify lcr to take the date into account (should be easy).
Why not extend the avp-framework ? you could then do a if($time>=1200){ route(1200) }else{ route(else); };
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).
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){ };
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 :-)).
Thanks Andrei, Would be nice to see at some point of time.
- Atle
i>
Andrei
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers