
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
443
Appendix C
APPENDIX C
Asterisk Manager Socket API Syntax
AbsoluteTimeout Channel Timeout
Sets an absolute timeout in seconds for the specified channel. The call will be
ended after the time has elapsed. The following example limits the call on the
current channel to 10 minutes:
Action: AbsoluteTimeout
Channel: SIP/201
Timeout: 600
ChangeMonitor Channel File
Equivalent of
ChangeMonitor( ).
Action: ChangeMonitor
Channel: Zap/1-1
File: Zap1-1-incsound
Command command
Execute the specified dial-plan command. The command must include all argu-
ments necessary for it to work.
GetVar Channel Variable
Gets a variable from the specified channel.
Hangup Channel
Hangs up specified channel. Equivalent to
SoftHangup( ).
IAXpeers
Lists IAX peers. Equivalent of IAX2
show peers CLI command.
ListCommands
Lists available Manager API commands.
Logoff
Closes the connection to the Manager.
MailboxCount Mailbox
Gets the message count for the specified mailbox.
MailboxStatus Mailbox
Gets the message-waiting indication for the specified mailbox.