呼叫中心中间件-网关配置

简介: 支持给网关指定变量,设置网关的语音编码编码和主叫号码。网关配置编辑后,不能实时生效 ,需要执行sofia命令才可以生效,具体看SIP设置。配置cti_gateway@domain [哈希表]key 网关名字value 网关配置| ```{ "param": { "register": "true", "caller-id-in-from": "true", "realm": "180.76.224.191:35560", "from-user": "", "destination-prefi

支持给网关指定变量,设置网关的语音编码编码和主叫号码。网关配置编辑后,不能实时生效 ,需要执行sofia命令才可以生效,具体看SIP设置。

配置

cti_gateway@domain [哈希表]

  1. key 网关名字
  2. value 网关配置

| ``` {     "param": {         "register": "true",         "caller-id-in-from": "true",         "realm": "180.76.224.191:35560",         "from-user": "",         "destination-prefix": "",         "username": "mytrunk",         "password": "mytrunk@ddt"     },     "variables": {         "sip_sticky_contact": "true"     } }

| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
![gateway_template.png](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/007b00f8310a4e64b98c728f708f31f9~tplv-k3u1fbpfcp-zoom-1.image)
-   param 网关参数
    -   realm 网关服务器IP
    -   username 网关用户名
    -   password 网关密码
    -   register 是否需要注册
    -   destination-prefix 报号前缀,呼叫时被叫号码之前添加这个前缀
    -   from-user 对接IMS时需要,根据IMS要求填写,一般和username设置一样
    -   from-domain 对接IMS时需要,根据IMS要求填写,一般和realm设置一样
    -   caller-id-in-from sip信令from设置为主叫号码
    -   extension extension parameter influence the contents of channel variable Caller-Destination-Number and destination_number. If it is blank, Caller-Destination-Number will always be set to gateway’s username. If it has a value, Caller-Destination-Number will always be set to this value. If it has value auto_to_user, Caller-Destination-Number will be populated with value ${sip_to_user} which means the real dialled number in case of an inbound call.
    -   extension-in-contact Param “extension-in-contact” is used to force what the contact info will be in the registration. If you are having a problem with the default registering as gw+gateway_name@ip you can set this to true to use extension@ip. If extension is blank, it will use username@ip.
    -   auth-username 认证用户名,如果认证用户名和用户名不一样时需要配置
    -   retry-seconds this sets the number of seconds to retry the registration
    -   expire-seconds 注册的过期时间,如果不设置,默认是 3600,建议设置60。
-   variables 网关变量
    -   absolute_codec_string 声音编码
    -   p:caller_id_number 主叫号码
    -   sip_sticky_contact 为了防止NAT环境出问题,都设置为true
## [](http://www.ddrj.com/callcenter/gateway.html#%E7%BD%91%E5%85%B3%E7%9A%84%E6%B3%A8%E5%86%8C%E7%8A%B6%E6%80%81%E5%86%99%E5%85%A5redis "网关的注册状态写入redis")网关的注册状态写入redis
cti.json\
| ```
    "gui": {         /*网关信息推送到redis*/         "gateway": {             "hash": "gateways",             "channel": "",             "list": ""         }     } ` 
``` |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
网关注册信息会记录到哈希表gateways\
key:网关名字\
value:注册信息\
没勾选注册的\
| ```
{     "Event-Name": "CUSTOM",     "Core-UUID": "651a086c-4d20-4749-96a4-3eb2cb866ec3",     "FreeSWITCH-Hostname": "ai",     "FreeSWITCH-Switchname": "ai",     "FreeSWITCH-IPv4": "192.168.31.57",     "FreeSWITCH-IPv6": "::1",     "Event-Date-Local": "2022-04-07 23:19:29",     "Event-Date-GMT": "Thu, 07 Apr 2022 15:19:29 GMT",     "Event-Date-Timestamp": "1649344769167507",     "Event-Calling-File": "sofia_reg.c",     "Event-Calling-Function": "sofia_reg_add_gateway",     "Event-Calling-Line-Number": "3740",     "Event-Sequence": "92",     "Event-Subclass": "sofia::gateway_add",     "Gateway": "default",     "profile-name": "external" } ` 
``` |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
注册成功的\
| ```
{     "Event-Name": "CUSTOM",     "Core-UUID": "651a086c-4d20-4749-96a4-3eb2cb866ec3",     "FreeSWITCH-Hostname": "ai",     "FreeSWITCH-Switchname": "ai",     "FreeSWITCH-IPv4": "192.168.31.57",     "FreeSWITCH-IPv6": "::1",     "Event-Date-Local": "2022-04-07 23:23:11",     "Event-Date-GMT": "Thu, 07 Apr 2022 15:23:11 GMT",     "Event-Date-Timestamp": "1649344991284944",     "Event-Calling-File": "sofia_reg.c",     "Event-Calling-Function": "sofia_reg_fire_custom_gateway_state_event",     "Event-Calling-Line-Number": "156",     "Event-Sequence": "680",     "Event-Subclass": "sofia::gateway_state",     "Gateway": "default",     "State": "REGED",     "Ping-Status": "UP",     "Register-Network-IP": "49.235.127.246",     "Register-Network-Port": "39468" }
``` |
| -----------------------------------------------------------------------------------------------------------


