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.js 1.5KB

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