Posted by
王二小 on
January 31st, 2015
介绍
Freeswitch 示例 directory 中存储分机密码使用是 明文密码, 其实 freeswitch默认就支持摘要认证的a1-hash. 关于a1-hash a1-hash的计算方法 md5(username:domain:password) 比如我们的FS的IP是 192.168.1.191 那么我们的分机 1000 密码 1234, 它的a1-hash的计算如下 md5(1000:192.168.1.191:1234) = f21736bde1db963e5e0315218051a6f1 示例XML <include> <user id="1000"> <params> <param name="a1-hash" value="f21736bde1db963e5e0315218051a6f1"/> <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> 参考 https:///confluence/display/FREESWITCH/XML+User+Directory -------------------------------------------------------------------------------------------- 8000HZ.COM -------------------------------------------------------------------------------------------- |
|
来自: icecity1306 > 《通信知识》