Asterisk Manager Interface (AMI)

Asterisk Call manager (AMI) versions

Asterisk AMI
Asterisk 1.8 Asterisk Call Manager /1.1
Asterisk 11 Asterisk Call Manager /1.3
Asterisk 12 Asterisk Call Manager /2.5
Asterisk 13 Asterisk Call Manager /2.8

/etc/asterisk/manager.conf

[admin]
secret = amp111
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.255
read = all,system,call,log,verbose,command,agent,user,config
write = all,system,call,log,verbose,command,agent,user,config

telnet

$ telnet 127.0.0.1 5038
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/1.0

Ctrl-V

Action: Login
ActionID: 1
Username: admin
Secret: amp111

Для ввода команды требуется двойное нажатие ENTER

Action: Login
ActionID: 1
Username: manager1
Secret: manager111
Action: QueueAdd
Queue: qs01
Interface: Local/6666@from-qs01
Penalty: 1
Paused: true
Action: QueueRemove
Queue: qs01
Interface: Local/6666@from-qs01

Asterisk 1.8 + Dongle

asterisk*CLI> manager show commands
  Action           Privilege        Synopsis
  ------           ---------        --------
  WaitEvent        <none>           Wait for an event to occur.
  QueueReset       <none>           Reset queue statistics.
  QueueReload      <none>           Reload a queue, queues, or any sub-section of a queue o
  QueueRule        <none>           Queue Rules.
  QueuePenalty     agent,all        Set the penalty for a queue member.
  QueueLog         agent,all        Adds custom entry in queue_log.
  QueuePause       agent,all        Makes a queue member temporarily unavailable.
  QueueRemove      agent,all        Remove interface from queue.
  QueueAdd         agent,all        Add interface to queue.
  QueueSummary     <none>           Show queue summary.
  QueueStatus      <none>           Show queue status.
  Queues           <none>           Queues.
  MuteAudio        system,all       Mute an audio stream
  VoicemailUsersL  call,reporting,  List All Voicemail User Information.
  DongleReload     system,config,a  Reload a module configuration.
  DongleRemove     system,config,a  Remove a dongle.
  DongleStart      system,config,a  Start a dongle.
  DongleStop       system,config,a  Stop a dongle.
  DongleRestart    system,config,a  Restart a dongle.
  DongleReset      system,config,a  Reset a dongle.
  DongleSetCCWA    config,all       Enable/Disabled Call-Waiting on a dongle.
  DongleSendPDU    call,all         Send a PDU of message.
  DongleSendSMS    call,all         Send a SMS message.
  DongleSendUSSD   call,all         Send a ussd command to the dongle.
  DongleShowDevic  system,reportin  List Dongle devices
  MixMonitorMute   <none>           Mute / unMute a Mixmonitor recording.
  PlayDTMF         call,all         Play DTMF signal on a specific channel.
  MeetmeList       reporting,all    List participants in a conference.
  MeetmeUnmute     call,all         Unmute a Meetme user.
  MeetmeMute       call,all         Mute a Meetme user.
  DAHDIRestart     <none>           Fully Restart DAHDI channels (terminates calls).
  DAHDIShowChanne  <none>           Show status of DAHDI channels.
  DAHDIDNDoff      <none>           Toggle DAHDI channel Do Not Disturb status OFF.
  DAHDIDNDon       <none>           Toggle DAHDI channel Do Not Disturb status ON.
  DAHDIDialOffhoo  <none>           Dial over DAHDI channel while offhook.
  DAHDIHangup      <none>           Hangup DAHDI Channel.
  DAHDITransfer    <none>           Transfer DAHDI Channel.
  IAXregistry      system,reportin  Show IAX registrations.
  IAXnetstats      system,reportin  Show IAX Netstats.
  IAXpeerlist      system,reportin  List IAX Peers.
  IAXpeers         system,reportin  List IAX peers.
  SIPnotify        system,all       Send a SIP notify.
  SIPshowregistry  system,reportin  Show SIP registrations (text format).
  SIPqualifypeer   system,reportin  Qualify SIP peers.
  SIPshowpeer      system,reportin  show SIP peer (text format).
  SIPpeers         system,reportin  List SIP peers (text format).
  AGI              agi,all          Add an AGI command to execute by Async AGI.
  UnpauseMonitor   call,all         Unpause monitoring of a channel.
  PauseMonitor     call,all         Pause monitoring of a channel.
  ChangeMonitor    call,all         Change monitoring filename of a channel.
  StopMonitor      call,all         Stop monitoring a channel.
  Monitor          call,all         Monitor a channel.
  DBDelTree        system,all       Delete DB Tree.
  DBDel            system,all       Delete DB entry.
  DBPut            system,all       Put DB entry.
  DBGet            system,reportin  Get DB Entry.
  Bridge           call,all         Bridge two channels already in the PBX.
  Park             call,all         Park a channel.
  ParkedCalls      <none>           List parked calls.
  ShowDialPlan     config,reportin  Show dialplan contexts and extensions
  AOCMessage       aoc,all          Generate an Advice of Charge message on a channel.
  ModuleCheck      system,all       Check if module is loaded.
  ModuleLoad       system,all       Module management.
  CoreShowChannel  system,reportin  List currently active channels.
  Reload           system,config,a  Send a reload event.
  CoreStatus       system,reportin  Show PBX core status variables.
  CoreSettings     system,reportin  Show PBX core settings (version etc).
  UserEvent        user,all         Send an arbitrary event.
  UpdateConfig     config,all       Update basic configuration.
  SendText         call,all         Send text message to channel.
  ListCommands     <none>           List available manager commands.
  MailboxCount     call,reporting,  Check Mailbox Message Count.
  MailboxStatus    call,reporting,  Check mailbox.
  AbsoluteTimeout  system,call,all  Set absolute timeout.
  ExtensionState   call,reporting,  Check Extension Status.
  Command          command,all      Execute Asterisk CLI Command.
  Originate        originate,all    Originate a call.
  Atxfer           call,all         Attended transfer.
  Redirect         call,all         Redirect (transfer) a call.
  ListCategories   config,all       List categories in configuration file.
  CreateConfig     config,all       Creates an empty file in the configuration directory.
  Status           system,call,rep  List channel status.
  GetConfigJSON    system,config,a  Retrieve configuration (JSON format).
  GetConfig        system,config,a  Retrieve configuration.
  Getvar           call,reporting,  Gets a channel variable or function value.
  Setvar           call,all         Sets a channel variable or function value.
  Ping             <none>           Keepalive command.
  Hangup           system,call,all  Hangup channel.
  Challenge        <none>           Generate Challenge for MD5 Auth.
  Login            <none>           Login Manager.
  Logoff           <none>           Logoff Manager.
  Events           <none>           Control Event Flow.
  LocalOptimizeAw  system,call,all  Optimize away a local channel when possible.
  DataGet          <none>           Retrieve the data api tree.
