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