[SR-Users] Suggestions for time utils

Andreas Granig agranig at sipwise.com
Mon Dec 19 19:50:58 CET 2011


Hi Daniel,

On 12/19/2011 07:29 PM, Daniel-Constantin Mierla wrote:
> I don't know what are all the functions you think of, but for the
> example provided above, config file does it easy right now. There is a
> pseudo-variable that gives broken-time attribute that can be used with
> avp_check(), iirc, should be:
> 
> avp_db_load(...);
> if(avp_check("$time(wday)", "eq/$avp(s:cf_weekday)/g")) { do CF }
> 
> Of course there is the option of doing while loop, but maybe gets to
> large for desired config file.

This is pretty much what I had in mind with my new functions/module, but
I've completely overlooked that PV when searching the docs for this
feature. Thank you very much for pointing that out!

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111219/2a21f46e/attachment.pgp>


More information about the sr-users mailing list