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

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