Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

constants.js 1.5KB

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