Skip to Content
Switching to VoIP
book

Switching to VoIP

by Theodore Wallingford
June 2005
Intermediate to advanced
502 pages
21h 48m
English
O'Reilly Media, Inc.
Content preview from Switching to VoIP
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
394
|
Chapter 17: Asterisk Reference
In this example, a credit card number is pulled from the Asterisk database. If its
length is 16, the system plays a thank you message. Otherwise, it plays an invalid
message and changes contexts.
Concatenating strings
As in Perl and PHP quoted string expressions, multiple strings can be concatenated
simply by putting them inline:
exten => 1,1,SetVar(wholename=DestinysEnd)
exten => 1,2,SetVar(firstword=${wholename:1:8})
exten => 1,3,SetCIDName("Gilneas ${firstword}")
; Caller ID Name is now "Gilneas Destiny"
exten => 1,4,SetCIDName("Gilneas${firstword}")
; Caller ID Name is now "GilneasDestiny"
Dial-Plan Command Reference
Each extension you define in the dial-plan can have one of many commands. These
commands are, as pointed out earlier, executed in order of their priority. Some of the
commands are dependent upon one another. Here is a list of the most commonly
used commands.
AbsoluteTimeout
AbsoluteTimeout(seconds)
Sets absolute maximum time of call, in seconds. Once this time elapses, the call will
be disconnected or handled by the
t special extension, if one is defined in extensions.
conf. Could be useful for calling card applications.
AddQueueMember
AddQueueMember(queue|[channel])
Adds the current channel as a member to a call queue as configured in /etc/asterisk/ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Voice over IP First-Step

Voice over IP First-Step

Kevin Wallace
Securing VoIP

Securing VoIP

Regis Jr (Bud) Bates
Low-cost Smart Antennas

Low-cost Smart Antennas

Qi Luo, Steven Shichang Gao, Chao Gu, Wei Liu

Publisher Resources

ISBN: 0596008686Catalog PageErrata