asterisk*CLI>

Originate

Asterisk 12

Connected to Asterisk 12.5.0 currently running on localhost (pid = 1300)
localhost*CLI> manager show commands
  Action                       Synopsis
  ------                       --------
  WaitEvent                    Wait for an event to occur.
  QueueReset                   Reset queue statistics.
  QueueReload                  Reload a queue, queues, or any sub-section of a q
  QueueRule                    Queue Rules.
  QueueMemberRingInUse         Set the ringinuse value for a queue member.
  QueuePenalty                 Set the penalty for a queue member.
  QueueLog                     Adds custom entry in queue_log.
  QueuePause                   Makes a queue member temporarily unavailable.
  QueueRemove                  Remove interface from queue.
  QueueAdd                     Add interface to queue.
  QueueSummary                 Show queue summary.
  QueueStatus                  Show queue status.
  Queues                       Queues.
  PlayDTMF                     Play DTMF signal on a specific channel.
  VoicemailRefresh             Tell Asterisk to poll mailboxes for a change
  VoicemailUsersList           List All Voicemail User Information.
  MuteAudio                    Mute an audio stream.
  ControlPlayback              Control the playback of a file being played to a
  StopMixMonitor               Stop recording a call through MixMonitor, and fre
  MixMonitor                   Record a call and mix the audio during the record
  MixMonitorMute               Mute / unMute a Mixmonitor recording.
  ConfbridgeSetSingleVideoSrc  Set a conference user as the single video source
  ConfbridgeStopRecord         Stop recording a Confbridge conference.
  ConfbridgeStartRecord        Start recording a Confbridge conference.
  ConfbridgeLock               Lock a Confbridge conference.
  ConfbridgeUnlock             Unlock a Confbridge conference.
  ConfbridgeKick               Kick a Confbridge user.
  ConfbridgeUnmute             Unmute a Confbridge user.
  ConfbridgeMute               Mute a Confbridge user.
  ConfbridgeListRooms          List active conferences.
  ConfbridgeList               List participants in a conference.
  IAXregistry                  Show IAX registrations.
  IAXnetstats                  Show IAX Netstats.
  IAXpeerlist                  List IAX Peers.
  IAXpeers                     List IAX peers.
  PRIShowSpans                 Show status of PRI spans.
  DAHDIRestart                 Fully Restart DAHDI channels (terminates calls).
  DAHDIShowChannels            Show status of DAHDI channels.
  DAHDIDNDoff                  Toggle DAHDI channel Do Not Disturb status OFF.
  DAHDIDNDon                   Toggle DAHDI channel Do Not Disturb status ON.
  DAHDIDialOffhook             Dial over DAHDI channel while offhook.
  DAHDIHangup                  Hangup DAHDI Channel.
  DAHDITransfer                Transfer DAHDI Channel.
  SIPpeerstatus                Show the status of one or all of the sip peers.
  SIPnotify                    Send a SIP notify.
  SIPshowregistry              Show SIP registrations (text format).
  SIPqualifypeer               Qualify SIP peers.
  SIPshowpeer                  show SIP peer (text format).
  SIPpeers                     List SIP peers (text format).
  Park                         Park a channel.
  ParkedCalls                  List parked calls.
  Parkinglots                  Get a list of parking lots
  AGI                          Add an AGI command to execute by Async AGI.
  UnpauseMonitor               Unpause monitoring of a channel.
  PauseMonitor                 Pause monitoring of a channel.
  ChangeMonitor                Change monitoring filename of a channel.
  StopMonitor                  Stop monitoring a channel.
  Monitor                      Monitor a channel.
  BridgeKick                   Kick a channel from a bridge.
  BridgeDestroy                Destroy a bridge.
  BridgeInfo                   Get information about a bridge.
  BridgeList                   Get a list of bridges in the system.
  BlindTransfer                Blind transfer channel(s) to the given destinatio
  Filter                       Dynamically add filters for the current manager s
  AOCMessage                   Generate an Advice of Charge message on a channel
  ModuleCheck                  Check if module is loaded.
  ModuleLoad                   Module management.
  CoreShowChannels             List currently active channels.
  Reload                       Send a reload event.
  CoreStatus                   Show PBX core status variables.
  CoreSettings                 Show PBX core settings (version etc).
  UserEvent                    Send an arbitrary event.
  UpdateConfig                 Update basic configuration.
  SendText                     Send text message to channel.
  ListCommands                 List available manager commands.
  MailboxCount                 Check Mailbox Message Count.
  MailboxStatus                Check mailbox.
  AbsoluteTimeout              Set absolute timeout.
  PresenceState                Check Presence State
  ExtensionState               Check Extension Status.
  Command                      Execute Asterisk CLI Command.
  Originate                    Originate a call.
  Atxfer                       Attended transfer.
  Redirect                     Redirect (transfer) a call.
  ListCategories               List categories in configuration file.
  CreateConfig                 Creates an empty file in the configuration direct
  Status                       List channel status.
  GetConfigJSON                Retrieve configuration (JSON format).
  GetConfig                    Retrieve configuration.
  Getvar                       Gets a channel variable or function value.
  Setvar                       Sets a channel variable or function value.
  ShowDialPlan                 Show dialplan contexts and extensions
  Hangup                       Hangup channel.
  Challenge                    Generate Challenge for MD5 Auth.
  Login                        Login Manager.
  Logoff                       Logoff Manager.
  Events                       Control Event Flow.
  Ping                         Keepalive command.
  LocalOptimizeAway            Optimize away a local channel when possible.
  MessageSend                  Send an out of call message to an endpoint.
  Bridge                       Bridge two channels already in the PBX.
  BridgeTechnologyUnsuspend    Unsuspend a bridging technology.
  BridgeTechnologySuspend      Suspend a bridging technology.
  BridgeTechnologyList         List available bridging technologies and their st
  DataGet                      Retrieve the data api tree.
  DBPut                        Put DB entry.
  DBDelTree                    Delete DB Tree.
  DBDel                        Delete DB entry.
  DBGet                        Get DB Entry.
