2
0

default.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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})}"/>
  21. </params>
  22. <variables>
  23. </variables>
  24. <groups>
  25. <group name="default">
  26. <users>
  27. <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
  28. </users>
  29. </group>
  30. </groups>
  31. </domain>
  32. </include>