Brekeke PBX Wiki

Call between two tenants

How to configure an ARS route to make calls between 2 tenants.

 

<Setup>

Create an ARS route template.

Pattern IN:

-----------------------------------------
[Matching Patterns:] 
[From:]  
[To:] sip:tenant9&v1(.+)@ 

[Deploy Patterns:]
[To:] &t1
------------------------------------------

 

Pattern OUT:

-----------------------------------------
[Matching Patterns:] 
[From:] sip:(.+)@ 
[To:] sip:(9[0-9]{1,1}.+)@
[User:]^.+$ 

[Deploy Patterns:]
[From:] sip:9&v1&f1@127.0.0.1 
[To:] sip:tenant&t1@127.0.0.1
[Target:]127.0.0.1:5052 
-----------------------------------------

 

Create two routes by using this template for each tenant.

route1:  

[Tenant:]test1
[tenant prefix (v1):] 1

 

route2:  

[Tenant:]test2
[tenant prefix (v1):] 2

 

<Scenario>

User can call to other tenants by adding “9” + <tenant prefix> to a dialing number.

Example:

The ext.100 at the tenant ”test1” can call to ext.200 at the tenant “test2” by dialing “92200”.

And vice versa, the ext.200 at the tenant “test2” can call to ext.100 at the tenant “test1” by dialing “91100”.

Yes No
Suggest Edit