Method: Asterisk::AMI#initialize
- Defined in:
- lib/ami.rb
#initialize(username, password, host = "localhost", port = 5038) ⇒ AMI
Returns a new instance of AMI.
10 11 12 13 |
# File 'lib/ami.rb', line 10 def initialize(username, password, host="localhost", port=5038) @connection = Asterisk::Connection.new(username, password, host, port) @connected = false end |