System information

external to the Asterisk server, 182–185
state information, 295
testing device registration, 99
DEVICE_STATE() dialplan function, 302
dial by extension, 336
Dial() application, 119–122, 207, 211, 434
dial-by-name directories, 171
dialing SIP URIs from Asterisk, 246
dialout option (voicemail.conf), 163
dialpad, 598
dialplan, 107–130, 195–219
AA, 337–339
about, 25
accepting calls to your system, 240
applications, 12–15
AstDB, 214–216
deleting data from, 215
retrieving data from, 214
storing data in, 214
using in the dialplan, 215
Asterisk as a standalone voicemail server,
176
call parking, 217
channel configuration files, 88
channels, 9
conditional branching, 199–203
GotoIf() application, 199
time-based conditional branching with
GotoIfTime(), 202
conferencing with MeetMe() application,
218
contexts and security, 571
controlling queue members, 268
CURL() dialplan function, 394
expressions and variable manipulation,
195–198
basic expressions, 195
operators, 196
functions, 19, 198
functions in mappings, 517
GoSub() dialplan application, 207–211
calling subroutines from the dialplan,
208
defining subroutines, 207
returning from a subroutine, 210
using arguments in subroutines, 209
Hello World example, 115
interactive dialplan, 116–129
Dial() application, 119–122
Goto(), Background(), and WaitExten()
applications, 116
includes, 129
invalid entries and timeouts, 119
pattern matching, 125–129
variables, 122–125
Jabber dialplan commands, 419–425
connecting to an XMPP server, 419
receiving messages with
JABBER_RECEIVE(), 422
Local channels, 211–214
lookups, 519
macros, 204–207
calling macros from the dialplan, 205
defining, 204
using arguments in, 206
outside connectivity, 132
security vulnerabilities, 571
sending messages with JabberSend(), 421
Skype, 429–434
calling without assigning extension
numbers, 433
configuring chan_skype.conf, 429
placing and receiving calls, 430
sending and receiving messages, 432
syntax, 107–115
Answer(), Playback(), and Hangup()
applications, 113
applications, 113
contexts, 108
extensions, 110
priorities, 111
for testing your devices, 103
voicemail, 169–172
dial-by-name directories, 171
jitterbuffers, 172
VoiceMail() dialplan application, 169
VoiceMailMain() dialplan application,
171
Zapateller() application, 217
dialplan applications
CDRs, 529
CEL, 540
dialplan option (manager.conf), 463
dialplan reload command, 265, 441, 515
dialplan scripting logic, 642
dialplan set global CLI command, 313
DIALPLAN_EXISTS() function, 242
DIALSTATUS variable, 120, 207
674 | Index