分享

freeswitch 加密存储密码 —8000hz

 icecity1306 2015-02-28
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
--------------------------------------------------------------------------------------------

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多