System information
Conclusion—Easy Reference Cheat Sheet 194
10. Deeper into the Dialplan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Expressions and Variable Manipulation 195
Basic Expressions 195
Operators 196
Dialplan Functions 198
Syntax 198
Examples of Dialplan Functions 198
Conditional Branching 199
The GotoIf() Application 199
Time-Based Conditional Branching with GotoIfTime() 202
Macros 204
Defining Macros 204
Calling Macros from the Dialplan 205
Using Arguments in Macros 206
GoSub() 207
Defining Subroutines 207
Calling Subroutines from the Dialplan 208
Using Arguments in Subroutines 209
Returning from a Subroutine 210
Local Channels 211
Using the Asterisk Database (AstDB) 214
Storing Data in the AstDB 214
Retrieving Data from the AstDB 214
Deleting Data from the AstDB 215
Using the AstDB in the Dialplan 215
Handy Asterisk Features 217
Zapateller() 217
Call Parking 217
Conferencing with MeetMe() 218
Conclusion 219
11. Parking and Paging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
features.conf 221
The [general] section 222
The [featuremap] Section 225
The [applicationmap] Section 225
Application Map Grouping 227
Parking Lots 228
Overhead and “Underchin” Paging (a.k.a. Public Address) 229
Places to Send Your Pages 230
Zone Paging 235
Table of Contents | ix