<include>
<user id="1000">
<params>
<param name="password" value="$${default_password}"/> //密码
<param name="vm-password" value="1000"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1000"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1000"/>
<variable name="effective_caller_id_number" value="1000"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>
params参数
#params中定义了该Domain中所有用户的公共参数,在这里只定义了一个 dial-string 这是一个至关重要的参数,在使用user/username 或 sofia/internal/username@domain 这样的呼叫字符串时,FreeSWITCH会根据username以及domain找到该dial-string,并最终扩展成用户实际的SIP地址
sofia_contact
sofia_contact是一个API命令,它会根据用户的注册地址扩展成相应的呼叫字符串
variables
variables定义了一些公共变量,在用户主叫或被叫时,这些变量会绑定到相应的Channel上形成Channel Variable