[Serusers] route by time of the day?
Ricardo Martinez
rmartinez at redvoiss.net
Wed Nov 29 13:37:46 CET 2006
I will do that !!
thanks Greger.
Regards,
Ricardo.-
-----Mensaje original-----
De: Greger V. Teigre [mailto:greger at teigre.com]
Enviado el: miércoles, 29 de noviembre de 2006 7:32
Para: Ricardo Martinez
CC: Atle Samuelsen; Andrei Pelinescu-Onciul; serusers at iptel.org
Asunto: Re: [Serusers] route by time of the day?
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 at cyberhouse.no]
Enviado el: martes, 21 de noviembre de 2006 3:08
Para: Andrei Pelinescu-Onciul
CC: Ricardo Martinez; serusers at iptel.org
Asunto: Re: [Serusers] route by time of the day?
Hi again :)
* Andrei Pelinescu-Onciul <mailto:andrei at iptel.org> <andrei at iptel.org> [061120 22:59]:
On Nov 20, 2006 at 22:47, Atle Samuelsen <mailto:clona at cyberhouse.no> <clona at cyberhouse.no> wrote:
Hi,
* Andrei Pelinescu-Onciul <mailto:andrei at iptel.org> <andrei at iptel.org> [061120 21:39]:
On Nov 20, 2006 at 16:50, Ricardo Martinez <mailto:rmartinez at redvoiss.net> <rmartinez at 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 at lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20061129/6a9a98da/attachment.htm>
More information about the sr-users
mailing list