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.4KB

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