@webex/calling 3.5.0-next.20 → 3.5.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CallingClient/calling/call.js +26 -4
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +456 -373
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/calling/types.js +6 -1
- package/dist/CallingClient/calling/types.js.map +1 -1
- package/dist/module/CallingClient/calling/call.js +22 -4
- package/dist/module/CallingClient/calling/types.js +5 -0
- package/dist/types/CallingClient/calling/call.d.ts +2 -2
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/types.d.ts +5 -1
- package/dist/types/CallingClient/calling/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/defi
|
|
|
4
4
|
_Object$defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TransferType = exports.RoapScenario = exports.MobiusEventType = exports.MobiusCallState = exports.MidCallEventType = exports.MediaState = exports.DisconnectCode = exports.DisconnectCause = void 0;
|
|
7
|
+
exports.TransferType = exports.RoapScenario = exports.MobiusEventType = exports.MobiusCallState = exports.MidCallEventType = exports.MediaState = exports.MUTE_TYPE = exports.DisconnectCode = exports.DisconnectCause = void 0;
|
|
8
8
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9
9
|
var MobiusEventType = exports.MobiusEventType = /*#__PURE__*/function (MobiusEventType) {
|
|
10
10
|
MobiusEventType["CALL_SETUP"] = "mobius.call";
|
|
@@ -60,6 +60,11 @@ var TransferType = exports.TransferType = /*#__PURE__*/function (TransferType) {
|
|
|
60
60
|
TransferType["CONSULT"] = "CONSULT";
|
|
61
61
|
return TransferType;
|
|
62
62
|
}({});
|
|
63
|
+
var MUTE_TYPE = exports.MUTE_TYPE = /*#__PURE__*/function (MUTE_TYPE) {
|
|
64
|
+
MUTE_TYPE["USER"] = "user_mute";
|
|
65
|
+
MUTE_TYPE["SYSTEM"] = "system_mute";
|
|
66
|
+
return MUTE_TYPE;
|
|
67
|
+
}({});
|
|
63
68
|
/**
|
|
64
69
|
* Represents an interface for managing call-related operations.
|
|
65
70
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MobiusEventType","exports","MediaState","DisconnectCode","DisconnectCause","MidCallEventType","RoapScenario","MobiusCallState","TransferType"],"sources":["types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {LocalMicrophoneStream} from '@webex/internal-media-core';\nimport {CallError} from '../../Errors/catalog/CallError';\nimport {\n CallDetails,\n CallDirection,\n CallId,\n CorrelationId,\n DisplayInformation,\n} from '../../common/types';\nimport {Eventing} from '../../Events/impl';\nimport {CallerIdInfo, CallEvent, CallEventTypes, RoapEvent, RoapMessage} from '../../Events/types';\nimport {ILine} from '../line/types';\n\nexport enum MobiusEventType {\n CALL_SETUP = 'mobius.call',\n CALL_PROGRESS = 'mobius.callprogress',\n CALL_CONNECTED = 'mobius.callconnected',\n CALL_MEDIA = 'mobius.media',\n CALL_DISCONNECTED = 'mobius.calldisconnected',\n}\n\nexport enum MediaState {\n OFFER = 'OFFER',\n ANSWER = 'ANSWER',\n OFFER_REQUEST = 'OFFER_REQUEST',\n OK = 'OK',\n ERROR = 'ERROR',\n}\n\nexport enum DisconnectCode {\n BUSY = 115,\n NORMAL = 0,\n MEDIA_INACTIVITY = 131,\n}\n\nexport enum DisconnectCause {\n BUSY = 'User Busy.',\n NORMAL = 'Normal Disconnect.',\n MEDIA_INACTIVITY = 'Media Inactivity.',\n}\n\n/* Work in Progress */\nexport enum MidCallEventType {\n CALL_INFO = 'callInfo',\n CALL_STATE = 'callState',\n}\n\nexport type MidCallCallerId = {\n callerId: CallerIdInfo;\n};\nexport type DisconnectReason = {\n code: DisconnectCode;\n cause: DisconnectCause;\n};\n\nexport enum RoapScenario {\n ANSWER = 'ANSWER',\n OK = 'OK',\n OFFER = 'OFFER',\n ERROR = 'ERROR',\n OFFER_RESPONSE = 'OFFER_RESPONSE',\n}\n\nexport enum MobiusCallState {\n PROCEEDING = 'sig_proceeding',\n PROGRESS = 'sig_progress',\n ALERTING = 'sig_alerting',\n CONNECTED = 'sig_connected',\n}\n\nexport type MobiusCallResponse = {\n statusCode: number;\n body: {\n device: {\n deviceId: string;\n correlationId: string;\n };\n callId: CallId;\n callData?: {\n callState: MobiusCallState;\n };\n };\n};\n\nexport type MidCallEvent = {\n eventType: string;\n eventData: unknown;\n};\n\nexport type SupplementaryServiceState = {\n callState: string;\n};\n\nexport type MobiusCallData = {\n callProgressData?: {\n alerting: boolean;\n inbandMedia: boolean;\n };\n message?: RoapMessage;\n callerId: {\n from: string;\n };\n midCallService?: Array<MidCallEvent>;\n callId: CallId;\n callUrl: string;\n deviceId: string;\n correlationId: string;\n eventType: MobiusEventType;\n broadworksCorrelationInfo?: string;\n};\n\nexport type MobiusCallEvent = {\n id: string;\n data: MobiusCallData;\n timestamp: number;\n trackingId: string;\n};\n\nexport type PatchResponse = {\n statusCode: number;\n body: {\n device: {\n deviceId: string;\n correlationId: string;\n };\n callId: CallId;\n };\n};\n\nexport type SSResponse = {\n statusCode: number;\n body: {\n device: {\n deviceId: string;\n correlationId: string;\n };\n callId: CallId;\n };\n};\n\nexport type DivertContext = {\n destination: string;\n toVoicemail: boolean;\n};\n\nexport type TransferContext = {\n transferorCallId: CallId;\n destination?: string;\n transferToCallId?: CallId;\n};\n\nexport enum TransferType {\n BLIND = 'BLIND',\n CONSULT = 'CONSULT',\n}\n\nexport type ParkContext = {\n isGroupPark: boolean;\n destination: string;\n};\n\nexport type MediaContext = {\n previousState: string; // To be used for midcall and error handling.\n};\n\nexport type VoiceQualityMetrics = {\n VoRxCodec: string;\n VoPktSizeMs: number;\n maxJitter: number;\n VoOneWayDelayMs: number;\n networkType: string;\n hwType: string;\n};\n\nexport type TransmitterVqPayload = {\n VoTxCodec: string;\n rtpBitRate: number;\n};\n\nexport type ReceiveStatistics = {\n Dur: number;\n Pkt: number;\n Oct: number;\n LatePkt: number;\n LostPkt: number;\n AvgJit: number;\n VQMetrics: VoiceQualityMetrics;\n};\n\nexport type TransmitStatistics = {\n Dur: number;\n Pkt: number;\n Oct: number;\n VQMetrics: TransmitterVqPayload;\n};\n\nexport type CallRtpStats = {\n 'rtp-rxstat': ReceiveStatistics;\n 'rtp-txstat': TransmitStatistics;\n};\n\n/**\n * Represents an interface for managing call-related operations.\n */\nexport interface ICall extends Eventing<CallEventTypes> {\n /**\n * Fetches the identifier of the line associated with this call.\n *\n */\n lineId: string;\n\n /**\n * Fetches the unique call identifier.\n *\n */\n getCallId(): string;\n\n /**\n * Fetches the correlation identifier for this call.\n *\n */\n getCorrelationId(): string;\n\n /**\n * Fetches the direction of the call (e.g., inbound or outbound).\n *\n */\n getDirection(): CallDirection;\n\n /**\n * Sets the call identifier.\n *\n * @param callId - The new call identifier.\n */\n setCallId(callId: CallId): void;\n\n /**\n * Sends a call state machine event.\n *\n * @param event - The call event to send.\n * @ignore\n */\n sendCallStateMachineEvt(event: CallEvent): void;\n\n /**\n * Sends a media state machine event.\n *\n * @param event - The Roap event to send.\n * @ignore\n */\n sendMediaStateMachineEvt(event: RoapEvent): void;\n\n /**\n * Fetches the reason for disconnecting the call.\n *\n */\n getDisconnectReason(): DisconnectReason;\n\n /**\n * Disconnects the call.\n */\n end(): void;\n\n /**\n * Checks if the call is muted.\n *\n */\n isMuted(): boolean;\n\n /**\n * Checks if the call is connected.\n *\n */\n isConnected(): boolean;\n\n /**\n * Checks if the call is on hold.\n *\n */\n isHeld(): boolean;\n\n /**\n * Performs a hold or resume action on the call.\n */\n doHoldResume(): void;\n\n /**\n * Mutes or unmutes the call's local audio stream.\n *\n * @param localAudioStream - The local audio stream to mute or unmute.\n */\n mute(localAudioStream: LocalMicrophoneStream): void;\n\n /**\n * Fetches the caller information associated with the call.\n *\n */\n getCallerInfo(): DisplayInformation;\n\n /**\n * Initiates caller ID resolution for the call.\n * callerInfo data can be retrieved later by calling {@link getCallerInfo} method.\n * @param callerInfo - The caller ID information to resolve.\n */\n startCallerIdResolution(callerInfo: CallerIdInfo): void;\n\n /**\n * Handles a mid-call event.\n * @param event - The mid-call event to handle.\n * @ignore\n */\n handleMidCallEvent(event: MidCallEvent): void;\n\n /**\n * Dials the call using the provided local audio stream.\n *\n * @param localAudioStream - The local audio stream for the call.\n * @example\n * ```\n * const localAudioStream = await Calling.createMicrophoneStream({audio: true});\n * call.dial(localAudioStream);\n * ```\n */\n dial(localAudioStream: LocalMicrophoneStream): void;\n\n /**\n * Sends a DTMF digit during the call.\n *\n * @param tone - The DTMF tone to send.\n * @example\n * ```\n * call.sendDigit('1');\n * ```\n */\n sendDigit(tone: string): void;\n\n /**\n * Answers the call using the provided local audio stream.\n *\n * @param localAudioStream - The local audio stream for the call.\n *\n * @example\n * ```\n * const localAudioStream = await Calling.createMicrophoneStream({audio: true});\n * call.answer(localAudioStream);\n * ```\n */\n answer(localAudioStream: LocalMicrophoneStream): void;\n\n /**\n * Completes a call transfer.\n *\n * @param transferType - The type of transfer to perform. Eg. BLIND or CONSULT.\n * @param transferCallId - The call identifier for the transfer incase of Consult transfer (optional).\n * @param transferTarget - The target for the transfer incase of Blind transfer(optional).\n * @example\n * ```\n * // blind transfer\n * call.completeTransfer('BLIND', undefined, '5998');\n *\n * // consult transfer\n * call.completeTransfer('CONSULT', secondCall.getCallId(), undefined);\n * ```\n */\n completeTransfer(\n transferType: TransferType,\n transferCallId?: CallId,\n transferTarget?: string\n ): void;\n\n /**\n * Change the audio stream of the call.\n *\n * @param newAudioStream - The new audio stream to be used in the call.\n */\n updateMedia(newAudioStream: LocalMicrophoneStream): void;\n\n /**\n * Fetches the information related to the call's Broadworks correlationId.\n *\n */\n getBroadworksCorrelationInfo(): string | undefined;\n\n /**\n * Sets the Broadworks correlation information for the call.\n *\n * @param broadworksCorrelationInfo - The Broadworks correlation information.\n */\n setBroadworksCorrelationInfo(broadworksCorrelationInfo: string): void;\n\n /**\n * Fetches the RTP (Real-time Transport Protocol) statistics for the call.\n *\n */\n getCallRtpStats(): Promise<CallRtpStats>;\n}\n\nexport type DeleteRecordCallBack = (callId: CallId) => void;\nexport type CallEmitterCallBack = (callerInfo: DisplayInformation) => void;\nexport type CallErrorEmitterCallBack = (error: CallError) => void;\nexport type RetryCallBack = (interval: number) => void;\n\n/**\n * Represents an interface for managing calls within a call manager.\n */\nexport interface ICallManager extends Eventing<CallEventTypes> {\n /**\n * Creates a call with the specified details.\n *\n * @param destination - The call details including destination information.\n * @param direction - The direction of the call (e.g., incoming or outgoing).\n * @param deviceId - The unique identifier of the device associated with the call.\n * @param lineId - The identifier of the line to which the call belongs.\n */\n createCall(\n direction: CallDirection,\n deviceId: string,\n lineId: string,\n destination?: CallDetails\n ): ICall;\n\n /**\n * Retrieves a call based on its unique call identifier.\n *\n * @param correlationId - The unique identifier for the call at client\n */\n getCall(correlationId: CorrelationId): ICall;\n\n /**\n * Updates the active Mobius server URL.\n *\n * @param url - The new Mobius server URL to set.\n */\n updateActiveMobius(url: string): void;\n\n /**\n * Retrieves a dictionary of active calls, where each key is a call identifier\n * and the corresponding value is the call object.\n *\n */\n getActiveCalls(): Record<string, ICall>;\n\n /**\n * Updates a line associated with a specific device.\n *\n * @param deviceId - The unique identifier of the device.\n * @param line - The updated line object as {@link ILine}.\n */\n updateLine(deviceId: string, line: ILine): void;\n}\n"],"mappings":";;;;;;;AAAA;AAAA,IAcYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAAA,IAQfE,UAAU,GAAAD,OAAA,CAAAC,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAAA,IAQVC,cAAc,GAAAF,OAAA,CAAAE,cAAA,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAAA,IAMdC,eAAe,GAAAH,OAAA,CAAAG,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAM3B;AAAA,IACYC,gBAAgB,GAAAJ,OAAA,CAAAI,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAAA,IAahBC,YAAY,GAAAL,OAAA,CAAAK,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAAA,IAQZC,eAAe,GAAAN,OAAA,CAAAM,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAAA,IAwFfC,YAAY,GAAAP,OAAA,CAAAO,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAkDxB;AACA;AACA;AAuMA;AACA;AACA"}
|
|
1
|
+
{"version":3,"names":["MobiusEventType","exports","MediaState","DisconnectCode","DisconnectCause","MidCallEventType","RoapScenario","MobiusCallState","TransferType","MUTE_TYPE"],"sources":["types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {LocalMicrophoneStream} from '@webex/internal-media-core';\nimport {CallError} from '../../Errors/catalog/CallError';\nimport {\n CallDetails,\n CallDirection,\n CallId,\n CorrelationId,\n DisplayInformation,\n} from '../../common/types';\nimport {Eventing} from '../../Events/impl';\nimport {CallerIdInfo, CallEvent, CallEventTypes, RoapEvent, RoapMessage} from '../../Events/types';\nimport {ILine} from '../line/types';\n\nexport enum MobiusEventType {\n CALL_SETUP = 'mobius.call',\n CALL_PROGRESS = 'mobius.callprogress',\n CALL_CONNECTED = 'mobius.callconnected',\n CALL_MEDIA = 'mobius.media',\n CALL_DISCONNECTED = 'mobius.calldisconnected',\n}\n\nexport enum MediaState {\n OFFER = 'OFFER',\n ANSWER = 'ANSWER',\n OFFER_REQUEST = 'OFFER_REQUEST',\n OK = 'OK',\n ERROR = 'ERROR',\n}\n\nexport enum DisconnectCode {\n BUSY = 115,\n NORMAL = 0,\n MEDIA_INACTIVITY = 131,\n}\n\nexport enum DisconnectCause {\n BUSY = 'User Busy.',\n NORMAL = 'Normal Disconnect.',\n MEDIA_INACTIVITY = 'Media Inactivity.',\n}\n\n/* Work in Progress */\nexport enum MidCallEventType {\n CALL_INFO = 'callInfo',\n CALL_STATE = 'callState',\n}\n\nexport type MidCallCallerId = {\n callerId: CallerIdInfo;\n};\nexport type DisconnectReason = {\n code: DisconnectCode;\n cause: DisconnectCause;\n};\n\nexport enum RoapScenario {\n ANSWER = 'ANSWER',\n OK = 'OK',\n OFFER = 'OFFER',\n ERROR = 'ERROR',\n OFFER_RESPONSE = 'OFFER_RESPONSE',\n}\n\nexport enum MobiusCallState {\n PROCEEDING = 'sig_proceeding',\n PROGRESS = 'sig_progress',\n ALERTING = 'sig_alerting',\n CONNECTED = 'sig_connected',\n}\n\nexport type MobiusCallResponse = {\n statusCode: number;\n body: {\n device: {\n deviceId: string;\n correlationId: string;\n };\n callId: CallId;\n callData?: {\n callState: MobiusCallState;\n };\n };\n};\n\nexport type MidCallEvent = {\n eventType: string;\n eventData: unknown;\n};\n\nexport type SupplementaryServiceState = {\n callState: string;\n};\n\nexport type MobiusCallData = {\n callProgressData?: {\n alerting: boolean;\n inbandMedia: boolean;\n };\n message?: RoapMessage;\n callerId: {\n from: string;\n };\n midCallService?: Array<MidCallEvent>;\n callId: CallId;\n callUrl: string;\n deviceId: string;\n correlationId: string;\n eventType: MobiusEventType;\n broadworksCorrelationInfo?: string;\n};\n\nexport type MobiusCallEvent = {\n id: string;\n data: MobiusCallData;\n timestamp: number;\n trackingId: string;\n};\n\nexport type PatchResponse = {\n statusCode: number;\n body: {\n device: {\n deviceId: string;\n correlationId: string;\n };\n callId: CallId;\n };\n};\n\nexport type SSResponse = {\n statusCode: number;\n body: {\n device: {\n deviceId: string;\n correlationId: string;\n };\n callId: CallId;\n };\n};\n\nexport type DivertContext = {\n destination: string;\n toVoicemail: boolean;\n};\n\nexport type TransferContext = {\n transferorCallId: CallId;\n destination?: string;\n transferToCallId?: CallId;\n};\n\nexport enum TransferType {\n BLIND = 'BLIND',\n CONSULT = 'CONSULT',\n}\n\nexport enum MUTE_TYPE {\n USER = 'user_mute',\n SYSTEM = 'system_mute',\n}\n\nexport type ParkContext = {\n isGroupPark: boolean;\n destination: string;\n};\n\nexport type MediaContext = {\n previousState: string; // To be used for midcall and error handling.\n};\n\nexport type VoiceQualityMetrics = {\n VoRxCodec: string;\n VoPktSizeMs: number;\n maxJitter: number;\n VoOneWayDelayMs: number;\n networkType: string;\n hwType: string;\n};\n\nexport type TransmitterVqPayload = {\n VoTxCodec: string;\n rtpBitRate: number;\n};\n\nexport type ReceiveStatistics = {\n Dur: number;\n Pkt: number;\n Oct: number;\n LatePkt: number;\n LostPkt: number;\n AvgJit: number;\n VQMetrics: VoiceQualityMetrics;\n};\n\nexport type TransmitStatistics = {\n Dur: number;\n Pkt: number;\n Oct: number;\n VQMetrics: TransmitterVqPayload;\n};\n\nexport type CallRtpStats = {\n 'rtp-rxstat': ReceiveStatistics;\n 'rtp-txstat': TransmitStatistics;\n};\n\n/**\n * Represents an interface for managing call-related operations.\n */\nexport interface ICall extends Eventing<CallEventTypes> {\n /**\n * Fetches the identifier of the line associated with this call.\n *\n */\n lineId: string;\n\n /**\n * Fetches the unique call identifier.\n *\n */\n getCallId(): string;\n\n /**\n * Fetches the correlation identifier for this call.\n *\n */\n getCorrelationId(): string;\n\n /**\n * Fetches the direction of the call (e.g., inbound or outbound).\n *\n */\n getDirection(): CallDirection;\n\n /**\n * Sets the call identifier.\n *\n * @param callId - The new call identifier.\n */\n setCallId(callId: CallId): void;\n\n /**\n * Sends a call state machine event.\n *\n * @param event - The call event to send.\n * @ignore\n */\n sendCallStateMachineEvt(event: CallEvent): void;\n\n /**\n * Sends a media state machine event.\n *\n * @param event - The Roap event to send.\n * @ignore\n */\n sendMediaStateMachineEvt(event: RoapEvent): void;\n\n /**\n * Fetches the reason for disconnecting the call.\n *\n */\n getDisconnectReason(): DisconnectReason;\n\n /**\n * Disconnects the call.\n */\n end(): void;\n\n /**\n * Checks if the call is muted.\n *\n */\n isMuted(): boolean;\n\n /**\n * Checks if the call is connected.\n *\n */\n isConnected(): boolean;\n\n /**\n * Checks if the call is on hold.\n *\n */\n isHeld(): boolean;\n\n /**\n * Performs a hold or resume action on the call.\n */\n doHoldResume(): void;\n\n /**\n * Mutes or unmutes the call's local audio stream.\n *\n * @param localAudioStream - The local audio stream to mute or unmute.\n * @param muteType - Identifies if mute was triggered by system or user.\n */\n mute(localAudioStream: LocalMicrophoneStream, muteType?: MUTE_TYPE): void;\n\n /**\n * Fetches the caller information associated with the call.\n *\n */\n getCallerInfo(): DisplayInformation;\n\n /**\n * Initiates caller ID resolution for the call.\n * callerInfo data can be retrieved later by calling {@link getCallerInfo} method.\n * @param callerInfo - The caller ID information to resolve.\n */\n startCallerIdResolution(callerInfo: CallerIdInfo): void;\n\n /**\n * Handles a mid-call event.\n * @param event - The mid-call event to handle.\n * @ignore\n */\n handleMidCallEvent(event: MidCallEvent): void;\n\n /**\n * Dials the call using the provided local audio stream.\n *\n * @param localAudioStream - The local audio stream for the call.\n * @example\n * ```\n * const localAudioStream = await Calling.createMicrophoneStream({audio: true});\n * call.dial(localAudioStream);\n * ```\n */\n dial(localAudioStream: LocalMicrophoneStream): void;\n\n /**\n * Sends a DTMF digit during the call.\n *\n * @param tone - The DTMF tone to send.\n * @example\n * ```\n * call.sendDigit('1');\n * ```\n */\n sendDigit(tone: string): void;\n\n /**\n * Answers the call using the provided local audio stream.\n *\n * @param localAudioStream - The local audio stream for the call.\n *\n * @example\n * ```\n * const localAudioStream = await Calling.createMicrophoneStream({audio: true});\n * call.answer(localAudioStream);\n * ```\n */\n answer(localAudioStream: LocalMicrophoneStream): void;\n\n /**\n * Completes a call transfer.\n *\n * @param transferType - The type of transfer to perform. Eg. BLIND or CONSULT.\n * @param transferCallId - The call identifier for the transfer incase of Consult transfer (optional).\n * @param transferTarget - The target for the transfer incase of Blind transfer(optional).\n * @example\n * ```\n * // blind transfer\n * call.completeTransfer('BLIND', undefined, '5998');\n *\n * // consult transfer\n * call.completeTransfer('CONSULT', secondCall.getCallId(), undefined);\n * ```\n */\n completeTransfer(\n transferType: TransferType,\n transferCallId?: CallId,\n transferTarget?: string\n ): void;\n\n /**\n * Change the audio stream of the call.\n *\n * @param newAudioStream - The new audio stream to be used in the call.\n */\n updateMedia(newAudioStream: LocalMicrophoneStream): void;\n\n /**\n * Fetches the information related to the call's Broadworks correlationId.\n *\n */\n getBroadworksCorrelationInfo(): string | undefined;\n\n /**\n * Sets the Broadworks correlation information for the call.\n *\n * @param broadworksCorrelationInfo - The Broadworks correlation information.\n */\n setBroadworksCorrelationInfo(broadworksCorrelationInfo: string): void;\n\n /**\n * Fetches the RTP (Real-time Transport Protocol) statistics for the call.\n *\n */\n getCallRtpStats(): Promise<CallRtpStats>;\n}\n\nexport type DeleteRecordCallBack = (callId: CallId) => void;\nexport type CallEmitterCallBack = (callerInfo: DisplayInformation) => void;\nexport type CallErrorEmitterCallBack = (error: CallError) => void;\nexport type RetryCallBack = (interval: number) => void;\n\n/**\n * Represents an interface for managing calls within a call manager.\n */\nexport interface ICallManager extends Eventing<CallEventTypes> {\n /**\n * Creates a call with the specified details.\n *\n * @param destination - The call details including destination information.\n * @param direction - The direction of the call (e.g., incoming or outgoing).\n * @param deviceId - The unique identifier of the device associated with the call.\n * @param lineId - The identifier of the line to which the call belongs.\n */\n createCall(\n direction: CallDirection,\n deviceId: string,\n lineId: string,\n destination?: CallDetails\n ): ICall;\n\n /**\n * Retrieves a call based on its unique call identifier.\n *\n * @param correlationId - The unique identifier for the call at client\n */\n getCall(correlationId: CorrelationId): ICall;\n\n /**\n * Updates the active Mobius server URL.\n *\n * @param url - The new Mobius server URL to set.\n */\n updateActiveMobius(url: string): void;\n\n /**\n * Retrieves a dictionary of active calls, where each key is a call identifier\n * and the corresponding value is the call object.\n *\n */\n getActiveCalls(): Record<string, ICall>;\n\n /**\n * Updates a line associated with a specific device.\n *\n * @param deviceId - The unique identifier of the device.\n * @param line - The updated line object as {@link ILine}.\n */\n updateLine(deviceId: string, line: ILine): void;\n}\n"],"mappings":";;;;;;;AAAA;AAAA,IAcYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAAA,IAQfE,UAAU,GAAAD,OAAA,CAAAC,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAAA,IAQVC,cAAc,GAAAF,OAAA,CAAAE,cAAA,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAAA,IAMdC,eAAe,GAAAH,OAAA,CAAAG,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAM3B;AAAA,IACYC,gBAAgB,GAAAJ,OAAA,CAAAI,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAAA,IAahBC,YAAY,GAAAL,OAAA,CAAAK,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAAA,IAQZC,eAAe,GAAAN,OAAA,CAAAM,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAAA,IAwFfC,YAAY,GAAAP,OAAA,CAAAO,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAAA,IAKZC,SAAS,GAAAR,OAAA,CAAAQ,SAAA,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAkDrB;AACA;AACA;AAwMA;AACA;AACA"}
|
|
@@ -11,7 +11,7 @@ import { CALL_ENDPOINT_RESOURCE, CALL_FILE, CALL_HOLD_SERVICE, CALL_STATUS_RESOU
|
|
|
11
11
|
import SDKConnector from '../../SDKConnector';
|
|
12
12
|
import { Eventing } from '../../Events/impl';
|
|
13
13
|
import { CALL_EVENT_KEYS, MEDIA_CONNECTION_EVENT_KEYS, MOBIUS_MIDCALL_STATE, SUPPLEMENTARY_SERVICES, } from '../../Events/types';
|
|
14
|
-
import { DisconnectCause, DisconnectCode, MidCallEventType, MobiusCallState, RoapScenario, TransferType, } from './types';
|
|
14
|
+
import { DisconnectCause, DisconnectCode, MidCallEventType, MobiusCallState, MUTE_TYPE, RoapScenario, TransferType, } from './types';
|
|
15
15
|
import log from '../../Logger';
|
|
16
16
|
import { createCallerId } from './CallerId';
|
|
17
17
|
import { METRIC_TYPE, METRIC_EVENT, TRANSFER_ACTION } from '../../Metrics/types';
|
|
@@ -1771,13 +1771,31 @@ export class Call extends Eventing {
|
|
|
1771
1771
|
});
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
|
1774
|
-
mute = (localAudioStream) => {
|
|
1775
|
-
if (localAudioStream) {
|
|
1774
|
+
mute = (localAudioStream, muteType) => {
|
|
1775
|
+
if (!localAudioStream) {
|
|
1776
|
+
log.warn(`Did not find a local stream while muting the call ${this.getCorrelationId()}.`, {
|
|
1777
|
+
file: CALL_FILE,
|
|
1778
|
+
method: 'mute',
|
|
1779
|
+
});
|
|
1780
|
+
return;
|
|
1781
|
+
}
|
|
1782
|
+
if (muteType === MUTE_TYPE.SYSTEM) {
|
|
1783
|
+
if (!localAudioStream.userMuted) {
|
|
1784
|
+
this.muted = localAudioStream.systemMuted;
|
|
1785
|
+
}
|
|
1786
|
+
else {
|
|
1787
|
+
log.info(`Call is muted by the user already - ${this.getCorrelationId()}.`, {
|
|
1788
|
+
file: CALL_FILE,
|
|
1789
|
+
method: 'mute',
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
else if (!localAudioStream.systemMuted) {
|
|
1776
1794
|
localAudioStream.setUserMuted(!this.muted);
|
|
1777
1795
|
this.muted = !this.muted;
|
|
1778
1796
|
}
|
|
1779
1797
|
else {
|
|
1780
|
-
log.
|
|
1798
|
+
log.info(`Call is muted on the system - ${this.getCorrelationId()}.`, {
|
|
1781
1799
|
file: CALL_FILE,
|
|
1782
1800
|
method: 'mute',
|
|
1783
1801
|
});
|
|
@@ -51,3 +51,8 @@ export var TransferType;
|
|
|
51
51
|
TransferType["BLIND"] = "BLIND";
|
|
52
52
|
TransferType["CONSULT"] = "CONSULT";
|
|
53
53
|
})(TransferType || (TransferType = {}));
|
|
54
|
+
export var MUTE_TYPE;
|
|
55
|
+
(function (MUTE_TYPE) {
|
|
56
|
+
MUTE_TYPE["USER"] = "user_mute";
|
|
57
|
+
MUTE_TYPE["SYSTEM"] = "system_mute";
|
|
58
|
+
})(MUTE_TYPE || (MUTE_TYPE = {}));
|
|
@@ -3,7 +3,7 @@ import { CallDetails, CallDirection, CallId, CorrelationId, DisplayInformation,
|
|
|
3
3
|
import { Eventing } from '../../Events/impl';
|
|
4
4
|
import { CallerIdInfo, CallEvent, CallEventTypes, RoapEvent, SUPPLEMENTARY_SERVICES } from '../../Events/types';
|
|
5
5
|
import { WebexSDK } from '../../SDKConnector/types';
|
|
6
|
-
import { CallRtpStats, DeleteRecordCallBack, DisconnectReason, ICall, MidCallEvent, SSResponse, TransferType } from './types';
|
|
6
|
+
import { CallRtpStats, DeleteRecordCallBack, DisconnectReason, ICall, MidCallEvent, MUTE_TYPE, SSResponse, TransferType } from './types';
|
|
7
7
|
export declare class Call extends Eventing<CallEventTypes> implements ICall {
|
|
8
8
|
private sdkConnector;
|
|
9
9
|
private webex;
|
|
@@ -97,7 +97,7 @@ export declare class Call extends Eventing<CallEventTypes> implements ICall {
|
|
|
97
97
|
doHoldResume: () => void;
|
|
98
98
|
startCallerIdResolution(callerInfo: CallerIdInfo): void;
|
|
99
99
|
sendDigit(tone: string): void;
|
|
100
|
-
mute: (localAudioStream: LocalMicrophoneStream) => void;
|
|
100
|
+
mute: (localAudioStream: LocalMicrophoneStream, muteType?: MUTE_TYPE) => void;
|
|
101
101
|
updateMedia: (newAudioStream: LocalMicrophoneStream) => void;
|
|
102
102
|
setBroadworksCorrelationInfo(broadworksCorrelationInfo: string): void;
|
|
103
103
|
getBroadworksCorrelationInfo(): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../../src/CallingClient/calling/call.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EAGtB,MAAM,4BAA4B,CAAC;AAYpC,OAAO,EAEL,WAAW,EACX,aAAa,EACb,MAAM,EACN,aAAa,EACb,kBAAkB,EAElB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AA2B5B,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAEL,YAAY,EACZ,SAAS,EACT,cAAc,EAGd,SA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FtC,aAAa,QAAO,kBAAkB,CAAoB;IAK1D,GAAG,QAAO,IAAI,CAEnB;IAKK,YAAY,QAAO,IAAI,CAM5B;IAOK,uBAAuB,CAAC,UAAU,EAAE,YAAY;IAShD,SAAS,CAAC,IAAI,EAAE,MAAM;IA4BtB,IAAI,qBAAsB,qBAAqB,aAAa,SAAS,KAAG,IAAI,CA2BjF;IAQK,WAAW,mBAAoB,qBAAqB,KAAG,IAAI,CA6BhE;IAKF,4BAA4B,CAAC,yBAAyB,EAAE,MAAM,GAAG,IAAI;IAOrE,4BAA4B,IAAI,MAAM,GAAG,SAAS;IASlD,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC;YAS1B,aAAa;CAc5B;AAaD,eAAO,MAAM,UAAU,cACV,MAAM,SACV,QAAQ,OACV,aAAa,YACR,MAAM,UACR,MAAM,YACJ,oBAAoB,aACnB,gBAAgB,SACpB,WAAW,KACjB,KAAqF,CAAC"}
|
|
@@ -128,6 +128,10 @@ export declare enum TransferType {
|
|
|
128
128
|
BLIND = "BLIND",
|
|
129
129
|
CONSULT = "CONSULT"
|
|
130
130
|
}
|
|
131
|
+
export declare enum MUTE_TYPE {
|
|
132
|
+
USER = "user_mute",
|
|
133
|
+
SYSTEM = "system_mute"
|
|
134
|
+
}
|
|
131
135
|
export type ParkContext = {
|
|
132
136
|
isGroupPark: boolean;
|
|
133
137
|
destination: string;
|
|
@@ -180,7 +184,7 @@ export interface ICall extends Eventing<CallEventTypes> {
|
|
|
180
184
|
isConnected(): boolean;
|
|
181
185
|
isHeld(): boolean;
|
|
182
186
|
doHoldResume(): void;
|
|
183
|
-
mute(localAudioStream: LocalMicrophoneStream): void;
|
|
187
|
+
mute(localAudioStream: LocalMicrophoneStream, muteType?: MUTE_TYPE): void;
|
|
184
188
|
getCallerInfo(): DisplayInformation;
|
|
185
189
|
startCallerIdResolution(callerInfo: CallerIdInfo): void;
|
|
186
190
|
handleMidCallEvent(event: MidCallEvent): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/CallingClient/calling/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EACL,WAAW,EACX,aAAa,EACb,MAAM,EACN,aAAa,EACb,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAC,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC;AACnG,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AAEpC,oBAAY,eAAe;IACzB,UAAU,gBAAgB;IAC1B,aAAa,wBAAwB;IACrC,cAAc,yBAAyB;IACvC,UAAU,iBAAiB;IAC3B,iBAAiB,4BAA4B;CAC9C;AAED,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,EAAE,OAAO;IACT,KAAK,UAAU;CAChB;AAED,oBAAY,cAAc;IACxB,IAAI,MAAM;IACV,MAAM,IAAI;IACV,gBAAgB,MAAM;CACvB;AAED,oBAAY,eAAe;IACzB,IAAI,eAAe;IACnB,MAAM,uBAAuB;IAC7B,gBAAgB,sBAAsB;CACvC;AAGD,oBAAY,gBAAgB;IAC1B,SAAS,aAAa;IACtB,UAAU,cAAc;CACzB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,EAAE,OAAO;IACT,KAAK,UAAU;IACf,KAAK,UAAU;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