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

本文涉及的产品
服务治理 MSE Sentinel/OpenSergo,Agent数量 不受限
简介: 支持给网关指定变量,设置网关的语音编码编码和主叫号码。网关配置编辑后,不能实时生效 ,需要执行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

来源:稀土掘金

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

相关文章
|
1月前
|
Linux
Linux网关路由配置
Linux网关路由配置
12 0
|
2月前
|
存储 Cloud Native API
oss云网关配置
配置阿里云OSS与云网关实现灵活数据传输和访问控制。步骤包括开通OSS服务,创建Bucket,获取访问凭证,可选配置CORS和生命周期规则。云网关配置涉及阿里云云原生网关的代理规则设定或使用云存储网关集成OSS访问,具体配置需参照产品文档,因产品更新可能会有变动。
24 1
|
2月前
|
中间件
egg.js 24.17中间件配置
egg.js 24.17中间件配置
20 0
egg.js 24.17中间件配置
|
2天前
|
网络协议 网络架构
ensp中BGP(边界网关协议)基础原理及配置命令
ensp中BGP(边界网关协议)基础原理及配置命令
|
10天前
|
运维 负载均衡 Cloud Native
Serverless 应用引擎产品使用之在Serverless 应用引擎中,使用云原生网关的情况下,SLB(负载均衡器)和证书配置如何解决
阿里云Serverless 应用引擎(SAE)提供了完整的微服务应用生命周期管理能力,包括应用部署、服务治理、开发运维、资源管理等功能,并通过扩展功能支持多环境管理、API Gateway、事件驱动等高级应用场景,帮助企业快速构建、部署、运维和扩展微服务架构,实现Serverless化的应用部署与运维模式。以下是对SAE产品使用合集的概述,包括应用管理、服务治理、开发运维、资源管理等方面。
21 1
|
22天前
|
域名解析 网络协议 Linux
TCP/IP协议及配置、IP地址、子网掩码、网关地址、DNS与DHCP介绍
TCP/IP协议及配置、IP地址、子网掩码、网关地址、DNS与DHCP介绍
|
1月前
|
网络虚拟化 网络架构
配置基于接口划分VLAN示例(汇聚层设备作为网关)
划分VLAN的方式有:基于接口、基于MAC地址、基于IP子网、基于协议、基于策略(MAC地址、IP地址、接口)。其中基于接口划分VLAN,是最简单,最常见的划分方式。 基于接口划分VLAN指的是根据交换机的接口来划分VLAN。网络管理员预先给交换机的每个接口配置不同的PVID,当一个数据帧进入交换机时,如果没有带VLAN标签,该数据帧就会被打上接口指定PVID的Tag,然后数据帧将在指定PVID中传输。 在典型的分层组网中,当接入交换机是二层交换机时,可以使用汇聚交换机作为用户的网关。另外使用汇聚交换机作为用户的网关还可以简化接入交换机的配置,使用户通过一个出接口访问外部网络,便于维护和管
|
6月前
|
网络协议 Linux 网络安全
suse 12 配置ip,dns,网关,hostname,ssh以及关闭防火墙
suse 12 配置ip,dns,网关,hostname,ssh以及关闭防火墙
161 0
|
3月前
|
弹性计算 Linux 网络安全
三步搭建VPC专有网络NAT网关,配置SNAT和DNAT规则(补充版)
申明:该文档参考于用户 “帅宝宝”的文档进行的优化,新增永久生效的方式
303 1
|
5月前
|
数据采集 监控 中间件
解决HTTP 429错误的Scrapy中间件配置
解决HTTP 429错误的Scrapy中间件配置