System information

box, like we’ve done for other portions of the dialplan. We’ll be building the dialplan
to match the time starts and stops described in Figure 10-1.
Figure 10-1. Time delayed dialing with local channels
First we need to call three Local channels, which will all execute different parts of the
dialplan. We do this with the Dial() application, like so:
[LocalSets]
exten => 107,1,Verbose(2,Dialing multiple locations with time delay)
; *** This all needs to be on a single line
same => n,Dial(Local/channel_1@TimeDelay&Local/channel_2@TimeDelay
&Local/channel_3@TimeDelay,40)
same => n,Hangup()
Now our Dial() application will dial three Local channels. The destinations will be the
channel_1, channel_2, and channel_3 extensions located within the TimeDelay dialplan
context. Remember that Local channels are a way of executing the dialplan from within
the Dial() application. Our master timeout for all the channels is 40 seconds, which
means any Local channel that does not have a shorter timeout configured will be hung
up if it does not answer the call within that period of time.
As promised, Table 10-1 illustrates the delay configurations.
Table 10-1. Delayed dialing using Local channels
Time period
(in seconds)
channel_1 channel_2 channel_3
0 Dial(SIP/
0000FFFF0001,20)
Wait(10) Wait(15)
5
10 Dial(DAHDI/
g0/14165551212)
15 Dial(SIP/MyITSP/
12565551212,15)
20 Hangup()
212 | Chapter 10:Deeper into the Dialplan