Use two account ARS at different TIMES

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

Post Reply
slaider
Posts: 13
Joined: Fri Aug 18, 2006 2:57 pm
Location: ITA

Use two account ARS at different TIMES

Post by slaider »

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/ ... terns.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
peng
Posts: 110
Joined: Wed Jul 20, 2005 7:06 pm

Post by peng »

You can change the sipuri at dialplan using $time variable.
slaider
Posts: 13
Joined: Fri Aug 18, 2006 2:57 pm
Location: ITA

Post by slaider »

Is possible one example

Thanks
slaider
Posts: 13
Joined: Fri Aug 18, 2006 2:57 pm
Location: ITA

Post by slaider »

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)
Andrea
Posts: 36
Joined: Wed Apr 04, 2007 11:41 am

Post by Andrea »

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
slaider
Posts: 13
Joined: Fri Aug 18, 2006 2:57 pm
Location: ITA

Post by slaider »

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.
Post Reply