[OpenSIPS-Users] Dynamic Routing timerec

Andrei Datcu andreidatcu at opensips.org
Fri Sep 12 15:24:42 CEST 2014


As far as time-rec is concerned and older rule will always match (that is if 
specified like in your example, i.e no <until> or <bound of recurrence>)

If you want the newer rule to be picked, you'll have to define it with a higher 
priority than the older one. Quoting from 
http://www.opensips.org/html/docs/modules/1.12.x/drouting.html#id293639

"within the set of rules is applied the time criteria, and the rule which has 
the highest priority and matches the time criteria is selected to drive the 
routing. "


In your case both rules will pass the so-called "time criteria". So the one 
with the highest priority will be applied.



More information about the Users mailing list