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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. PHONE: 'phone',
  46. ROOM: 'room',
  47. SIP: 'sip',
  48. USER: 'user',
  49. VIDEO_ROOM: 'videosipgw'
  50. };
  51. export const UPGRADE_OPTIONS_TEXT = 'jaas.8x8.vc';
  52. export const UPGRADE_OPTIONS_LINK = 'https://jaas.8x8.vc/#/plan/upgrade';