Hello list. I'm wondering if anyone has implemented a routing rule depending on the time of the day. Is there a way to acomplish this?, maybe using AVP ? or something like that?
Hope that someone could help me..
Regards,
Ricardo Martinez.-
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).
Andrei
Hi Andrei. Thanks for your answer. But, is there a way to load via AVP the current systema time? and maybe compare it against a fixed value ?
Thanks.
Regards, Ricardo.-
-----Mensaje original----- De: Andrei Pelinescu-Onciul [mailto:andrei@iptel.org] Enviado el: lunes, 20 de noviembre de 2006 17:39 Para: Ricardo Martinez CC: serusers@iptel.org Asunto: Re: [Serusers] route by time of the day?
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).
Andrei
On Nov 20, 2006 at 18:14, Ricardo Martinez rmartinez@redvoiss.net wrote:
Hi Andrei. Thanks for your answer. But, is there a way to load via AVP the current systema time? and maybe compare it against a fixed value ?
No.
Andrei
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); };
-A
Andrei _______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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). 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 :-)).
Andrei
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
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
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
I will do that !!
thanks Greger.
Regards, Ricardo.-
-----Mensaje original----- De: Greger V. Teigre [mailto:greger@teigre.com] Enviado el: miércoles, 29 de noviembre de 2006 7:32 Para: Ricardo Martinez CC: Atle Samuelsen; Andrei Pelinescu-Onciul; serusers@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@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 mailto:andrei@iptel.org andrei@iptel.org [061120 22:59]:
On Nov 20, 2006 at 22:47, Atle Samuelsen mailto:clona@cyberhouse.no clona@cyberhouse.no wrote:
Hi,
* Andrei Pelinescu-Onciul mailto:andrei@iptel.org andrei@iptel.org [061120 21:39]:
On Nov 20, 2006 at 16:50, Ricardo Martinez mailto:rmartinez@redvoiss.net 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