Dial() — Attempts to connect channels
Allows you to connect together all of the various channel
Dial() is the most
important application in Asterisk—you’ll want to read through this
section a few times.
Any valid channel type (such as SIP, IAX2, H.323, MGCP, Local,
or Zap) is acceptable to
but the parameters that need to be passed to each channel will depend
on the information the channel type needs to do its job. For example,
a SIP channel will need a network address and user to connect to,
whereas a Zap channel is going to want some sort of phone
When you specify a channel type that is network-based, you can
pass the destination host (name or IP address), username, password,
and remote extension as part of the options to
Dial(), or you can refer to the name of a
channel entry in the appropriate .conf file; all
the required information will then need to be obtained from that file.
The username and password can be replaced with the name contained
within square brackets (
) of the
channel configuration file. The hostname is optional.
This is a valid
exten => s,1,Dial(SIP/sake:firstname.lastname@example.org)
This is effectively identical:
exten => s,1,Dial(SIP/some_SIP_friend)
but will work only if there is a channel defined in
[some_SIP_friend], whose channel definition
An extension ...