localhost*CLI>

DBGet asterisk 13

asterisk*CLI> manager show commands
  Action                          Synopsis
  ------                          --------
  WaitEvent                       Wait for an event to occur.
  PresenceStateList               List the current known presence states.
  QueueReset                      Reset queue statistics.
  QueueReload                     Reload a queue, queues, or any sub-section of
  QueueRule                       Queue Rules.
  QueueMemberRingInUse            Set the ringinuse value for a queue member.
  QueuePenalty                    Set the penalty for a queue member.
  QueueLog                        Adds custom entry in queue_log.
  QueuePause                      Makes a queue member temporarily unavailable.
  QueueRemove                     Remove interface from queue.
  QueueAdd                        Add interface to queue.
  QueueSummary                    Show queue summary.
  QueueStatus                     Show queue status.
  Queues                          Queues.
  DeviceStateList                 List the current known device states.
  PlayDTMF                        Play DTMF signal on a specific channel.
  StopMixMonitor                  Stop recording a call through MixMonitor, and
  MixMonitor                      Record a call and mix the audio during the rec
  MixMonitorMute                  Mute / unMute a Mixmonitor recording.
  VoicemailRefresh                Tell Asterisk to poll mailboxes for a change
  VoicemailUsersList              List All Voicemail User Information.
  MuteAudio                       Mute an audio stream.
  ControlPlayback                 Control the playback of a file being played to
  ConfbridgeSetSingleVideoSrc     Set a conference user as the single video sour
  ConfbridgeStopRecord            Stop recording a Confbridge conference.
  ConfbridgeStartRecord           Start recording a Confbridge conference.
  ConfbridgeLock                  Lock a Confbridge conference.
  ConfbridgeUnlock                Unlock a Confbridge conference.
  ConfbridgeKick                  Kick a Confbridge user.
  ConfbridgeUnmute                Unmute a Confbridge user.
  ConfbridgeMute                  Mute a Confbridge user.
  ConfbridgeListRooms             List active conferences.
  ConfbridgeList                  List participants in a conference.
  PJSIPShowRegistrationsInbound   Lists PJSIP inbound registrations.
  PJSIPShowRegistrationsOutbound  Lists PJSIP outbound registrations.
  PJSIPRegister                   Register an outbound registration.
  PJSIPUnregister                 Unregister an outbound registration.
  PJSIPNotify                     Send a NOTIFY to either an endpoint or an arbi
  IAXregistry                     Show IAX registrations.
  IAXnetstats                     Show IAX Netstats.
  IAXpeerlist                     List IAX Peers.
  IAXpeers                        List IAX peers.
  SIPpeerstatus                   Show the status of one or all of the sip peers
  SIPnotify                       Send a SIP notify.
  SIPshowregistry                 Show SIP registrations (text format).
  SIPqualifypeer                  Qualify SIP peers.
  SIPshowpeer                     show SIP peer (text format).
  SIPpeers                        List SIP peers (text format).
  PRIDebugFileUnset               Disables file output for PRI debug messages
  PRIDebugFileSet                 Set the file used for PRI debug message output
  PRIDebugSet                     Set PRI debug levels for a span
  PRIShowSpans                    Show status of PRI spans.
  DAHDIRestart                    Fully Restart DAHDI channels (terminates calls
  DAHDIShowChannels               Show status of DAHDI channels.
  DAHDIDNDoff                     Toggle DAHDI channel Do Not Disturb status OFF
  DAHDIDNDon                      Toggle DAHDI channel Do Not Disturb status ON.
  DAHDIDialOffhook                Dial over DAHDI channel while offhook.
  DAHDIHangup                     Hangup DAHDI Channel.
  DAHDITransfer                   Transfer DAHDI Channel.
  UnpauseMonitor                  Unpause monitoring of a channel.
  PauseMonitor                    Pause monitoring of a channel.
  ChangeMonitor                   Change monitoring filename of a channel.
  StopMonitor                     Stop monitoring a channel.
  Monitor                         Monitor a channel.
  Park                            Park a channel.
  ParkedCalls                     List parked calls.
  Parkinglots                     Get a list of parking lots
  FAXStats                        Responds with fax statistics
  FAXSession                      Responds with a detailed description of a sing
  FAXSessions                     Lists active FAX sessions
  AGI                             Add an AGI command to execute by Async AGI.
  PJSIPShowResourceLists          Displays settings for configured resource list
  PJSIPShowSubscriptionsOutbound  Lists subscriptions.
  PJSIPShowSubscriptionsInbound   Lists subscriptions.
  PJSIPQualify                    Qualify a chan_pjsip endpoint.
  PJSIPShowEndpoint               Detail listing of an endpoint and its objects.
  PJSIPShowEndpoints              Lists PJSIP endpoints.
  BridgeKick                      Kick a channel from a bridge.
  BridgeDestroy                   Destroy a bridge.
  BridgeInfo                      Get information about a bridge.
  BridgeList                      Get a list of bridges in the system.
  BlindTransfer                   Blind transfer channel(s) to the given destina
  Filter                          Dynamically add filters for the current manage
  AOCMessage                      Generate an Advice of Charge message on a chan
  ModuleCheck                     Check if module is loaded.
  ModuleLoad                      Module management.
  CoreShowChannels                List currently active channels.
  LoggerRotate                    Reload and rotate the Asterisk logger.
  Reload                          Send a reload event.
  CoreStatus                      Show PBX core status variables.
  CoreSettings                    Show PBX core settings (version etc).
  UserEvent                       Send an arbitrary event.
  UpdateConfig                    Update basic configuration.
  SendText                        Send text message to channel.
  ListCommands                    List available manager commands.
  MailboxCount                    Check Mailbox Message Count.
  MailboxStatus                   Check mailbox.
  AbsoluteTimeout                 Set absolute timeout.
  PresenceState                   Check Presence State
  ExtensionState                  Check Extension Status.
  Command                         Execute Asterisk CLI Command.
  Originate                       Originate a call.
  Atxfer                          Attended transfer.
  Redirect                        Redirect (transfer) a call.
  ListCategories                  List categories in configuration file.
  CreateConfig                    Creates an empty file in the configuration dir
  Status                          List channel status.
  GetConfigJSON                   Retrieve configuration (JSON format).
  GetConfig                       Retrieve configuration.
  Getvar                          Gets a channel variable or function value.
  Setvar                          Sets a channel variable or function value.
  ShowDialPlan                    Show dialplan contexts and extensions
  Hangup                          Hangup channel.
  Challenge                       Generate Challenge for MD5 Auth.
  Login                           Login Manager.
  Logoff                          Logoff Manager.
  Events                          Control Event Flow.
  Ping                            Keepalive command.
  LocalOptimizeAway               Optimize away a local channel when possible.
  ExtensionStateList              List the current known extension states.
  MessageSend                     Send an out of call message to an endpoint.
  Bridge                          Bridge two channels already in the PBX.
  DialplanExtensionRemove         Remove an extension from the dialplan
  DialplanExtensionAdd            Add an extension to the dialplan
  BridgeTechnologyUnsuspend       Unsuspend a bridging technology.
  BridgeTechnologySuspend         Suspend a bridging technology.
  BridgeTechnologyList            List available bridging technologies and their
  DataGet                         Retrieve the data api tree.
  DBPut                           Put DB entry.
  DBDelTree                       Delete DB Tree.
  DBDel                           Delete DB entry.
  DBGet                           Get DB Entry.

модель событий AMI

модель событий AMI

НеправильноПравильно
Event: Newchannel
Privilege: call,all
Channel: SIP/1001-00000002
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 1001
CallerIDName:
AccountCode:
Exten: 1000
Context: vtiger_out
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: SIPURI
Value: sip:1001@123.123.123.1:5091
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: SIPDOMAIN
Value: 124.124.124.1
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: SIPCALLID
Value: YjdmNTBiNTg5YjY3YTg5YTYwNTI3ZTc0OTVlOTgyZTA.
Uniqueid: 1423640748.2

Event: Newstate
Privilege: call,all
Channel: SIP/1001-00000002
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 1001
CallerIDName:
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1423640748.2

Event: Newexten
Privilege: dialplan,all
Channel: SIP/1001-00000002
Context: vtiger_out
Extension: 1000
Priority: 1
Application: AGI
AppData: agi://127.0.0.1/incoming.agi
Uniqueid: 1423640748.2

Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/1001-00000002
CommandId: 1568281865
Command: ANSWER

Event: Newstate
Privilege: call,all
Channel: SIP/1001-00000002
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 1001
CallerIDName:
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1423640748.2

Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/1001-00000002
CommandId: 1568281865
Command: ANSWER
ResultCode: 200
Result: Success

Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/1001-00000002
CommandId: 863625742
Command: EXEC "Monitor" "wav,/usr/local/
VtigerAsteriskConnector/bin/rec/0263ef66ecd84937b52052d654705393,m"

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: __MONITORED
Value: true
Uniqueid: 1423640748.2

Event: MonitorStart
Privilege: call,all
Channel: SIP/1001-00000002
Uniqueid: 1423640748.2

Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/1001-00000002
CommandId: 863625742
Command: EXEC "Monitor" "wav,/usr/local/
VtigerAsteriskConnector/bin/rec/0263ef66ecd84937b52052d654705393,m"
ResultCode: 200
Result: Success
====ERROR========
Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/1001-00000002
CommandId: 2048191671
Command: EXEC "Dial" "SIP/, 60"

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: DIALSTATUS
Value:
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: DIALEDPEERNUMBER
Value:
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: DIALEDPEERNAME
Value:
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: ANSWEREDTIME
Value:
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: DIALEDTIME
Value:
Uniqueid: 1423640748.2
====ERROR=======
Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: DIALSTATUS
Value: INVALIDARGS
Uniqueid: 1423640748.2

Event: Dial
Privilege: call,all
SubEvent: End
Channel: SIP/1001-00000002
UniqueID: 1423640748.2
DialStatus: INVALIDARGS

Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/1001-00000002
CommandId: 2048191671
Command: EXEC "Dial" "SIP/, 60"
ResultCode: 200
Result: Unknown Result

Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/1001-00000002
CommandId: 908355524
Command: SET VARIABLE "AJ_AGISTATUS" "SUCCESS"

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: AJ_AGISTATUS
Value: SUCCESS
Uniqueid: 1423640748.2

Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/1001-00000002
CommandId: 908355524
Command: SET VARIABLE "AJ_AGISTATUS" "SUCCESS"
ResultCode: 200
Result: Success

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: AGISTATUS
Value: SUCCESS
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: RTPAUDIOQOS
Value: ssrc=1499164886;themssrc=3683911828;lp=0;
rxjitter=0.000000;rxcount=136;txjitter=0.000590;txcount=0;rlp=0;rtt=0.000000
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: RTPAUDIOQOSJITTER
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;
stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;
reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: RTPAUDIOQOSLOSS
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;
stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;
reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: RTPAUDIOQOSRTT
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1423640748.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1001-00000002
Variable: RTPAUDIOQOS
Value: ssrc=1499164886;themssrc=3683911828;lp=0;rxjitter=0.000000;rxcount=136;
txjitter=0.000590;txcount=0;rlp=0;rtt=0.000000
Uniqueid: 1423640748.2

Event: Hangup
Privilege: call,all
Channel: SIP/1001-00000002
Uniqueid: 1423640748.2
CallerIDNum: 1001
CallerIDName: <unknown>
ConnectedLineNum: <unknown>
ConnectedLineName: <unknown>
Cause: 0
Cause-txt: Unknown
Event: MonitorStop
Privilege: call,all
Channel: SIP/1001-00000002
Uniqueid: 1423640748.2
Event: Newchannel
Privilege: call,all
Channel: SIP/1111-00000000
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 1111
CallerIDName: 1111
AccountCode:
Exten: 1122
Context: vtiger_out
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: SIPURI
Value: sip:1111@192.168.0.194:50518
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: SIPDOMAIN
Value: 192.168.0.67
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: SIPCALLID
Value: be1981dba7a041f28b1c0706f4a4929d
Uniqueid: 1423642071.0

Event: Newstate
Privilege: call,all
Channel: SIP/1111-00000000
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 1111
CallerIDName: 1111
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1423642071.0

Event: Newexten
Privilege: dialplan,all
Channel: SIP/1111-00000000
Context: vtiger_out
Extension: 1122
Priority: 1
Application: AGI
AppData: agi://127.0.0.1/incoming.agi
Uniqueid: 1423642071.0

Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/1111-00000000
CommandId: 1427834315
Command: ANSWER

Event: Newstate
Privilege: call,all
Channel: SIP/1111-00000000
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 1111
CallerIDName: 1111
ConnectedLineNum:
ConnectedLineName:
Uniqueid: 1423642071.0
=====================cut RTCPReceved
Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/1111-00000000
CommandId: 1427834315
Command: ANSWER
ResultCode: 200
Result: Success
==================Cut RTCPReceived
Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/1111-00000000
CommandId: 226466943
Command: EXEC "Monitor" "wav,/usr/src/
VtigerAsteriskConnector/bin/rec/b884ad2e696e479b99a6884ed2afd882,m"

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: __MONITORED
Value: true
Uniqueid: 1423642071.0

Event: MonitorStart
Privilege: call,all
Channel: SIP/1111-00000000
Uniqueid: 1423642071.0

Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/1111-00000000
CommandId: 226466943
Command: EXEC "Monitor" "wav,/usr/src/VtigerAsteriskConnector/bin/rec/b884ad2e696e479b99a6884ed2afd882,m"
ResultCode: 200
Result: Success

Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/1111-00000000
CommandId: 1957166649
Command: EXEC "Dial" "SIP/1122, 60"

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALSTATUS
Value:
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDPEERNUMBER
Value:
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDPEERNAME
Value:
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: ANSWEREDTIME
Value:
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDTIME
Value:
Uniqueid: 1423642071.0

Event: Newchannel
Privilege: call,all
Channel: SIP/1122-00000001
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 1122
CallerIDName: 1122
AccountCode:
Exten:
Context: vtiger_out
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: SIPCALLID
Value: 31745c432fb52d7b3dbac8443aca170f@192.168.0.67:5060
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: DIALEDPEERNUMBER
Value: 1122
Uniqueid: 1423642078.1

Event: Dial
Privilege: call,all
SubEvent: Begin
Channel: SIP/1111-00000000
Destination: SIP/1122-00000001
CallerIDNum: 1111
CallerIDName: 1111
ConnectedLineNum: <unknown>
ConnectedLineName: <unknown>
UniqueID: 1423642071.0
DestUniqueID: 1423642078.1
Dialstring: 1122

Event: Newstate
Privilege: call,all
Channel: SIP/1122-00000001
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: 1122
CallerIDName: 1122
ConnectedLineNum: 1111
ConnectedLineName: 1111
Uniqueid: 1423642078.1
======Cut RTCPReceived
Event: Newstate
Privilege: call,all
Channel: SIP/1122-00000001
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 1122
CallerIDName: 1122
ConnectedLineNum: 1111
ConnectedLineName: 1111
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALSTATUS
Value: ANSWER
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDPEERNAME
Value: SIP/1122-00000001
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDPEERNUMBER
Value: 1122
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: BRIDGEPEER
Value: SIP/1122-00000001
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: BRIDGEPEER
Value: SIP/1111-00000000
Uniqueid: 1423642078.1

Event: NewAccountCode
Privilege: call,all
Channel: SIP/1122-00000001
Uniqueid: 1423642078.1
AccountCode:
OldAccountCode:

Event: Bridge
Privilege: call,all
Bridgestate: Link
Bridgetype: core
Channel1: SIP/1111-00000000
Channel2: SIP/1122-00000001
Uniqueid1: 1423642071.0
Uniqueid2: 1423642078.1
CallerID1: 1111
CallerID2: 1122

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: BRIDGEPEER
Value: SIP/1122-00000001
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: BRIDGEPVTCALLID
Value: 31745c432fb52d7b3dbac8443aca170f@192.168.0.67:5060
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: BRIDGEPEER
Value: SIP/1111-00000000
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: BRIDGEPVTCALLID
Value: be1981dba7a041f28b1c0706f4a4929d
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: BRIDGEPEER
Value: SIP/1122-00000001
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: BRIDGEPVTCALLID
Value: 31745c432fb52d7b3dbac8443aca170f@192.168.0.67:5060
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: BRIDGEPEER
Value: SIP/1111-00000000
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: BRIDGEPVTCALLID
Value: be1981dba7a041f28b1c0706f4a4929d
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: RTPAUDIOQOS
Value: ssrc=94312286;themssrc=1304172298;lp=0;rxjitter=0.000000;rxcount=67;txjitter=0.001008;txcount=68;rlp=0;rtt=0.000000
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: RTPAUDIOQOSBRIDGED
Value: ssrc=94312286;themssrc=1304172298;lp=0;rxjitter=0.000000;rxcount=67;txjitter=0.001008;txcount=68;rlp=0;rtt=0.000000
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: RTPAUDIOQOSJITTER
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: RTPAUDIOQOSJITTERBRIDGED
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: RTPAUDIOQOSLOSS
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: RTPAUDIOQOSLOSSBRIDGED
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: RTPAUDIOQOSRTT
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: RTPAUDIOQOSRTTBRIDGED
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: RTPAUDIOQOS
Value: ssrc=875571376;themssrc=1648457076;lp=0;rxjitter=0.000000;rxcount=599;txjitter=0.000755;txcount=252;rlp=0;rtt=0.002000
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: RTPAUDIOQOSBRIDGED
Value: ssrc=875571376;themssrc=1648457076;lp=0;rxjitter=0.000000;rxcount=599;txjitter=0.000755;txcount=252;rlp=0;rtt=0.002000
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: RTPAUDIOQOSJITTER
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: RTPAUDIOQOSJITTERBRIDGED
Value: minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: RTPAUDIOQOSLOSS
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: RTPAUDIOQOSLOSSBRIDGED
Value: minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
Uniqueid: 1423642078.1

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: RTPAUDIOQOSRTT
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000001
Variable: RTPAUDIOQOSRTTBRIDGED
Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
Uniqueid: 1423642078.1

Event: Unlink
Privilege: call,all
Channel1: SIP/1111-00000000
Channel2: SIP/1122-00000001
Uniqueid1: 1423642071.0
Uniqueid2: 1423642078.1
CallerID1: 1111
CallerID2: 1122

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: ANSWEREDTIME
Value: 2
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDTIME
Value: 13
Uniqueid: 1423642071.0

Event: Hangup
Privilege: call,all
Channel: SIP/1122-00000001
Uniqueid: 1423642078.1
CallerIDNum: 1122
CallerIDName: 1122
ConnectedLineNum: 1111
ConnectedLineName: 1111
Cause: 16
Cause-txt: Normal Clearing

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALSTATUS
Value: ANSWER
Uniqueid: 1423642071.0

Event: Dial
Privilege: call,all
SubEvent: End
Channel: SIP/1111-00000000
UniqueID: 1423642071.0
DialStatus: ANSWER

Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/1111-00000000
CommandId: 1957166649
Command: EXEC "Dial" "SIP/1122, 60"
ResultCode: 200
Result: Unknown Result

Event: AGIExec
Privilege: agi,all
SubEvent: Start
Channel: SIP/1111-00000000
CommandId: 734805183
Command: SET VARIABLE "AJ_AGISTATUS" "SUCCESS"

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: AJ_AGISTATUS
Value: SUCCESS
Uniqueid: 1423642071.0

Event: AGIExec
Privilege: agi,all
SubEvent: End
Channel: SIP/1111-00000000
CommandId: 734805183
Command: SET VARIABLE "AJ_AGISTATUS" "SUCCESS"
ResultCode: 200
Result: Success

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: AGISTATUS
Value: SUCCESS
Uniqueid: 1423642071.0

Event: Newexten
Privilege: dialplan,all
Channel: SIP/1111-00000000
Context: vtiger_out
Extension: 1122
Priority: 2
Application: Dial
AppData: SIP/1122,,
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALSTATUS
Value:
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDPEERNUMBER
Value:
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDPEERNAME
Value:
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: ANSWEREDTIME
Value:
Uniqueid: 1423642071.0

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1111-00000000
Variable: DIALEDTIME
Value:
Uniqueid: 1423642071.0

Event: Newchannel
Privilege: call,all
Channel: SIP/1122-00000002
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 1122
CallerIDName: 1122
AccountCode:
Exten:
Context: vtiger_out
Uniqueid: 1423642084.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000002
Variable: SIPCALLID
Value: 2f13f54435ef3f35611bc985424eb28e@192.168.0.67:5060
Uniqueid: 1423642084.2

Event: VarSet
Privilege: dialplan,all
Channel: SIP/1122-00000002
Variable: DIALEDPEERNUMBER
Value: 1122
Uniqueid: 1423642084.2

Event: Dial
Privilege: call,all
SubEvent: Begin
Channel: SIP/1111-00000000
Destination: SIP/1122-00000002
CallerIDNum: 1111
CallerIDName: 1111
ConnectedLineNum: 1122
ConnectedLineName: 1122
UniqueID: 1423642071.0
DestUniqueID: 1423642084.2
Dialstring: 1122

Event: Newstate
Privilege: call,all
Channel: SIP/1122-00000002
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: 1122
CallerIDName: 1122
ConnectedLineNum: 1111
ConnectedLineName: 1111
Uniqueid: 1423642084.2
Connected to Asterisk 1.8.32.2 currently running on localhost (pid = 1190)
Verbosity is at least 4
  == Using SIP RTP CoS mark 5
    -- Executing [1000@vtiger_out:1] AGI("SIP/1001-00000003", "agi://127.0.0.1/incoming.agi") in new stack
  == Manager 'vtg' logged on from 127.0.0.1
    -- AGI Script Executing Application: (Monitor) Options: (wav,/usr/local/VtigerAsteriskConnector/bin/rec/8854393f7ea1489585e1c360c54d1974,m)
    -- AGI Script Executing Application: (Dial) Options: (SIP/, 60)
[Feb 11 11:00:19] WARNING[2236]: app_dial.c:2253 dial_exec_full: Dial argument takes format (technology/[device:]number1)
  == Manager 'vtg' logged off from 127.0.0.1
    -- <SIP/1001-00000003>AGI Script agi://127.0.0.1/incoming.agi completed, returning 0
    -- Auto fallthrough, channel 'SIP/1001-00000003' status is 'INVALIDARGS'
Executing [1122@vtiger_out:1] AGI("SIP/1111-00000003", "agi://127.0.0.1/incoming.agi") in new stack
  == Manager 'admin' logged on from 127.0.0.1
    -- AGI Script Executing Application: (Monitor) Options: (wav,/usr/src/VtigerAsteriskConnector/bin/rec/6b71af0405344e07a497527f4c6a723d,m)
    -- AGI Script Executing Application: (Dial) Options: (SIP/1122, 60)
  == Using SIP RTP CoS mark 5
    -- Called SIP/1122
    -- SIP/1122-00000004 is ringing
    -- SIP/1122-00000004 answered SIP/1111-00000003
  == Manager 'admin' logged off from 127.0.0.1
    -- <SIP/1111-00000003>AGI Script agi://127.0.0.1/incoming.agi completed, returning 0
    -- Executing [1122@vtiger_out:2] Dial("SIP/1111-00000003", "SIP/1122,,") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/1122
    -- SIP/1122-00000005 is ringing

Asterisk настройка

Только авторизованные участники могут оставлять комментарии.

Войти через: Google Facebook