@webex/calling 3.12.0-mobius-socket.14 → 3.12.0-mobius-socket.15

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.
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import {Devices, IDeviceInfo, RegistrationStatus} from '../../common/types';\n\nexport type Header = {\n [key: string]: string;\n};\n\nexport type restoreRegistrationCallBack = (\n restoreData: IDeviceInfo,\n caller: string\n) => Promise<boolean>;\n\nexport type retry429CallBack = (retryAfter: number, caller: string) => Promise<void>;\n\nexport type FailoverCacheState = {\n attempt: number;\n timeElapsed: number;\n retryScheduledTime: number;\n serverType: 'primary' | 'backup';\n};\n\n/**\n * Represents an interface for managing registration-related operations.\n */\nexport interface IRegistration {\n /**\n * Sets the primary and backup Mobius server URLs.\n *\n * @param primaryMobiusUris - An array of primary Mobius server URLs.\n * @param backupMobiusUris - An array of backup Mobius server URLs.\n */\n setMobiusServers(primaryMobiusUris: string[], backupMobiusUris: string[]): void;\n\n /**\n * Triggers the registration process with the given list of servers\n * Registration is attempted with primary and backup until it succeeds or the list is exhausted\n */\n triggerRegistration(): Promise<void>;\n\n /**\n * Checks if the device is currently registered.\n *\n */\n isDeviceRegistered(): boolean;\n\n /**\n * Sets the status of the registration.\n *\n * @param value - The registration status to set.\n */\n setStatus(value: RegistrationStatus): void;\n\n /**\n * Retrieves the current registration status.\n *\n */\n getStatus(): RegistrationStatus;\n\n /**\n * Retrieves information about the device as {@link IDeviceInfo}.\n *\n */\n getDeviceInfo(): IDeviceInfo;\n\n /**\n * Clears the keep-alive timer used for registration.\n */\n clearKeepaliveTimer(): void;\n\n /**\n * Deregisters the device.\n */\n deregister(): void;\n\n /**\n * Sets the active Mobius server URL to use for registration.\n *\n * @param url - The Mobius server URL to set as active.\n */\n setActiveMobiusUrl(url: string): void;\n\n /**\n * Retrieves the active Mobius server URL.\n *\n */\n getActiveMobiusUrl(): string;\n\n /**\n * Attempts to reconnect after a connection failure.\n *\n * @param caller - The caller's identifier for reconnection.\n */\n reconnectOnFailure(caller: string): Promise<void>;\n\n /**\n * Checks if a reconnection attempt is pending.\n *\n */\n isReconnectPending(): boolean;\n\n /**\n * Restores the connection and attempts refreshing existing registration with server.\n * Allows retry if not restored in the first attempt.\n *\n * @param retry - Set to `true` to trigger a retry after restoration.\n */\n handleConnectionRestoration(retry: boolean): Promise<boolean>;\n\n /**\n * Populate deviceInfo from a devices response (e.g., getDevices API).\n */\n setDeviceInfo(body: Devices): void;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import {Devices, IDeviceInfo, RegistrationStatus} from '../../common/types';\nimport {MobiusAsyncEvent} from '../calling/types';\n\nexport type Header = {\n [key: string]: string;\n};\n\nexport type restoreRegistrationCallBack = (\n restoreData: IDeviceInfo,\n caller: string\n) => Promise<boolean>;\n\nexport type retry429CallBack = (retryAfter: number, caller: string) => Promise<void>;\n\nexport type FailoverCacheState = {\n attempt: number;\n timeElapsed: number;\n retryScheduledTime: number;\n serverType: 'primary' | 'backup';\n};\n\n/**\n * Represents an interface for managing registration-related operations.\n */\nexport interface IRegistration {\n /**\n * Sets the primary and backup Mobius server URLs.\n *\n * @param primaryMobiusUris - An array of primary Mobius server URLs.\n * @param backupMobiusUris - An array of backup Mobius server URLs.\n */\n setMobiusServers(primaryMobiusUris: string[], backupMobiusUris: string[]): void;\n\n /**\n * Triggers the registration process with the given list of servers\n * Registration is attempted with primary and backup until it succeeds or the list is exhausted\n */\n triggerRegistration(): Promise<void>;\n\n /**\n * Checks if the device is currently registered.\n *\n */\n isDeviceRegistered(): boolean;\n\n /**\n * Sets the status of the registration.\n *\n * @param value - The registration status to set.\n */\n setStatus(value: RegistrationStatus): void;\n\n /**\n * Retrieves the current registration status.\n *\n */\n getStatus(): RegistrationStatus;\n\n /**\n * Retrieves information about the device as {@link IDeviceInfo}.\n *\n */\n getDeviceInfo(): IDeviceInfo;\n\n /**\n * Clears the keep-alive timer used for registration.\n */\n clearKeepaliveTimer(): void;\n\n /**\n * Deregisters the device.\n */\n deregister(): void;\n\n /**\n * Sets the active Mobius server URL to use for registration.\n *\n * @param url - The Mobius server URL to set as active.\n */\n setActiveMobiusUrl(url: string): void;\n\n /**\n * Retrieves the active Mobius server URL.\n *\n */\n getActiveMobiusUrl(): string;\n\n /**\n * Attempts to reconnect after a connection failure.\n *\n * @param caller - The caller's identifier for reconnection.\n */\n reconnectOnFailure(caller: string): Promise<void>;\n\n /**\n * Checks if a reconnection attempt is pending.\n *\n */\n isReconnectPending(): boolean;\n\n /**\n * Restores the connection and attempts refreshing existing registration with server.\n * Allows retry if not restored in the first attempt.\n *\n * @param retry - Set to `true` to trigger a retry after restoration.\n */\n handleConnectionRestoration(retry: boolean): Promise<boolean>;\n\n /**\n * Populate deviceInfo from a devices response (e.g., getDevices API).\n */\n setDeviceInfo(body: Devices): void;\n\n /**\n * Handles a Mobius REGISTRATION_DOWN async event. Ends the first active\n * call (if any) and runs registration-side cleanup.\n *\n * @param event - The Mobius async event payload (optional).\n */\n handleRegistrationDownEvent(event?: MobiusAsyncEvent): Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -429,7 +429,13 @@ export class CallingClient extends Eventing {
429
429
  return;
430
430
  }
431
431
  if (eventType === MobiusEventType.REGISTRATION_DOWN) {
432
- log.warn('Received REGISTRATION_DOWN event from Mobius; teardown handling pending (TODO)', loggerContext);
432
+ log.warn(`Received ${eventType} event from Mobius.`, loggerContext);
433
+ const line = Object.values(this.lineDict)[0];
434
+ if (!line) {
435
+ log.warn('No line found, skipping registration down event', loggerContext);
436
+ return;
437
+ }
438
+ await line.registration.handleRegistrationDownEvent(event);
433
439
  this.metricManager.submitMobiusSocketMetric(METRIC_EVENT.MOBIUS_SOCKET_ERROR, MOBIUS_SOCKET_ACTION.REGISTRATION_DOWN, METRIC_TYPE.BEHAVIORAL, undefined, event?.trackingId, undefined, eventType);
434
440
  return;
435
441
  }
@@ -832,5 +832,46 @@ export class Registration {
832
832
  }
833
833
  }
834
834
  }
