class Asterisk::ARI
- Asterisk::ARI
- Reference
- Object
Defined in:
asterisk/ari/request.crasterisk/ari/resources.cr
asterisk/ari/resources/applications.cr
asterisk/ari/resources/asterisk.cr
asterisk/ari/resources/bridges.cr
asterisk/ari/resources/channels.cr
asterisk/ari/resources/device_states.cr
asterisk/ari/resources/endpoints.cr
asterisk/ari/resources/events.cr
asterisk/ari/resources/mailboxes.cr
asterisk/ari/resources/playbacks.cr
asterisk/ari/resources/recordings.cr
asterisk/ari/resources/sounds.cr
asterisk/ari/models/applications_application.cr
asterisk/ari/models/asterisk_asterisk_info.cr
asterisk/ari/models/asterisk_asterisk_ping.cr
asterisk/ari/models/asterisk_build_info.cr
asterisk/ari/models/asterisk_config_info.cr
asterisk/ari/models/asterisk_config_tuple.cr
asterisk/ari/models/asterisk_log_channel.cr
asterisk/ari/models/asterisk_module.cr
asterisk/ari/models/asterisk_set_id.cr
asterisk/ari/models/asterisk_status_info.cr
asterisk/ari/models/asterisk_system_info.cr
asterisk/ari/models/asterisk_variable.cr
asterisk/ari/models/bridges_bridge.cr
asterisk/ari/models/channels_caller_id.cr
asterisk/ari/models/channels_channel.cr
asterisk/ari/models/channels_dialed.cr
asterisk/ari/models/channels_dialplan_cep.cr
asterisk/ari/models/channels_external_media.cr
asterisk/ari/models/channels_rt_pstat.cr
asterisk/ari/models/device_states_device_state.cr
asterisk/ari/models/endpoints_endpoint.cr
asterisk/ari/models/endpoints_text_message.cr
asterisk/ari/models/endpoints_text_message_variable.cr
asterisk/ari/models/mailboxes_mailbox.cr
asterisk/ari/models/playbacks_playback.cr
asterisk/ari/models/recordings_live_recording.cr
asterisk/ari/models/recordings_stored_recording.cr
asterisk/ari/models/sounds_format_lang_pair.cr
asterisk/ari/models/sounds_sound.cr
asterisk/ari/events/message.cr
asterisk/ari/events/event.cr
asterisk/ari/events/application_move_failed.cr
asterisk/ari/events/application_replaced.cr
asterisk/ari/events/bridge_attended_transfer.cr
asterisk/ari/events/bridge_blind_transfer.cr
asterisk/ari/events/bridge_created.cr
asterisk/ari/events/bridge_destroyed.cr
asterisk/ari/events/bridge_merged.cr
asterisk/ari/events/bridge_video_source_changed.cr
asterisk/ari/events/channel_caller_id.cr
asterisk/ari/events/channel_connected_line.cr
asterisk/ari/events/channel_created.cr
asterisk/ari/events/channel_destroyed.cr
asterisk/ari/events/channel_dialplan.cr
asterisk/ari/events/channel_dtmf_received.cr
asterisk/ari/events/channel_entered_bridge.cr
asterisk/ari/events/channel_hangup_request.cr
asterisk/ari/events/channel_hold.cr
asterisk/ari/events/channel_left_bridge.cr
asterisk/ari/events/channel_state_change.cr
asterisk/ari/events/channel_talking_finished.cr
asterisk/ari/events/channel_talking_started.cr
asterisk/ari/events/channel_unhold.cr
asterisk/ari/events/channel_userevent.cr
asterisk/ari/events/channel_varset.cr
asterisk/ari/events/contact_info.cr
asterisk/ari/events/contact_status_change.cr
asterisk/ari/events/device_state_changed.cr
asterisk/ari/events/dial.cr
asterisk/ari/events/endpoint_state_change.cr
asterisk/ari/events/missing_params.cr
asterisk/ari/events/peer.cr
asterisk/ari/events/peer_status_change.cr
asterisk/ari/events/playback_continuing.cr
asterisk/ari/events/playback_finished.cr
asterisk/ari/events/playback_started.cr
asterisk/ari/events/recording_failed.cr
asterisk/ari/events/recording_finished.cr
asterisk/ari/events/recording_started.cr
asterisk/ari/events/stasis_end.cr
asterisk/ari/events/stasis_start.cr
asterisk/ari/events/text_message_received.cr
asterisk/ari.cr
Constant Summary
-
GRACEFULLY_HANDLERS_REMOVAL_TIMEOUT =
0.02.seconds
Constructors
Instance Method Summary
-
#app : String
ARI app-name
- #applications
- #asterisk
-
#asterisk_version : String?
will be set by
connect
- #bridges
- #channels
- #client
-
#close
close ARI http and ws-connections
- #closed?
- #connected?
- #delete(path, headers : HTTP::Headers? = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #device_states
- #endpoints
- #entity_id : String?
- #event_on(handler_id : String, event_filter : NamedTuple, &block : String -> ) : String
- #event_on(handler_id : String, event_filter : JSON::Any, &block : String -> ) : String
- #event_on(event_filter : JSON::Any, &block : String -> ) : String
- #event_on(event_filter : NamedTuple, &block : String -> ) : String
- #events
- #get(path, headers : HTTP::Headers? = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #handlers(event_filter : JSON::Any = JSON.parse("{}"))
- #logger : Logger
- #logger=(logger : Logger)
- #mailboxes
- #on_application_move_failed(handler_id : String, event_filter : NamedTuple, &block : Events::ApplicationMoveFailed -> )
- #on_application_move_failed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ApplicationMoveFailed -> )
- #on_application_move_failed(event_filter : NamedTuple, &block : Events::ApplicationMoveFailed -> )
- #on_application_move_failed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ApplicationMoveFailed -> )
- #on_application_replaced(handler_id : String, event_filter : NamedTuple, &block : Events::ApplicationReplaced -> )
- #on_application_replaced(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ApplicationReplaced -> )
- #on_application_replaced(event_filter : NamedTuple, &block : Events::ApplicationReplaced -> )
- #on_application_replaced(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ApplicationReplaced -> )
- #on_bridge_attended_transfer(event_filter : NamedTuple, &block : Events::BridgeAttendedTransfer -> )
- #on_bridge_attended_transfer(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeAttendedTransfer -> )
- #on_bridge_attended_transfer(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeAttendedTransfer -> )
- #on_bridge_attended_transfer(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeAttendedTransfer -> )
- #on_bridge_blind_transfer(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeBlindTransfer -> )
- #on_bridge_blind_transfer(event_filter : NamedTuple, &block : Events::BridgeBlindTransfer -> )
- #on_bridge_blind_transfer(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeBlindTransfer -> )
- #on_bridge_blind_transfer(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeBlindTransfer -> )
- #on_bridge_created(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeCreated -> )
- #on_bridge_created(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeCreated -> )
- #on_bridge_created(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeCreated -> )
- #on_bridge_created(event_filter : NamedTuple, &block : Events::BridgeCreated -> )
- #on_bridge_destroyed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeDestroyed -> )
- #on_bridge_destroyed(event_filter : NamedTuple, &block : Events::BridgeDestroyed -> )
- #on_bridge_destroyed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeDestroyed -> )
- #on_bridge_destroyed(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeDestroyed -> )
- #on_bridge_merged(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeMerged -> )
- #on_bridge_merged(event_filter : NamedTuple, &block : Events::BridgeMerged -> )
- #on_bridge_merged(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeMerged -> )
- #on_bridge_merged(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeMerged -> )
- #on_bridge_video_source_changed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeVideoSourceChanged -> )
- #on_bridge_video_source_changed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeVideoSourceChanged -> )
- #on_bridge_video_source_changed(event_filter : NamedTuple, &block : Events::BridgeVideoSourceChanged -> )
- #on_bridge_video_source_changed(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeVideoSourceChanged -> )
- #on_channel_caller_id(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelCallerId -> )
- #on_channel_caller_id(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelCallerId -> )
- #on_channel_caller_id(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelCallerId -> )
- #on_channel_caller_id(event_filter : NamedTuple, &block : Events::ChannelCallerId -> )
- #on_channel_connected_line(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelConnectedLine -> )
- #on_channel_connected_line(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelConnectedLine -> )
- #on_channel_connected_line(event_filter : NamedTuple, &block : Events::ChannelConnectedLine -> )
- #on_channel_connected_line(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelConnectedLine -> )
- #on_channel_created(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelCreated -> )
- #on_channel_created(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelCreated -> )
- #on_channel_created(event_filter : NamedTuple, &block : Events::ChannelCreated -> )
- #on_channel_created(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelCreated -> )
- #on_channel_destroyed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDestroyed -> )
- #on_channel_destroyed(event_filter : NamedTuple, &block : Events::ChannelDestroyed -> )
- #on_channel_destroyed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDestroyed -> )
- #on_channel_destroyed(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelDestroyed -> )
- #on_channel_dialplan(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDialplan -> )
- #on_channel_dialplan(event_filter : NamedTuple, &block : Events::ChannelDialplan -> )
- #on_channel_dialplan(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDialplan -> )
- #on_channel_dialplan(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelDialplan -> )
- #on_channel_dtmf_received(event_filter : NamedTuple, &block : Events::ChannelDtmfReceived -> )
- #on_channel_dtmf_received(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDtmfReceived -> )
- #on_channel_dtmf_received(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDtmfReceived -> )
- #on_channel_dtmf_received(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelDtmfReceived -> )
- #on_channel_entered_bridge(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelEnteredBridge -> )
- #on_channel_entered_bridge(event_filter : NamedTuple, &block : Events::ChannelEnteredBridge -> )
- #on_channel_entered_bridge(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelEnteredBridge -> )
- #on_channel_entered_bridge(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelEnteredBridge -> )
- #on_channel_hangup_request(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelHangupRequest -> )
- #on_channel_hangup_request(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelHangupRequest -> )
- #on_channel_hangup_request(event_filter : NamedTuple, &block : Events::ChannelHangupRequest -> )
- #on_channel_hangup_request(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelHangupRequest -> )
- #on_channel_hold(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelHold -> )
- #on_channel_hold(event_filter : NamedTuple, &block : Events::ChannelHold -> )
- #on_channel_hold(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelHold -> )
- #on_channel_hold(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelHold -> )
- #on_channel_left_bridge(event_filter : NamedTuple, &block : Events::ChannelLeftBridge -> )
- #on_channel_left_bridge(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelLeftBridge -> )
- #on_channel_left_bridge(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelLeftBridge -> )
- #on_channel_left_bridge(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelLeftBridge -> )
- #on_channel_state_change(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelStateChange -> )
- #on_channel_state_change(event_filter : NamedTuple, &block : Events::ChannelStateChange -> )
- #on_channel_state_change(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelStateChange -> )
- #on_channel_state_change(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelStateChange -> )
- #on_channel_talking_finished(event_filter : NamedTuple, &block : Events::ChannelTalkingFinished -> )
- #on_channel_talking_finished(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelTalkingFinished -> )
- #on_channel_talking_finished(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelTalkingFinished -> )
- #on_channel_talking_finished(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelTalkingFinished -> )
- #on_channel_talking_started(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelTalkingStarted -> )
- #on_channel_talking_started(event_filter : NamedTuple, &block : Events::ChannelTalkingStarted -> )
- #on_channel_talking_started(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelTalkingStarted -> )
- #on_channel_talking_started(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelTalkingStarted -> )
- #on_channel_unhold(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelUnhold -> )
- #on_channel_unhold(event_filter : NamedTuple, &block : Events::ChannelUnhold -> )
- #on_channel_unhold(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelUnhold -> )
- #on_channel_unhold(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelUnhold -> )
- #on_channel_userevent(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelUserevent -> )
- #on_channel_userevent(event_filter : NamedTuple, &block : Events::ChannelUserevent -> )
- #on_channel_userevent(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelUserevent -> )
- #on_channel_userevent(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelUserevent -> )
- #on_channel_varset(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelVarset -> )
- #on_channel_varset(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelVarset -> )
- #on_channel_varset(event_filter : NamedTuple, &block : Events::ChannelVarset -> )
- #on_channel_varset(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelVarset -> )
- #on_contact_info(handler_id : String, event_filter : NamedTuple, &block : Events::ContactInfo -> )
- #on_contact_info(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ContactInfo -> )
- #on_contact_info(event_filter : NamedTuple, &block : Events::ContactInfo -> )
- #on_contact_info(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ContactInfo -> )
- #on_contact_status_change(handler_id : String, event_filter : NamedTuple, &block : Events::ContactStatusChange -> )
- #on_contact_status_change(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ContactStatusChange -> )
- #on_contact_status_change(event_filter : NamedTuple, &block : Events::ContactStatusChange -> )
- #on_contact_status_change(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ContactStatusChange -> )
- #on_device_state_changed(handler_id : String, event_filter : NamedTuple, &block : Events::DeviceStateChanged -> )
- #on_device_state_changed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::DeviceStateChanged -> )
- #on_device_state_changed(event_filter : NamedTuple, &block : Events::DeviceStateChanged -> )
- #on_device_state_changed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::DeviceStateChanged -> )
- #on_dial(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::Dial -> )
- #on_dial(event_filter : NamedTuple, &block : Events::Dial -> )
- #on_dial(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::Dial -> )
- #on_dial(handler_id : String, event_filter : NamedTuple, &block : Events::Dial -> )
- #on_endpoint_state_change(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::EndpointStateChange -> )
- #on_endpoint_state_change(event_filter : NamedTuple, &block : Events::EndpointStateChange -> )
- #on_endpoint_state_change(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::EndpointStateChange -> )
- #on_endpoint_state_change(handler_id : String, event_filter : NamedTuple, &block : Events::EndpointStateChange -> )
- #on_missing_params(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::MissingParams -> )
- #on_missing_params(event_filter : NamedTuple, &block : Events::MissingParams -> )
- #on_missing_params(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::MissingParams -> )
- #on_missing_params(handler_id : String, event_filter : NamedTuple, &block : Events::MissingParams -> )
- #on_peer(handler_id : String, event_filter : NamedTuple, &block : Events::Peer -> )
- #on_peer(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::Peer -> )
- #on_peer(event_filter : NamedTuple, &block : Events::Peer -> )
- #on_peer(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::Peer -> )
- #on_peer_status_change(handler_id : String, event_filter : NamedTuple, &block : Events::PeerStatusChange -> )
- #on_peer_status_change(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PeerStatusChange -> )
- #on_peer_status_change(event_filter : NamedTuple, &block : Events::PeerStatusChange -> )
- #on_peer_status_change(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PeerStatusChange -> )
- #on_playback_continuing(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackContinuing -> )
- #on_playback_continuing(event_filter : NamedTuple, &block : Events::PlaybackContinuing -> )
- #on_playback_continuing(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackContinuing -> )
- #on_playback_continuing(handler_id : String, event_filter : NamedTuple, &block : Events::PlaybackContinuing -> )
- #on_playback_finished(handler_id : String, event_filter : NamedTuple, &block : Events::PlaybackFinished -> )
- #on_playback_finished(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackFinished -> )
- #on_playback_finished(event_filter : NamedTuple, &block : Events::PlaybackFinished -> )
- #on_playback_finished(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackFinished -> )
- #on_playback_started(event_filter : NamedTuple, &block : Events::PlaybackStarted -> )
- #on_playback_started(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackStarted -> )
- #on_playback_started(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackStarted -> )
- #on_playback_started(handler_id : String, event_filter : NamedTuple, &block : Events::PlaybackStarted -> )
- #on_recording_failed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingFailed -> )
- #on_recording_failed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingFailed -> )
- #on_recording_failed(handler_id : String, event_filter : NamedTuple, &block : Events::RecordingFailed -> )
- #on_recording_failed(event_filter : NamedTuple, &block : Events::RecordingFailed -> )
- #on_recording_finished(handler_id : String, event_filter : NamedTuple, &block : Events::RecordingFinished -> )
- #on_recording_finished(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingFinished -> )
- #on_recording_finished(event_filter : NamedTuple, &block : Events::RecordingFinished -> )
- #on_recording_finished(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingFinished -> )
- #on_recording_started(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingStarted -> )
- #on_recording_started(event_filter : NamedTuple, &block : Events::RecordingStarted -> )
- #on_recording_started(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingStarted -> )
- #on_recording_started(handler_id : String, event_filter : NamedTuple, &block : Events::RecordingStarted -> )
- #on_stasis_end(handler_id : String, event_filter : NamedTuple, &block : Events::StasisEnd -> )
- #on_stasis_end(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::StasisEnd -> )
- #on_stasis_end(event_filter : NamedTuple, &block : Events::StasisEnd -> )
- #on_stasis_end(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::StasisEnd -> )
- #on_stasis_start(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::StasisStart -> )
- #on_stasis_start(event_filter : NamedTuple, &block : Events::StasisStart -> )
- #on_stasis_start(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::StasisStart -> )
- #on_stasis_start(handler_id : String, event_filter : NamedTuple, &block : Events::StasisStart -> )
- #on_text_message_received(handler_id : String, event_filter : NamedTuple, &block : Events::TextMessageReceived -> )
- #on_text_message_received(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::TextMessageReceived -> )
- #on_text_message_received(event_filter : NamedTuple, &block : Events::TextMessageReceived -> )
- #on_text_message_received(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::TextMessageReceived -> )
- #playbacks
- #post(path, headers : HTTP::Headers? = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #put(path, headers : HTTP::Headers? = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #recordings
- #remove_handler(handler_id : String)
- #sounds
-
#start
Start ARI connections (HTTP client, WS-client and event handlers) TODO: client handlers for on_connected and on_close
Constructor Detail
def self.new(url = "http://127.0.0.1:8088/ari", app = "asterisk.cr", username = "", password = "")
#
Instance Method Detail
def delete(path, headers : HTTP::Headers? = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def event_on(handler_id : String, event_filter : NamedTuple, &block : String -> ) : String
#
def event_on(handler_id : String, event_filter : JSON::Any, &block : String -> ) : String
#
def get(path, headers : HTTP::Headers? = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def on_application_move_failed(handler_id : String, event_filter : NamedTuple, &block : Events::ApplicationMoveFailed -> )
#
def on_application_move_failed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ApplicationMoveFailed -> )
#
def on_application_move_failed(event_filter : NamedTuple, &block : Events::ApplicationMoveFailed -> )
#
def on_application_move_failed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ApplicationMoveFailed -> )
#
def on_application_replaced(handler_id : String, event_filter : NamedTuple, &block : Events::ApplicationReplaced -> )
#
def on_application_replaced(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ApplicationReplaced -> )
#
def on_application_replaced(event_filter : NamedTuple, &block : Events::ApplicationReplaced -> )
#
def on_application_replaced(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ApplicationReplaced -> )
#
def on_bridge_attended_transfer(event_filter : NamedTuple, &block : Events::BridgeAttendedTransfer -> )
#
def on_bridge_attended_transfer(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeAttendedTransfer -> )
#
def on_bridge_attended_transfer(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeAttendedTransfer -> )
#
def on_bridge_attended_transfer(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeAttendedTransfer -> )
#
def on_bridge_blind_transfer(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeBlindTransfer -> )
#
def on_bridge_blind_transfer(event_filter : NamedTuple, &block : Events::BridgeBlindTransfer -> )
#
def on_bridge_blind_transfer(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeBlindTransfer -> )
#
def on_bridge_blind_transfer(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeBlindTransfer -> )
#
def on_bridge_created(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeCreated -> )
#
def on_bridge_created(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeCreated -> )
#
def on_bridge_created(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeCreated -> )
#
def on_bridge_created(event_filter : NamedTuple, &block : Events::BridgeCreated -> )
#
def on_bridge_destroyed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeDestroyed -> )
#
def on_bridge_destroyed(event_filter : NamedTuple, &block : Events::BridgeDestroyed -> )
#
def on_bridge_destroyed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeDestroyed -> )
#
def on_bridge_destroyed(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeDestroyed -> )
#
def on_bridge_merged(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeMerged -> )
#
def on_bridge_merged(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeMerged -> )
#
def on_bridge_merged(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeMerged -> )
#
def on_bridge_video_source_changed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeVideoSourceChanged -> )
#
def on_bridge_video_source_changed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::BridgeVideoSourceChanged -> )
#
def on_bridge_video_source_changed(event_filter : NamedTuple, &block : Events::BridgeVideoSourceChanged -> )
#
def on_bridge_video_source_changed(handler_id : String, event_filter : NamedTuple, &block : Events::BridgeVideoSourceChanged -> )
#
def on_channel_caller_id(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelCallerId -> )
#
def on_channel_caller_id(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelCallerId -> )
#
def on_channel_caller_id(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelCallerId -> )
#
def on_channel_caller_id(event_filter : NamedTuple, &block : Events::ChannelCallerId -> )
#
def on_channel_connected_line(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelConnectedLine -> )
#
def on_channel_connected_line(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelConnectedLine -> )
#
def on_channel_connected_line(event_filter : NamedTuple, &block : Events::ChannelConnectedLine -> )
#
def on_channel_connected_line(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelConnectedLine -> )
#
def on_channel_created(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelCreated -> )
#
def on_channel_created(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelCreated -> )
#
def on_channel_created(event_filter : NamedTuple, &block : Events::ChannelCreated -> )
#
def on_channel_created(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelCreated -> )
#
def on_channel_destroyed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDestroyed -> )
#
def on_channel_destroyed(event_filter : NamedTuple, &block : Events::ChannelDestroyed -> )
#
def on_channel_destroyed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDestroyed -> )
#
def on_channel_destroyed(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelDestroyed -> )
#
def on_channel_dialplan(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDialplan -> )
#
def on_channel_dialplan(event_filter : NamedTuple, &block : Events::ChannelDialplan -> )
#
def on_channel_dialplan(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDialplan -> )
#
def on_channel_dialplan(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelDialplan -> )
#
def on_channel_dtmf_received(event_filter : NamedTuple, &block : Events::ChannelDtmfReceived -> )
#
def on_channel_dtmf_received(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDtmfReceived -> )
#
def on_channel_dtmf_received(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelDtmfReceived -> )
#
def on_channel_dtmf_received(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelDtmfReceived -> )
#
def on_channel_entered_bridge(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelEnteredBridge -> )
#
def on_channel_entered_bridge(event_filter : NamedTuple, &block : Events::ChannelEnteredBridge -> )
#
def on_channel_entered_bridge(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelEnteredBridge -> )
#
def on_channel_entered_bridge(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelEnteredBridge -> )
#
def on_channel_hangup_request(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelHangupRequest -> )
#
def on_channel_hangup_request(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelHangupRequest -> )
#
def on_channel_hangup_request(event_filter : NamedTuple, &block : Events::ChannelHangupRequest -> )
#
def on_channel_hangup_request(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelHangupRequest -> )
#
def on_channel_hold(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelHold -> )
#
def on_channel_hold(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelHold -> )
#
def on_channel_hold(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelHold -> )
#
def on_channel_left_bridge(event_filter : NamedTuple, &block : Events::ChannelLeftBridge -> )
#
def on_channel_left_bridge(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelLeftBridge -> )
#
def on_channel_left_bridge(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelLeftBridge -> )
#
def on_channel_left_bridge(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelLeftBridge -> )
#
def on_channel_state_change(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelStateChange -> )
#
def on_channel_state_change(event_filter : NamedTuple, &block : Events::ChannelStateChange -> )
#
def on_channel_state_change(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelStateChange -> )
#
def on_channel_state_change(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelStateChange -> )
#
def on_channel_talking_finished(event_filter : NamedTuple, &block : Events::ChannelTalkingFinished -> )
#
def on_channel_talking_finished(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelTalkingFinished -> )
#
def on_channel_talking_finished(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelTalkingFinished -> )
#
def on_channel_talking_finished(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelTalkingFinished -> )
#
def on_channel_talking_started(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelTalkingStarted -> )
#
def on_channel_talking_started(event_filter : NamedTuple, &block : Events::ChannelTalkingStarted -> )
#
def on_channel_talking_started(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelTalkingStarted -> )
#
def on_channel_talking_started(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelTalkingStarted -> )
#
def on_channel_unhold(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelUnhold -> )
#
def on_channel_unhold(event_filter : NamedTuple, &block : Events::ChannelUnhold -> )
#
def on_channel_unhold(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelUnhold -> )
#
def on_channel_unhold(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelUnhold -> )
#
def on_channel_userevent(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelUserevent -> )
#
def on_channel_userevent(event_filter : NamedTuple, &block : Events::ChannelUserevent -> )
#
def on_channel_userevent(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelUserevent -> )
#
def on_channel_userevent(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelUserevent -> )
#
def on_channel_varset(handler_id : String, event_filter : NamedTuple, &block : Events::ChannelVarset -> )
#
def on_channel_varset(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelVarset -> )
#
def on_channel_varset(event_filter : NamedTuple, &block : Events::ChannelVarset -> )
#
def on_channel_varset(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ChannelVarset -> )
#
def on_contact_info(handler_id : String, event_filter : NamedTuple, &block : Events::ContactInfo -> )
#
def on_contact_info(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ContactInfo -> )
#
def on_contact_info(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ContactInfo -> )
#
def on_contact_status_change(handler_id : String, event_filter : NamedTuple, &block : Events::ContactStatusChange -> )
#
def on_contact_status_change(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ContactStatusChange -> )
#
def on_contact_status_change(event_filter : NamedTuple, &block : Events::ContactStatusChange -> )
#
def on_contact_status_change(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::ContactStatusChange -> )
#
def on_device_state_changed(handler_id : String, event_filter : NamedTuple, &block : Events::DeviceStateChanged -> )
#
def on_device_state_changed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::DeviceStateChanged -> )
#
def on_device_state_changed(event_filter : NamedTuple, &block : Events::DeviceStateChanged -> )
#
def on_device_state_changed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::DeviceStateChanged -> )
#
def on_dial(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::Dial -> )
#
def on_dial(handler_id : String, event_filter : NamedTuple, &block : Events::Dial -> )
#
def on_endpoint_state_change(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::EndpointStateChange -> )
#
def on_endpoint_state_change(event_filter : NamedTuple, &block : Events::EndpointStateChange -> )
#
def on_endpoint_state_change(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::EndpointStateChange -> )
#
def on_endpoint_state_change(handler_id : String, event_filter : NamedTuple, &block : Events::EndpointStateChange -> )
#
def on_missing_params(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::MissingParams -> )
#
def on_missing_params(event_filter : NamedTuple, &block : Events::MissingParams -> )
#
def on_missing_params(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::MissingParams -> )
#
def on_missing_params(handler_id : String, event_filter : NamedTuple, &block : Events::MissingParams -> )
#
def on_peer(handler_id : String, event_filter : NamedTuple, &block : Events::Peer -> )
#
def on_peer(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::Peer -> )
#
def on_peer_status_change(handler_id : String, event_filter : NamedTuple, &block : Events::PeerStatusChange -> )
#
def on_peer_status_change(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PeerStatusChange -> )
#
def on_peer_status_change(event_filter : NamedTuple, &block : Events::PeerStatusChange -> )
#
def on_peer_status_change(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PeerStatusChange -> )
#
def on_playback_continuing(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackContinuing -> )
#
def on_playback_continuing(event_filter : NamedTuple, &block : Events::PlaybackContinuing -> )
#
def on_playback_continuing(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackContinuing -> )
#
def on_playback_continuing(handler_id : String, event_filter : NamedTuple, &block : Events::PlaybackContinuing -> )
#
def on_playback_finished(handler_id : String, event_filter : NamedTuple, &block : Events::PlaybackFinished -> )
#
def on_playback_finished(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackFinished -> )
#
def on_playback_finished(event_filter : NamedTuple, &block : Events::PlaybackFinished -> )
#
def on_playback_finished(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackFinished -> )
#
def on_playback_started(event_filter : NamedTuple, &block : Events::PlaybackStarted -> )
#
def on_playback_started(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackStarted -> )
#
def on_playback_started(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::PlaybackStarted -> )
#
def on_playback_started(handler_id : String, event_filter : NamedTuple, &block : Events::PlaybackStarted -> )
#
def on_recording_failed(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingFailed -> )
#
def on_recording_failed(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingFailed -> )
#
def on_recording_failed(handler_id : String, event_filter : NamedTuple, &block : Events::RecordingFailed -> )
#
def on_recording_failed(event_filter : NamedTuple, &block : Events::RecordingFailed -> )
#
def on_recording_finished(handler_id : String, event_filter : NamedTuple, &block : Events::RecordingFinished -> )
#
def on_recording_finished(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingFinished -> )
#
def on_recording_finished(event_filter : NamedTuple, &block : Events::RecordingFinished -> )
#
def on_recording_finished(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingFinished -> )
#
def on_recording_started(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingStarted -> )
#
def on_recording_started(event_filter : NamedTuple, &block : Events::RecordingStarted -> )
#
def on_recording_started(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::RecordingStarted -> )
#
def on_recording_started(handler_id : String, event_filter : NamedTuple, &block : Events::RecordingStarted -> )
#
def on_stasis_end(handler_id : String, event_filter : NamedTuple, &block : Events::StasisEnd -> )
#
def on_stasis_end(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::StasisEnd -> )
#
def on_stasis_start(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::StasisStart -> )
#
def on_stasis_start(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::StasisStart -> )
#
def on_stasis_start(handler_id : String, event_filter : NamedTuple, &block : Events::StasisStart -> )
#
def on_text_message_received(handler_id : String, event_filter : NamedTuple, &block : Events::TextMessageReceived -> )
#
def on_text_message_received(event_filter : JSON::Any = JSON.parse("{}"), &block : Events::TextMessageReceived -> )
#
def on_text_message_received(event_filter : NamedTuple, &block : Events::TextMessageReceived -> )
#
def on_text_message_received(handler_id : String, event_filter : JSON::Any = JSON.parse("{}"), &block : Events::TextMessageReceived -> )
#
def post(path, headers : HTTP::Headers? = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def put(path, headers : HTTP::Headers? = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def start
#
Start ARI connections (HTTP client, WS-client and event handlers)
TODO client handlers for on_connected and on_close