Forums Read-only archive

Please Help for a Dialplan

5 posts · Brekeke SIP Server Forum

looping92 Original post
Hi,

1. Brekeke Product Name and version:

Brekeke v.2.1

3. OS type and the version:

Windows XP

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

Sjphone

6. Your problem:

I want to make a Dialplan with this specifications :

1) Any call to the director (ext : 111) must be redirected to 222.
2) But every friday afternoon 222 is away.
3) Then this call must be redirected to 333.

I make the first one :

$request = ^INVITE ____________To = sip:222@192.168.192.1
To = sip:111@

But I don't know how to make number 2, 3.

Thanks
hope
maybe you want to try Brekeke PBX to get the result in an easier way by schedule forwarding destination.

Or try the following Dialplan

Matching Patterns:
$request=^INVITE
$date("EEE aaa")=Fri PM

Deploy Patterns:
To=sip:333@
james
Also, SIP Server's DialPlan can do it.

Check "$date" variable in the reference.
looping92
Thank you for your reply.

Bye
lakeview
Add the following in your matching Pattern.

$date( "EEE aa" ) = "Fri PM"

It means " friday afternoon".