Brekeke PBX Wiki

  1. Brekeke PBX basic Info
  2. Security
  3. Update & Upgrade
  4. Configuration
    1. Installation
    2. User Management
    3. Brekeke PBX default settings
    4. Network Configuration
    5. Brekeke PBX Administration Tool
    6. Functions Configuration
      1. Processes on Brekeke PBX
      2. Performance optimization
      3. Access Control - System Admin Menu
      4. Tenant Admin Permission
      5. ARS (Automatic Route Selection)
        1. ARS - Overview
        2. ARS - Route Settings / Route Template
        3. ARS - Route Variables
        4. ARS - Tutorials / Samples
          1. Basic: ARS Route Management
          2. PSTN Access with a VoIP Gateway
          3. Connecting with ITSPs
          4. ARS Outbound Route Failover
          5. ARS Resource Setting
          6. ARS Group Setting
          7. Add Tag on ARS
          8. Calls between two Brekeke PBX
          9. Call between two tenants
          10. CPS Management on ARS
          11. Decline non-numbered caller ID calls
          12. Display caller name
          13. Distinguish outbound calls from calls between extensions
          14. Matching pattern to match user sessions
          15. Redirect call with 3xx response
          16. Set the value of the Alert-Info header by ARS
        5. ARS - Default Plug-ins
        6. ARS - FAQ
      6. DID
      7. Auto Attendant
      8. BLF, SCA, and Presence
      9. Codec
      10. Voicemail
      11. Back up Brekeke PBX
      12. Callback
      13. Call Forwarding
      14. Call Hold/Call Transfer
      15. Call Hunting
      16. Call Pickup, Call Park
      17. Call Queue
      18. Call Waiting
      19. Conference Call
      20. Confirm Call
      21. Video Call
      22. Fax Support
      23. Flow Selection for a tenant
      24. Paging
      25. Phone ID settings
      26. Ring Group
      27. SRTP Support
      28. Stereo Recording Support
      29. Switching Plan
      30. Three-Way Calls
      31. Tutor Mode
      32. Caller ID from analog (PSTN) phones
      33. Change busy forwarding destination according to response
      34. Change Music On Hold
      35. Rotate Music On Hold
      36. Change recorded audio files destination location
      37. Change RFC2833 Payload
      38. Customize login page for each tenant
      39. Download phonebook info on provisioning
      40. Replace display name
      41. Session Management
      42. Set RTP packet's TOS value
      43. TCP Support
      44. Third-Party Call Control
      45. Microsoft OCS
      46. How to bypass Brekeke PBX
      47. How to create voice files (Fo IVR, Auto Attendant, Guidance) using your phone
      48. WebRTC
      49. Web Phone / Brekeke Phone
      50. Text to Speech
    7. Brekeke PBX Redundancy
    8. Remote Access of Brekeke Heartbeat
  5. Brekeke PAL option
  6. Integration with Zoho Products
  7. Integration with Microsoft Teams
  8. Add-ons
  9. Troubleshooting
  10. Developer's Guides
  11. User's Guide
  12. Version History

PSTN Access with a VoIP Gateway

Using a SIP-compliant VoIP Gateway, Brekeke PBX users can receive calls from a Public Switched Telephone Network (PSTN) and make calls to PSTN lines.

 

Step 1. VoIP Gateway Setup

Set the following at your VoIP Gateway:

SIP proxy address IP address of Brekeke PBX
Dialing number sent to Brekeke PBX PSTN line number

 

Step 2. ARS Route Setup

Set up “Patterns – IN” and “Patterns – OUT” in the default Gateway ARS Route to receive and make calls from/to the Gateway.

  • Default ARS rule “gw1” is the setup template for one-stage dialing.
  • Default ARS rule “gw2” is the setup template for two-stage dialing.

Use the following settings to register the gateway at the Brekeke PBX bundled SIP server. Many PSTN Gateways have a short interval between sessions, during which time the line is unavailable. You can modify the [Session interval (ms)] field setting to reflect this delay as needed.

  • In Brekeke PBX v3.1.x, check the [Template] field to enable the [Variable Setting] page.

[Registration]

Register URI sip:&v1@127.0.0.1 Register expire (sec) 3600
Proxy address 127.0.0.1 Register update period (%) 90
User Password

 

Step 3. Receiving PSTN Calls

Create Gateway ARS Route “Patterns – IN” to receive calls from a gateway.

[Patterns – IN]

  Matching patterns Deploy patterns
From    
To sip:&v1@ &v3

 

Step 4. Calling PSTN Numbers
One-Stage Dialing

If your VoIP Gateway supports One Stage Dialing, a Brekeke PBX user can make a PSTN direct call by setting an ARS Route as follows:

[Patterns – OUT]

  Matching patterns Deploy patterns
From    
To sip:([0-9]{7,25})@ sip:$1@gw_IPaddress

In this example, Regular Expressions were used to define the Matching and Deploy patterns. A Brekeke PBX user who dials a number that has between 7 and 25 digits will be considered as a PSTN call. Brekeke PBX will apply the above ARS Route and the call will be sent to the gateway.

If you use multiple VoIP Gateways for outbound calls, you can define more detailed dialing patterns in [Matching patterns] > [To], as well as change the [Priority] field as necessary to define the usage order of Gateways. Please note that lower numbers hold the higher priority. You can use the [Max Sessions] field to define the total number of sessions handled by each pattern.

 

Two-Stage Dialing

If your VoIP Gateway supports Two Stage Dialing, have the gateway’s PSTN port register with Brekeke PBX bundled SIP server. Let’s suppose the gateway’s PSTN port has the SIP user name 111. To call a PSTN number, dial the gateway’s registered PSTN port number (in this example, it’s number 111) and then dial the destination PSTN number. Alternatively, you can configure the DTMF setting at the ARS Route OUT pattern so that the dialed numbers will be sent to the gateway as DTMF tones.

The OUT pattern to send a destination number by DTMF in Two-Stage Dialing is as shown below:

Patterns – OUT

Matching patterns Deploy patterns
From   From  
To sip:111(.+)@ To sip:111@gw_IPaddress
  Whisper/DTMF $1
  • If a delay is needed before sending a DTMF call, set the [Whisper/DTMF] field as {file_name}$1. Default files are {120ms}, {240ms}, {500ms}, {1sec} and {2sec}. Customized files can be uploaded from [PBX] > [Voice prompts] and set [Language]: Common.

 

Step 5. Assign Values to Variables

Click the [Variables] link at the upper-right corner of the ARS Route template page. At the [Variable Setting] page, select [New Route] and assign values to the variables defined in the above Patterns – IN and Patterns – OUT.

Route Name Gateway1 (Brekeke PBX v3.1.x or later)
Tenant A tenant name (MT Edition)
v1 PSTN line number set in “Step 1. VoIP Gateway Setup”
v3 Specify a Brekeke PBX extension number, such as 300.

 

Yes No
Suggest Edit