[SR-Users] tmrec_match function is not working

José Seabra joseseabra4 at gmail.com
Mon Dec 30 19:36:48 CET 2013


Hi there,
I'm trying use tmrec_match in order to create routing rules based on time,
but without sucess, please have a look at my code and the errors that i got:

Code block:

if(tmrec_match("20130101T080500|24H|weekly|||MO,TU,WE,TH,FR"))
                        {
                                 xlog("L_INFO", "time match R=$ru
ID=$ci\n");
                        }


Error:

ERROR: <core> [tmrec.c:1320]: tr_parse_recurrence_string(): failed to parse
time recurrence [20130101T080500|24H]

My server has the following date/hour
Seg Dez 30 18:35:57 WET 2013


Thank for your help


-- 
Cumprimentos
José Seabra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131230/523a5f1b/attachment.html>


More information about the sr-users mailing list