Class: Kaltura::KalturaPexipService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_sip_client_plugin.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaPexipService

Returns a new instance of KalturaPexipService.



115
116
117
# File 'lib/kaltura_plugins/kaltura_sip_client_plugin.rb', line 115

def initialize(client)
	super(client)
end

Instance Method Details

#generate_sip_url(entry_id, regenerate = false, source_type = 1) ⇒ string

Returns:

  • (string)


120
121
122
123
124
125
126
127
128
129
130
# File 'lib/kaltura_plugins/kaltura_sip_client_plugin.rb', line 120

def generate_sip_url(entry_id, regenerate=false, source_type=1)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'regenerate', regenerate)
	client.add_param(kparams, 'sourceType', source_type)
	client.queue_service_action_call('sip_pexip', 'generateSipUrl', 'string', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#handle_incoming_callObject

Returns [].

Returns:



133
134
135
136
137
138
139
140
# File 'lib/kaltura_plugins/kaltura_sip_client_plugin.rb', line 133

def handle_incoming_call()
	kparams = {}
	client.queue_service_action_call('sip_pexip', 'handleIncomingCall', '', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#list_rooms(offset = 0, page_size = 500, active_only = false) ⇒ array

Returns:

  • (array)


143
144
145
146
147
148
149
150
151
152
153
# File 'lib/kaltura_plugins/kaltura_sip_client_plugin.rb', line 143

def list_rooms(offset=0, page_size=500, active_only=false)
	kparams = {}
	client.add_param(kparams, 'offset', offset)
	client.add_param(kparams, 'pageSize', page_size)
	client.add_param(kparams, 'activeOnly', active_only)
	client.queue_service_action_call('sip_pexip', 'listRooms', 'KalturaStringValue', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end