System information
The [files] Section 75
The [compat] Section 75
modules.conf 75
The [modules] Section 76
indications.conf 77
musiconhold.conf 79
Converting Music to a Format That Works Best with Asterisk 79
Conclusion 81
5. User Device Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Telephone Naming Concepts 84
Hardphones, Softphones, and ATAs 86
Configuring Asterisk 87
How Channel Configuration Files Work with the Dialplan 88
sip.conf 89
iax.conf 95
Modifying Your Channel Configuration Files for Your Environment 98
Loading Your New Channel Configurations 98
The Asterisk CLI 99
Testing to Ensure Your Devices Have Registered 99
Analog Phones 100
A Basic Dialplan to Test Your Devices 103
Under the Hood: Your First Call 104
Conclusion 105
6. Dialplan Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Dialplan Syntax 107
Contexts 108
Extensions 110
Priorities 111
Applications 113
The Answer(), Playback(), and Hangup() Applications 113
A Simple Dialplan 115
Hello World 115
Building an Interactive Dialplan 116
The Goto(), Background(), and WaitExten() Applications 116
Handling Invalid Entries and Timeouts 119
Using the Dial() Application 119
Using Variables 122
Pattern Matching 125
Includes 129
Conclusion 130
Table of Contents | vii