default.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!--
  2. NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  3. FreeSWITCH works off the concept of users and domains just like email.
  4. You have users that are in domains for example 1000@domain.com.
  5. When freeswitch gets a register packet it looks for the user in the directory
  6. based on the from or to domain in the packet depending on how your sofia profile
  7. is configured. Out of the box the default domain will be the IP address of the
  8. machine running FreeSWITCH. This IP can be found by typing "sofia status" at the
  9. CLI. You will register your phones to the IP and not the hostname by default.
  10. If you wish to register using the domain please open vars.xml in the root conf
  11. directory and set the default domain to the hostname you desire. Then you would
  12. use the domain name in the client instead of the IP address to register
  13. with FreeSWITCH.
  14. NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  15. -->
  16. <include>
  17. <!--the domain or ip (the right hand side of the @ in the addr-->
  18. <domain name="$${domain}">
  19. <params>
  20. <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})},${verto_contact(${dialed_user}@${dialed_domain})}"/>
  21. <!-- These are required for Verto to function properly -->
  22. <param name="jsonrpc-allowed-methods" value="verto"/>
  23. <!-- <param name="jsonrpc-allowed-event-channels" value="demo,conference,presence"/> -->
  24. </params>
  25. <variables>
  26. <variable name="record_stereo" value="true"/>
  27. <variable name="default_gateway" value="$${default_provider}"/>
  28. <variable name="default_areacode" value="$${default_areacode}"/>
  29. <variable name="transfer_fallback_extension" value="operator"/>
  30. </variables>
  31. <groups>
  32. <group name="default">
  33. <users>
  34. <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
  35. </users>
  36. </group>
  37. <group name="sales">
  38. <users>
  39. <!--
  40. type="pointer" is a pointer so you can have the
  41. same user in multiple groups. It basically means
  42. to keep searching for the user in the directory.
  43. -->
  44. <user id="1000" type="pointer"/>
  45. <user id="1001" type="pointer"/>
  46. <user id="1002" type="pointer"/>
  47. <user id="1003" type="pointer"/>
  48. <user id="1004" type="pointer"/>
  49. </users>
  50. </group>
  51. <group name="billing">
  52. <users>
  53. <user id="1005" type="pointer"/>
  54. <user id="1006" type="pointer"/>
  55. <user id="1007" type="pointer"/>
  56. <user id="1008" type="pointer"/>
  57. <user id="1009" type="pointer"/>
  58. </users>
  59. </group>
  60. <group name="support">
  61. <users>
  62. <user id="1010" type="pointer"/>
  63. <user id="1011" type="pointer"/>
  64. <user id="1012" type="pointer"/>
  65. <user id="1013" type="pointer"/>
  66. <user id="1014" type="pointer"/>
  67. </users>
  68. </group>
  69. </groups>
  70. </domain>
  71. </include>