官术网_书友最值得收藏!

Chapter 1. The Dialplan

The dialplan is the routing core of an Asterisk server. Its sole role is to look at what is dialed, and route the call to its destination. This is the core of any telephony system and Asterisk is no different.

The dialplan is made up of three elements—extensions, contexts, and priorities. An extension is number or pattern that the dialed number is to be matched against and a context is a collection of extensions (and possibly other included contexts too). Each extension will have one or more priorities, each of which appear on a separate line, and the priority sequence always starts with the priority "1".

If you have read Building Telephony Systems with Asterisk, you will know how to use extensions, priorities, contexts, and included contexts to handle incoming and outgoing calls as well as to set up features such as:

  • Call Queues
  • Call Parking
  • Direct Inward Dialling
  • Voicemail
  • Automated Phone Directory
  • Conference Rooms

In this chapter, we will build on this knowledge by looking at:

  • Significant updates since Asterisk 1.2
  • Pattern ordering within and between contexts
  • Extending the dialplan with variables
  • The DEVSTATE() function
  • The SYSTEM application

We will then use this knowledge to provide examples of:

  • Advanced call routing with the DEVSTATE() function
  • Call routing based on the time of the day
  • Using multiple ADSL lines within Asterisk to boost call capacity
主站蜘蛛池模板: 靖西县| 汉沽区| 会东县| 濮阳市| 东乡县| 金阳县| 土默特右旗| 遂溪县| 梧州市| 东丽区| 江阴市| 古丈县| 鄂伦春自治旗| 渝中区| 孟州市| 古蔺县| 黄陵县| 巩留县| 宝清县| 通州市| 全南县| 丰县| 黄平县| 桃江县| 肇州县| 恭城| 长寿区| 崇明县| 奉节县| 三台县| 清水河县| 历史| 信宜市| 白银市| 宝应县| 六枝特区| 犍为县| 大连市| 泰和县| 玛曲县| 二连浩特市|