835
+ async handleRegistrationDownEvent(event) {
836
+ const loggerContext = {
837
+ file: REGISTRATION_FILE,
838
+ method: METHODS.HANDLE_REGISTRATION_DOWN_EVENT,
839
+ };
840
+ log.info(`Registration down received - trackingId: ${event?.trackingId ?? 'unknown'}, eventId: ${event?.eventId ?? 'unknown'}`, loggerContext);
841
+ const [activeCall] = Object.values(this.callManager.getActiveCalls());
842
+ activeCall?.end();
843
+ await this.performRegistrationDownCleanup(METHODS.HANDLE_REGISTRATION_DOWN_EVENT);
844
+ }
845
+ async performRegistrationDownCleanup(caller) {
846
+ const loggerContext = {
847
+ file: REGISTRATION_FILE,
848
+ method: METHODS.HANDLE_REGISTRATION_DOWN_EVENT,
849
+ };
850
+ log.info(`[${caller}] : Running registration-down cleanup`, loggerContext);
851
+ await this.mutex.runExclusive(async () => {
852
+ this.clearFailbackTimer();
853
+ this.clearKeepaliveTimer();
854
+ this.reconnectPending = false;
855
+ this.scheduled429Retry = false;
856
+ this.failoverImmediately = false;
857
+ this.retryAfter = undefined;
858
+ this.registerRetry = false;
859
+ this.clearFailoverState();
860
+ this.setStatus(RegistrationStatus.INACTIVE);
861
+ if (this.apiRequest.isSocketEnabled()) {
862
+ try {
863
+ await this.apiRequest.disconnectFromMobiusSocket({
864
+ code: 3050,
865
+ reason: 'done (permanent)',
866
+ });
867
+ log.log('Mobius socket disconnect complete after registration-down', loggerContext);
868
+ }
869
+ catch (err) {
870
+ log.warn(`Mobius socket disconnect failed after registration-down: ${String(err)}`, loggerContext);
871
+ }
872
+ }
873
+ this.lineEmitter(LINE_EVENTS.UNREGISTERED);
874
+ });
875
+ }
835
876
  }
