Elastix Unified Communications Server Cookbook
上QQ阅读APP看书,第一时间看更新

Inbound calls

Inbound calls allow us to route incoming calls to specific destinations or applications such as Voicemail and Conference Bridge. We will show the recipes for configuring inbound routes for analog trunks. This recipe is for routing any call from an analog trunk to any service inside our PBX. Remember that we are routing the channel because in analog trunks, there is no DID information, just Caller ID.

How to do it…

  1. Change the current context of the analog trunk to from-zaptel by editing the chan_dahdi.conf file.
  2. Go to the PBX | Tools | Asterisk File Editor menu.
  3. Search for the link named chan_dahdi.conf and click on it.
  4. Search for the line or trunk that you want to assign a DID to and change the current context to from-zaptel.
  5. Click on the Save button and then on the Reload Asterisk button.
  6. Return to the PBX | PBX Configuration | Zap Channels DIDs menu and fill out the information as follows:
    How to do it…

    Channel: This is the internal channel where the analog line is connected/mapped.

    Description: This is a description of our channel or DID to identify it.

    DID: This is the number the Carrier assigns to any line. DID means Direct Inward Dialing (DID) and is also called direct dial-in (DDI). Typically, any DID is represented by the last 4 digits of the called number. In digital lines, these numbers are the ones that can be routed within a PBX.

  7. Click on the Submit Changes button, and then on Apply Changes.
  8. Go to the PBX | PBX Configuration | Inbound Routes menu. In the DID Number field, enter the number that we entered in the DID field in the last step.
  9. At the bottom of the page, select the destination (Set Destination) for the incoming routed calls. In the following images, we will show how to route the incoming calls on analog port 65 to extension 7003:
    How to do it…
    How to do it…
  10. Click on the Submit Changes button, and then on the Apply Changes link.

There is more…

The main destinations that we can choose are as follows:

  • Extensions
  • IVR
  • Phone directory
  • Terminate call
  • Trunks
  • Voicemail

These options may increase depending on the features we add or configure, as long as we do it on our PBX. For DIDs related to digital trunks (E1, BRI, SIP, etc.), the process is almost the same. We can route DID 9999 to an IVR, as shown next:

There is more…
There is more…