Time & date queury

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
sympology
Posts: 30
Joined: Thu Feb 18, 2010 7:47 am
Location: UK

Time & date queury

Post by sympology »

1. Brekeke Product Name and Version:
SIP Server Advanced edition 3.x
2. Java version:
TBA

3. OS type and the version:
Win2008 R2

4. UA (phone), gateway or other hardware/software involved:
N/A

5. Your problem:
How do I do "uneven" times. The dial plan give a simple 8am - 6pm sort of scenario, but how do I do
Something like 8:30 to 6pm and 9am to 5:30 pm?

Also if the server is set to UK format, DD/MM/YYYY does the date still have to be in US format i.e. MM/DD/YYYY ?

Thanks.
sympology
Posts: 30
Joined: Thu Feb 18, 2010 7:47 am
Location: UK

Re: Time & date queury

Post by sympology »

Ok found this in the Wiki

"Example - 1:
-------------------------------
[Matching Patterns]
$request = ^INVITE
$timerange("9:00", "17:00") = true
--------------------------------
When the incoming call is between 9:00am and 5:00pm, the call will apply this rule."

So ignore this post.

Teach me to read the manual for V2, which we are currently on (but moving to V3 in the next month).
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

> Also if the server is set to UK format, DD/MM/YYYY does the date still have to be in US format i.e. MM/DD/YYYY ?

FYI:
$date( "dd/MM/yyyy" )

It will return a date with UK format.
Post Reply