Setting Up the Dialplan for Some Test Calls

Now let’s expand upon the test dialplan we started in the previous section, allowing us to dial back into the softphone after we have configured it and to use a dialplan application called Echo() that will allow us to test bidirectional audio. We’ll learn more about dialplans in Chapter 5, so for now, just add the italicized bits to your existing extensions.conf file. We’ll be making use of this dialplan throughout the chapter, and expanding on it in certain sections. Once you’ve entered the text into extensions.conf, reload the dialplan by running dialplan reload from the Asterisk console:

[globals]

[general]

[default]
exten => s,1,Verbose(1|Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()

[incoming_calls]

[internal]
exten => 500,1,Verbose(1|Echo test application)
exten => 500,n,Answer()
exten => 500,n,Echo()
exten => 500,n,Hangup()

[phones]
include => internal

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.