836
877
  export const createRegistration = (webex, serviceData, mutex, lineEmitter, logLevel, jwe) => new Registration(webex, serviceData, mutex, lineEmitter, logLevel, jwe);
@@ -1 +1 @@
1
- {"version":3,"file":"CallingClient.d.ts","sourceRoot":"","sources":["../../../src/CallingClient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B;IAEF,OAAO,CAAC,0BAA0B;YAmBpB,mBAAmB;YAkFnB,gBAAgB;YAyKhB,qBAAqB;IAgFnC,OAAO,CAAC,sBAAsB,CAkD5B;IAOF,OAAO,CAAC,4BAA4B;IAgBpC,OAAO,CAAC,mBAAmB,CAoBzB;IAMK,eAAe,IAAI,MAAM;IAQzB,eAAe,IAAI,aAAa;IAIvC,OAAO,CAAC,wBAAwB;YAgClB,UAAU;IA2BjB,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAO3B,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IA0DxD,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;IAiBzC,gBAAgB,IAAI,KAAK,GAAG,SAAS;IAuB/B,UAAU,IAAI,OAAO,CAAC,kBAAkB,CAAC;CAQvD;AAOD,eAAO,MAAM,YAAY,UAChB,QAAQ,WACN,mBAAmB,KAC3B,QAAQ,cAAc,CAKxB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Mutex } from 'async-mutex';
2
+ import { MobiusAsyncEvent } from '../calling/types';
2
3
  import { LOGGER } from '../../Logger/types';
3
4
  import { IRegistration } from './types';
4
5
  import { Devices, IDeviceInfo, RegistrationStatus, ServiceData } from '../../common/types';
@@ -74,6 +75,8 @@ export declare class Registration implements IRegistration {
74
75
  private setRegRetry;
75
76
  private getExistingDevice;
76
77
  reconnectOnFailure(caller: string): Promise<void>;
78
+ handleRegistrationDownEvent(event?: MobiusAsyncEvent): Promise<void>;
79
+ private performRegistrationDownCleanup;
77
80
  }
78
81
  export declare const createRegistration: (webex: WebexSDK, serviceData: ServiceData, mutex: Mutex, lineEmitter: LineEmitterCallback, logLevel: LOGGER, jwe?: string) => IRegistration;
79
82
  //# sourceMappingURL=register.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/CallingClient/registration/register.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+BpB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAkD1E,OAAO,CAAC,2BAA2B;IA+BtB,mBAAmB;YAyClB,8BAA8B;YAkK9B,mBAAmB;IA+G1B,mBAAmB;IAQnB,kBAAkB,IAAI,OAAO;IAIvB,UAAU;IA4BvB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,iBAAiB;IAoCZ,kBAAkB,CAAC,MAAM,EAAE,MAAM;IA0BjC,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;YA8BnE,8BAA8B;CAuC7C;AAID,eAAO,MAAM,kBAAkB,UACtB,QAAQ,eACF,WAAW,SACjB,KAAK,eACC,mBAAmB,YACtB,MAAM,QACV,MAAM,KACX,aAAwF,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Devices, IDeviceInfo, RegistrationStatus } from '../../common/types';
2
+ import { MobiusAsyncEvent } from '../calling/types';
2
3
  export type Header = {
3
4
  [key: string]: string;
4
5
  };
@@ -25,5 +26,6 @@ export interface IRegistration {
25
26
  isReconnectPending(): boolean;
26
27
  handleConnectionRestoration(retry: boolean): Promise<boolean>;
27
28
  setDeviceInfo(body: Devices): void;
29
+ handleRegistrationDownEvent(event?: MobiusAsyncEvent): Promise<void>;
28
30
  }
29
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/CallingClient/registration/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE5E,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CACxC,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM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;IAK9D,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAQnC,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE"}
package/package.json CHANGED
@@ -149,5 +149,5 @@
149
149
  "staticpath": "docs",
150
150
  "noprompt": true
151
151
  },
152
- "version": "3.12.0-mobius-socket.14"
152
+ "version": "3.12.0-mobius-socket.15"
153
153
  }