CosmoCall object

This object is available to all call types.

Property name

Type

Description

cosmocall.CallID

String

CosmoCall call identifier

cosmocall.LastError

String

This parameter is available as read only in the CallRejected Script where it represents the CMS reject reason:

  • 0 — Call was queued / call is valid
  • 1 — Unknown error
  • 2 — Insufficient memory
  • 3 — No suitable agent was found
  • 4 — Invalid queue
  • 5 — Invalid Connection Server address
  • 6 — No CallId
  • 7 — Invalid external queue ID
  • 8 — DID agent is not free
  • 9 — CMS got an invalid EXTERNAL_AGENT_ID (ThirdPartyID)
  • 10 — CMS failed to locate logged-in agent marked for external routing

cosmocall.MarkAsAbandoned

String

If true, sets abandoned calls in rejected script to be reported as abandoned.

If false, sets abandoned calls in rejected script to be reported as rejected (the default).

CosmoCall.CallbackData object

This object is available only for outgoing VoIP calls. All properties are Read only.

Property name

Type

Description

cosmocall.callBackData.DirectRouteAgentId

Integer

Returns the agent ID where the originating callback was routed to. Can be 0 if the originating callback call was routed via ACD rules.

cosmocall.callBackData.OutDialingAddress

String

Returns the designated callback address (usually phone number).

cosmocall.callBackData.ImmediateDialing

Boolean

Returns the immediate dialing flag. If set to true, this callout started automatically when the originating callback arrived at the agent.

cosmocall.callBackData.OriginatingCallID

String

Returns the call ID of the originating callback call.

cosmocall.callBackData.OriginatingAgentID

Integer

Returns the agent ID of the agent scheduling the originating callback call. Can be 0 if the callback was scheduled from a script.

cosmocall.callBackData.AttachmentUrl

String

Returns the attachment's URL of the originating callback call. Previously known as CallerURL.

cosmocall.callBackData.Message

String

Returns the message of the originating callback call. Previously known as CallerMessage.

cosmocall.callBackData.OriginatingQueueName

String

Returns the name of the queue of the originating callback call.

cosmocall.callBackData.RescheduleCount

Integer

Returns the reschedule count of the originating callback call.

cosmocall.callBackData.MaxRescheduleCount

Integer

Returns the maximum reschedule count of the originating callback call.

CosmoCall.TtsInfo object

This object is available only for VoIP and chat calls during TTS (Transfer to System) flow, if the selected EntryPoint includes a script. All properties are Read only.

Property name

Type

Description

CosmoCall.TtsInfo.blockName

String

Returns the block name used during the TTS (only if set via selected EntryPoint).

cosmocall.ttsInfo.ParamName

String

Returns the parameter name used during the TTS (only if set via selected EntryPoint).

cosmocall.ttsInfo.ScriptName

String

Returns the script name used during the TTS (only if set via selected EntryPoint).

cosmocall.ttsInfo.ApplicationID

Integer

Returns the application ID used during the TTS (only if set via selected EntryPoint).

cosmocall.ttsInfo.CallType

Integer

Returns the TTS call type - one of the following values:

  • 0 - main call (all media)
  • 1 - outgoing TTS call (VoIP only)
  • 2 - incoming TTS call (VoIP only)

cosmocall.ttsInfo.ParentCallId

String

Returns the TTS parent call ID.