You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.ts 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * The pathName for the dialInInfo page.
  3. *
  4. * @type {string}
  5. */
  6. export const DIAL_IN_INFO_PAGE_PATH_NAME = 'static/dialInInfo.html';
  7. /**
  8. * The identifier of the sound to be played when the status of an outgoing call
  9. * is expired.
  10. *
  11. * @type {string}
  12. */
  13. export const OUTGOING_CALL_EXPIRED_SOUND_ID
  14. = 'OUTGOING_CALL_EXPIRED_SOUND';
  15. /**
  16. * The identifier of the sound to be played when the status of an outgoing call
  17. * is rejected.
  18. *
  19. * @type {string}
  20. */
  21. export const OUTGOING_CALL_REJECTED_SOUND_ID
  22. = 'OUTGOING_CALL_REJECTED_SOUND';
  23. /**
  24. * The identifier of the sound to be played when the status of an outgoing call
  25. * is ringing.
  26. *
  27. * @type {string}
  28. */
  29. export const OUTGOING_CALL_RINGING_SOUND_ID = 'OUTGOING_CALL_RINGING_SOUND';
  30. /**
  31. * The identifier of the sound to be played when outgoing call is started.
  32. *
  33. * @type {string}
  34. */
  35. export const OUTGOING_CALL_START_SOUND_ID = 'OUTGOING_CALL_START_SOUND';
  36. /**
  37. * Regex for matching sip addresses.
  38. */
  39. // eslint-disable-next-line max-len
  40. export const SIP_ADDRESS_REGEX = /^[+a-zA-Z0-9]+(?:([^\s>:@]+)(?::([^\s@>]+))?@)?([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/;
  41. /**
  42. * Different invite types mapping.
  43. */
  44. export const INVITE_TYPES = {
  45. EMAIL: 'email',
  46. PHONE: 'phone',
  47. ROOM: 'room',
  48. SIP: 'sip',
  49. USER: 'user',
  50. VIDEO_ROOM: 'videosipgw'
  51. };
  52. export const UPGRADE_OPTIONS_TEXT = 'jaas.8x8.vc';
  53. export const UPGRADE_OPTIONS_LINK = 'https://jaas.8x8.vc/#/plan/upgrade';