打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
freeswitch 加密存储密码 —8000hz
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://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory


--------------------------------------------------------------------------------------------
8000HZ.COM
--------------------------------------------------------------------------------------------
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
HTML5方式使用freeswitch——VERTO模块_freeswitch verto
11-James
Function Calling Convention(基于栈的函数调用惯例)
《FreeSWITCH: VoIP实战》:SIP 模块 - mod_sofia
mrcp-plugin-with-freeswitch语音识别
Freeswitch之SIP模块
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服