2022-02-28 20:03:42 +00:00
|
|
|
/**
|
|
|
|
* The pathName for the dialInInfo page.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
export const DIAL_IN_INFO_PAGE_PATH_NAME = 'static/dialInInfo.html';
|
|
|
|
|
2018-05-21 20:52:30 +00:00
|
|
|
/**
|
|
|
|
* The identifier of the sound to be played when the status of an outgoing call
|
|
|
|
* is expired.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
export const OUTGOING_CALL_EXPIRED_SOUND_ID
|
2021-09-09 14:18:26 +00:00
|
|
|
= 'OUTGOING_CALL_EXPIRED_SOUND';
|
2018-05-21 20:52:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The identifier of the sound to be played when the status of an outgoing call
|
|
|
|
* is rejected.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
export const OUTGOING_CALL_REJECTED_SOUND_ID
|
2021-09-09 14:18:26 +00:00
|
|
|
= 'OUTGOING_CALL_REJECTED_SOUND';
|
2018-05-21 20:52:30 +00:00
|
|
|
|
2018-05-16 15:03:10 +00:00
|
|
|
/**
|
|
|
|
* The identifier of the sound to be played when the status of an outgoing call
|
|
|
|
* is ringing.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
2021-09-09 14:18:26 +00:00
|
|
|
export const OUTGOING_CALL_RINGING_SOUND_ID = 'OUTGOING_CALL_RINGING_SOUND';
|
2018-05-16 15:03:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The identifier of the sound to be played when outgoing call is started.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
2021-09-09 14:18:26 +00:00
|
|
|
export const OUTGOING_CALL_START_SOUND_ID = 'OUTGOING_CALL_START_SOUND';
|
2021-03-18 13:32:14 +00:00
|
|
|
|
|
|
|
/**
|
2021-03-31 12:51:53 +00:00
|
|
|
* Regex for matching sip addresses.
|
2021-03-18 13:32:14 +00:00
|
|
|
*/
|
|
|
|
// eslint-disable-next-line max-len
|
2021-05-12 13:21:22 +00:00
|
|
|
export const SIP_ADDRESS_REGEX = /^[+a-zA-Z0-9]+(?:([^\s>:@]+)(?::([^\s@>]+))?@)?([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/;
|
2021-05-11 08:51:02 +00:00
|
|
|
|
|
|
|
/**
|
2021-11-04 21:10:43 +00:00
|
|
|
* Different invite types mapping.
|
2021-05-11 08:51:02 +00:00
|
|
|
*/
|
|
|
|
export const INVITE_TYPES = {
|
|
|
|
PHONE: 'phone',
|
|
|
|
ROOM: 'room',
|
|
|
|
SIP: 'sip',
|
|
|
|
USER: 'user',
|
|
|
|
VIDEO_ROOM: 'videosipgw'
|
|
|
|
};
|
2022-09-29 14:35:47 +00:00
|
|
|
|
|
|
|
export const UPGRADE_OPTIONS_TEXT = 'jaas.8x8.vc';
|
|
|
|
export const UPGRADE_OPTIONS_LINK = 'https://jaas.8x8.vc/#/plan/upgrade';
|