Author |
Message |
looping92 Brekeke Newbie
Joined: 18 May 2008 Posts: 2
|
Posted: Sun May 18, 2008 11:02 am Post subject: Please Help for a Dialplan |
|
|
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 |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon May 19, 2008 9:46 am Post subject: |
|
|
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@
|
Last edited by hope on Mon May 19, 2008 11:16 am; edited 1 time in total |
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 495
|
Posted: Mon May 19, 2008 10:36 am Post subject: |
|
|
Also, SIP Server's DialPlan can do it.
Check "$date" variable in the reference. |
|
Back to top |
|
looping92 Brekeke Newbie
Joined: 18 May 2008 Posts: 2
|
Posted: Wed May 21, 2008 7:52 am Post subject: |
|
|
Thank you for your reply.
Bye |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Wed May 21, 2008 10:35 am Post subject: |
|
|
Add the following in your matching Pattern.
$date( "EEE aa" ) = "Fri PM"
It means " friday afternoon". |
|
Back to top |
|
|