class Asterisk::AMI
- Asterisk::AMI
- Reference
- Object
Defined in:
asterisk/ami/response.crasterisk/ami/event.cr
asterisk/ami.cr
Constant Summary
-
WAIT_FOR_ANSWER =
0.0005
Constructors
Instance Method Summary
- #ami_version : String?
- #asterisk_platform : String?
- #asterisk_version : String?
- #command(command : String) : String | Array(String)
- #connect
- #connected?
- #logger : Logger
- #login
- #logoff
-
#on_close(&on_close : AMI -> )
on_close callback
-
#on_event(event : EventName, &block : AMI, Event -> )
on_event callback (event name, AMI instance, event body)
- #send_action(action : AMIData, expects_answer_before : Float64 = 0.3)
-
#send_action!(action : AMIData)
send action asynchronously
- #start
Constructor Detail
def self.new(host = "127.0.0.1", port : String | Int32 = 5038, username = "", secret = "", logger : Logger = Asterisk.logger)
#
Instance Method Detail
on_event callback (event name, AMI instance, event body)