class Asterisk::ARI

Defined in:

asterisk/ari.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String = "http://localhost:8088", websocket_host : String = "ws://localhost:8088", ari_app : String = "", username : String = "", secret : String = "") #

[View source]

Instance Method Detail

def bridge_add_channel(bridge_id, channel_id) #

Add channel to bridge


[View source]
def bridge_details(bridge_id) #

Gets Bridge details


[View source]
def bridge_hangup(bridge_id) #

Removes a bridge


[View source]
def bridge_new #

Creates a new bridge


[View source]
def bridge_play(bridge_id, media) #

Plays media on bridge


[View source]
def channel_details(channel_id) #

Channel details


[View source]
def channel_dial(channel_id, timeout = 30) #

Dials a channel id


[View source]
def channel_hangup(channel_id) #

Hangup a channel id


[View source]
def channel_message : Channel(String) #

[View source]
def channel_moh(channel_id) #

Puts channel on hold


[View source]
def channel_new(endpoint, ari_app) #

Creates a new channel


[View source]
def channel_play(channel_id, media) #

Plays media on channel


[View source]
def channel_remove_moh(channel_id) #

Removes Music on hold from channel


[View source]
def disconnect #

[View source]
def logger #

[View source]
def start_websocket #

[View source]