Brekeke Forum Index » Brekeke PBX Forum

Post new topic   Reply to topic
Use two account ARS at different TIMES
Author Message
slaider
Brekeke Member


Joined: 18 Aug 2006
Posts: 13
Location: ITA

PostPosted: Mon Oct 22, 2007 7:44 am    Post subject: Use two account ARS at different TIMES Reply with quote

1. Brekeke Product Name and version: 2152

2. Java version: 1506

3. OS type and the version: Win 2003

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

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html : 1

6. Your problem:

Is possible use two Account ARS at different TIMES ?

For example :

00:00 to 12:00 ARS Account 1
12:00 to 24:00 ARS Account 2

Thanks
Bestr Regards
Pasquale
Back to top
View user's profile Send e-mail
peng
Brekeke Guru


Joined: 20 Jul 2005
Posts: 110

PostPosted: Mon Oct 22, 2007 1:08 pm    Post subject: Reply with quote

You can change the sipuri at dialplan using $time variable.
Back to top
View user's profile
slaider
Brekeke Member


Joined: 18 Aug 2006
Posts: 13
Location: ITA

PostPosted: Mon Oct 22, 2007 1:38 pm    Post subject: Reply with quote

Is possible one example

Thanks
Back to top
View user's profile Send e-mail
slaider
Brekeke Member


Joined: 18 Aug 2006
Posts: 13
Location: ITA

PostPosted: Tue Oct 23, 2007 12:55 pm    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
to = sip:(90.+)@
$time = ^..:[0-2] (change 30 min)

Deploy Patterns

Use ARS Account 2
???? (Help Me)

Matching Patterns
$request = ^INVITE
to = sip:(90.+)@


Deploy Patterns

Use ARS Account 1
???? (Help Me)
Back to top
View user's profile Send e-mail
Andrea
Brekeke Addict


Joined: 04 Apr 2007
Posts: 36

PostPosted: Thu Oct 25, 2007 5:15 pm    Post subject: Reply with quote

Hi,

How about this?

Matching Patterns
$request=^INVITE
to=sip:(90.+)@
$time=^..:[0-2] (change 30 min)
From = sip:(.*)@


Deploy Patterns
From = sip:user2%2@<pbx_IP_address>
target = localhost:15060



Matching Patterns
$request=^INVITE
to=sip:(90.+)@
From = sip:(.*)@
Deploy Patterns
From = sip:user1%2@<pbx_IP_address>
target = localhost:15060

---------------------------------------------------------

In ARS Matching Pattern for user 1, set
From = sip:user1(.*)@

In ARS Matching Pattern for user2, set
From = sip:user2(.*)@


good luck,
Andrea
Back to top
View user's profile
slaider
Brekeke Member


Joined: 18 Aug 2006
Posts: 13
Location: ITA

PostPosted: Sat Nov 17, 2007 5:37 am    Post subject: Reply with quote

Hi Andrea thanks for you info.

i start from you information and the final solution is This.

Matching Patterns
$request = ^INVITE
$time = ^..:[0-2] (change 30 min)
From = sip:(.*)@
to = sip:(90.+)@
Deploy Patterns
auth=false
From = sip:User2@<pbx_IP_address>
replaceuri=true
target = localhost:15060


Matching Patterns
$request = ^INVITE
From = sip:(.*)@
to = sip:(90.+)@


Deploy Patterns
auth=false
From = sip:User1@<pbx_IP_address>
replaceuri=true
target = localhost:15060

---------------------------------------------------------

In ARS Matching Pattern for user 1, set
From = sip:sip:User1@<pbx_IP_address>

In ARS Matching Pattern for user2, set
From = sip:User2@<pbx_IP_address>

With this little modify working fine.

Thanks to all and best regards.
Back to top
View user's profile Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke PBX Forum All times are GMT - 7 Hours
Page 1 of 1