$ telnet 127.0.0.1 5038
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/1.1
Action: login
Username: admin
Secret: passwd1234
Response: Success
Message: Authentication accepted
asterisk*CLI>
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'admin' logged on from 127.0.0.1
*CLI> manager show connected
Events: off
Action: logoff
Response: Goodbye
Message: Thanks for all the fish.
asterisk*CLI>
== Manager 'admin' logged off from 127.0.0.1
asterisk *CLI> help manager
Action: Challenge
AuthType: md5
Response: Success
Challenge: 84041345
Action: login
AuthType: MD5
Username: admin
Key: qwf32r23p98yvdspa9h4o4woaewv7
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Action: <key 1>: <value 1>
<key 2>: <value 2>
.......
, AMI ( Manager' ):
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
, SIP 2401 . Enter, SIP-. :
Action: Originate
Channel: SIP/2401
Context: incoming
Exten: 2401
Priority: 1
Callerid: 2401
Variable: ANSWER=1
Variable: _ACC=2
Event: Newchannel
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Down
CallerIDNum: CallerIDName: Uniqueid: 1237301090.1
Event: Newcallerid
Privilege: call,all
Channel: SIP/2401-09a1f418
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/2401-09a1f418
State: Ringing
CallerID: 2401
CallerIDName: Uniqueid: 1237301090.1
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301090.1
Cause: 19
Cause-txt: User alerting, no answer
, , CLI ;
asterisk*CLI> manager show eventq
:
Usecount: 1
Category: 2
Event:
Event: Hangup
Privilege: call,all
Channel: SIP/2401-09a1f418
Uniqueid: 1237301603.2
Cause: 21
Cause-txt:
, Originate, AMI. AMI, CLI :
asterisk *CLI> manager show command [_]
read write
read write manager.conf AMI. , AMI manager.conf read write «command», , — privilege:command. , , AMI , :
asterisk*CLI> manager show command Command
Action: Command
Synopsis: Execute Asterisk CLI Command
Privilege: command,all
Description: Run a CLI command.
Variables: (Names marked with * are required)
*Command: Asterisk CLI command to run
ActionID: Optional Action id for message matching.
(Synopsis) , . Privilege , manager.conf , AMI. Variables , . — *Command, ( ), ActionID — .
, manager.conf AMI — (access list). , (events) (actions), . read/write. Read , AMI.
Write , AMI , . read/write, :
system — , , SIP ; call — , , ; log — Logging information, , ; verbose - Verbose information, , ; command — CLI ; agent — , (queue); user — , , UserEvent. , , AGI, AMI ; config - ; dtmf - DTMF ( ); reporting - ; cdr - cdr_manager ( , ); dialplan - NewExten VarSet ( ); originate - ( ).
, AMI . , 1.4 1.6 AMI , - (flow control) , . AMI , AMI .
AMI. ActionID. AMI ¶
AMI , . :
asterisk *CLI> manager show command GetConfig
sip.conf :
Action: GetConfig
Filename: sip.conf
ActionID: 435430239485234
:
Response: Success
ActionID: 435430239485234
Category-000000: general
Line-000000-000000: context=incoming
Line-000000-000001: language=ru
Line-000000-000002: allowguest=yes
Line-000000-000003: bindport=5060
Line-000000-000004: bindaddr=0.0.0.0
Line-000000-000005: dtmfmode=info
Line-000000-000006: disallow=all
Line-000000-000007: allow=alaw
Line-000000-000008: allow=ulaw
Line-000000-000009: allow=gsm
Line-000000-000010: nat=never
Line-000000-000011: canreinvite=no
Category-000001: 2401
Line-000001-000000: type=friend
Line-000001-000001: host=dynamic
Line-000001-000002: username=2401
Line-000001-000003: secret=2401
Line-000001-000004: callerid=2401
Line-000001-000005: context=incoming
Action , , Response ActionID. AMI, ActionID «» , , , (Action-), , Response-. , Response- , AMI. , Action-, Action Response. , AMI .
sip.conf, AMI :
Action: Command
Command: sip reload
ActionID: 230432984582
AMI:
Response: Follows
Privilege: Command
ActionID: 230432984582
--END COMMAND--
Event: ChannelReload
Privilege: system,all
Channel: SIP
ReloadReason: CLIRELOAD (Channel module reload by CLI command)
Registry_Count: 0
Peer_Count: 2
User_Count: 2
AMI . UpdateConfig. , 2402 sip.conf. UpdateConfig :
asterisk*CLI> manager show command UpdateConfig
Action: UpdateConfig
Synopsis: Update basic configuration
Privilege: config,all
Description: A 'UpdateConfig' action will modify, create, or delete
configuration elements in Asterisk configuration files.
Variables (X's represent 6 digit number beginning with 000000):
SrcFilename: Configuration filename to read(eg foo.conf)
DstFilename: Configuration filename to write(eg foo.conf)
Reload: Whether or not a reload should take place (or name of specific module)
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)
Cat-XXXXXX: Category to operate on
Var-XXXXXX: Variable to work on
Value-XXXXXX: Value to work on
Match-XXXXXX: Extra match required to match line
, . , :
SrcFilename: UpdateConfig, ; DstFilename: , ; Reload: , , , , ; Action-XXXXX: , , . : NewCat, RenameCat, DelCat, Update, Delete Append; Cat-XXXXX: , ; Var-XXXXX: , ; Value-XXXXX: , ; Match-XXXXX: , , , ; ActionID: , , .
: config, all.
Source: https://habr.com/ru/post/64243/
All Articles