作者:AI科技WX_kelaile520

链接:https://juejin.cn/post/7084050314717823006

来源:稀土掘金

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

相关文章
|
10月前
|
安全 网络安全 网络虚拟化
配置总部采用冗余网关与分支建立IPSec隧道示例
本文介绍了企业总部与分支间通过公网通信的组网需求及配置思路。为提高可靠性,分支网关AR5可接入两台总部网关(AR2和AR3),并建立IPSec隧道保障通信安全。配置步骤包括:1) 配置接口IP地址与静态路由;2) 定义ACL保护数据流;3) 创建IPSec安全提议;4) 配置IKE对等体;5) 创建安全策略;6) 在接口应用安全策略组。最终通过ping测试与查看隧道状态验证配置结果,确保流量安全传输。
配置总部采用冗余网关与分支建立IPSec隧道示例
|
10月前
|
数据采集 人工智能 BI
MyEMS能源管理系统后台配置-网关管理
MyEMS开源能源管理系统支持建筑、工厂等场景的电、水、气数据采集与分析,具备光伏、储能、充电桩等扩展功能。本文介绍系统后台配置中的网关管理模块,包括查看、添加、编辑、删除、导入、导出及克隆网关的操作步骤,帮助用户高效管理能源数据采集设备。
208 0
|
9月前
|
数据采集 人工智能 监控
MyEMS 开源能源管理系统后台配置指南 —— 网关管理模块详解
开源能源管控系统面向建筑、工厂等场景的开源能源管理系统,支持电、水、气等数据采集与智能分析,并提供光伏监控、储能管理等功能模块。系统具备完善的网关管理功能,包括网关查看、添加、编辑、删除及批量操作,助力用户高效实现全链路能源管理。
405 1
|
缓存 druid 中间件
【YashanDB知识库】由于druid中间件配置导致的YAS-04003 maximum number of open cursors is 1000
【YashanDB知识库】由于druid中间件配置导致的YAS-04003 maximum number of open cursors is 1000
【YashanDB知识库】由于druid中间件配置导致的YAS-04003 maximum number of open cursors is 1000
|
缓存 druid 中间件
【YashanDB 知识库】由于 druid 中间件配置导致的 YAS-04003 maximum number of open cursors is 1000
某客户Java业务运行时出现YAS-04003异常,导致业务无法正常运行,影响所有yashandb版本。原因是druid中间件配置不当,缓存PreparedStatement导致YashanDB open cursor超限。解决方法:增加OPEN_CURSORS参数值或修改druid配置,如将share-prepared-statements和pool-prepared-statements设为false。处理过程涉及查询vopen_cursor和v$sql视图,确认业务会话。经验总结:需结合Java框架及中间件配置与数据库视图分析行为。
|
监控 物联网
工业智能网关实现北向自定义报文配置流程
北向接口是设备连接物联网云平台的接口,允许云平台统一监管各厂商设备的运行与报警状态。为解决不同公司报文格式差异导致的数据解析问题,工业智能网关支持北向自定义报文功能,用户可配置不同的报文格式,确保数据准确传输。配置流程包括网关中心、IOT数据云平台和配置工具的设置,最终通过日志或MQTTfx验证上报情况。
377 4
|
消息中间件 运维 监控
中间件故障转移主-备配置
【7月更文挑战第25天】
321 59
|
安全 前端开发 Java
微服务网关及其配置
微服务网关及其配置
704 12
|
监控 网络协议 数据安全/隐私保护
vos3000外呼系统如何检查落地网关配置正常,路由分析
使用VOS3000外呼系统时,确保呼叫畅通的关键在于检查落地网关配置和进行路由分析。具体步骤包括:登录管理界面,检查网关状态和配置,配置外呼规则,测试拨打电话,以及分析日志和报告。通过这些步骤,可以确保系统稳定运行,提高外呼成功率和通话质量。
|
缓存 监控 中间件
中间件配置和管理问题
【7月更文挑战第14天】
363 1

热门文章

最新文章

下一篇
开通oss服务