McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 515

↗ View in doc context
page
515
source
finesse/v12.5/developer-guide/developer-guide.md
chunk_id
finesse::v12.5::developer-guide::developer-guide::499

setRoutable(options) Sets the routable status in the media. Parameters Required Description Type Name Yes An media object with options. Object options Yes Determines whether the agent is routable or not. String -->routable Yes An object containing the handlers for the request. For more information on handlers, see Request Handlers, on page 447. Object -->handlers Returns {finesse.restservices.Media} The media object. setState(newState, reasonCode, params) Sets the state of the user in the media. Example _media.setState(finesse.restservices.Media.States.NOT_READY, { id: _reasonCodeId }, { handlers: { success: _handleStateChangeSuccess, error: handleStateChangeError } }); Parameters Required Description Type Name Yes The new state of the user in the media. String newState Yes The reasonCode for the user to log out of the media. Pass null as the first parameter if no reason code is associated with the log out event. String reasonCode Yes An media object with options. Object params Yes The maximum number of dialogs that are allowed in the media. For more information, see #unique_399 unique 399_Connect_42_d15e137. String -->maxDialogLimit Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 499 Cisco Finesse JavaScript APIs Media