Brekeke PBX Wiki

2. Create Routes From/To the SIP Proxy Server of Direct Routing

Brekeke PBX < – > SIP Proxy Server (Teams)

 

1. Create a new ARS route. Click the New Route button at the [PBX] > [ARS]

2. Enter a route name “TO/FROM_Teams”. Then Click OK.

3. Enter the following values in the [General] section:

[General] Section:
Field Name  Example values
Type
Type H

For teams routes, select “Type H”

Advanced
teams.sbc_domain=test6.brekeke.com

*Please replace this with the actual FQDN of your PBX.

 

in.net.sip.allow=INVITE,ACK,BYE,CANCEL,INFO,MESSAGE,NOTIFY,SUBSCRIBE,UPDATE,PRACK

out.net.sip.allow=INVITE,ACK,BYE,CANCEL,INFO,MESSAGE,NOTIFY,SUBSCRIBE,UPDATE,PRACK

*Non-Bypass mode only.

Tenant
tenant1

*Brekeke PBX Multi-Tenant edition only.

*Please replace this with your appropriate tenant name.

 

IN-1:

At the [Patterns-IN] section, to allow all calls from Teams Direct routing, create a new IN route “IN-1”.

<IN-1>

Field Name Example value
Matching Patterns > [From]
(.*)sip:(.+)@(.+)
Matching Patterns > [To]
sip:\+(1)(.+)@

Here, outgoing calls from Teams are restricted to numbers within the United States (+1).
To allow calls to international destinations, please specify additional country codes using regular expressions. For example, if you allow outbound call to Unites States(+1) and Japan(+81), the matching pattern is as follows;

sip:\+(1|81)(.+)@
Deploy patterns >[Custom]
&caller.usoutto=&t2

*This is an optional setting.

Here, the destination number without country code found in the “To” header is stored into the variable “&caller.usoutto

&t2 refers to the value that matches the second set of parentheses () within the “To” header.

Parameters >[Send RTCP]
on
Parameters >[SDP 18x]
Append

*Optional. If early media should be enabled, set “Append”.

 

OUT-1, OUT-2:

At the [Patterns-OUT] section, to allow all calls to DID numbers assigned Teams users be forwarded to the SIP proxy of the Direct Routing, create a new OUT route “OUT-1”.

<OUT-1>

Field Name Example value
Matching Patterns > [From]
(.*)sip:(\+|)([0-9]{10,14})@(.+)
Matching Patterns > [To]
sip:(\+|)1650483548(.)@

Set number pattern of your DID numbers with regular expression.

Matching Patterns > [User] Remove default setting “^.+$” and keep blank.
Deploy patterns > [From]
&f1sip:+&f3@&f4
Deploy patterns > [To]
sip:+1650483548&t2@
Parameters >[Send RTCP]
on
Parameters >[100 rel]
on

 

If you allow anonymous call , the route “OUT-2” is needed.

<OUT-2>

Field Name Example value
Matching Patterns > [From]
(.*)sip:(anonymous)@(.+)
Matching Patterns > [To]
sip:(\+|)1650483548(.)@

Set number pattern of your DID numbers with regular expression.

Matching Patterns > [User] Remove default setting “^.+$” and keep blank.
Deploy patterns > [From]
&f1sip:&f2@&f3
Deploy patterns > [To]
sip:+1650483548&t2@
Parameters >[Send RTCP]
on
Parameters >[100 rel]
on

 

Yes No
Suggest Edit