text
stringlengths
0
152
Managing Databases 260
Troubleshooting Database Issues 261
SQL Injection 261
Powering Your Dialplan with func_odbc 261
viii
|
Table of Contents
A Gentle Introduction to func_odbc 263
Getting Funky with func_odbc: Hot-Desking 264
Using Realtime 278
Static Realtime 279
Dynamic Realtime 281
Storing Call Detail Records 281
Database Integration of ACD Queues 286
Storing Dialplan Parameters for a Queue in a Database 286
Writing queue_log to Database 287
Conclusion 288
16.
Introduction to Interactive Voice Response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Components of an IVR 289
IVR Design Considerations 292
Asterisk Modules for Building IVRs 293
CURL() 293
func_odbc 293
AGI 293
AMI 293
ARI 293
A Simple IVR Using CURL() 294
The Dialplan 294
A Prompt-Recording IVR Function 294
Speech Recognition and Text-to-Speech 296
Text-to-Speech 297
Speech Recognition 297
Conclusion 297
17. Asterisk Manager Interface and Call Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
299
Call Files 299
Your First Call File 300
Notes About Call Files 301
AMI Quick Start 301
AMI over TCP 302
AMI over HTTP 303
Configuration 303
manager.conf 304
http.conf 304
Protocol Overview 305
Message Encoding 306
AMI over HTTP 308
Example Usage 310
Table of Contents
|
ix
Originating a Call 310
Redirecting a Call 312
Development Frameworks 313
Conclusion 314
18. Asterisk Gateway Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Quick Start 315
AGI Variants 316
Process-Based AGI 316
FastAGI—AGI over TCP 317
Async AGI—AMI-Controlled AGI 318
AGI Communication Overview 319
Setting Up an AGI Session 319
Commands and Responses 321
Ending an AGI Session 325
Example: Account Database Access 327
Development Frameworks 328
Conclusion 329
19. Asterisk REST Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
ARI Quick Start 332
Basic Asterisk Configuration 332
Testing Your Basic ARI Environment 333
Working with Your ARI Environment Using Swagger 334
The Building Blocks of ARI 337
REST 337
WebSocket 337
Stasis 338
Frameworks 338
ari-py (and aioari) for Python 339
node-ari-client 339
AsterNET.ARI 339
ari4java 340
phpari 340
aricpp 340
asterisk-ari-client 340