监控freeswitch sip信令
监控homer
- 官方连接
- 介绍
- 版本
- 架构
- 安装
- 配置文件与日志文件
- 登录数据库
- freeswtich配置
- web控制台
- 配置自定义监控
官方连接
安装文档
介绍
HOMER is part of the SIPCAPTURE stack: A robust, carrier-grade and modular VoIP and RTC Capture Framework for Analysis and Monitoring with native support for all major OSS Voice platforms and vendor-agnostic Capture agents. HOMER counts thousands of deployments worldwide including notorious industry vendors, voice network operators and fortune 500 enterprises, providing advanced search, end-to-end analysis and packet drill-down capabilities for ITSPs, VoIP Providers and Trunk Suppliers using and relying on VoIP services and RTC technologies - All 100% Open-Source
版本
freeswtich 1.10、debian系统10
架构
![在这里插入图片描述](https://img-blog.csdnimg.cn/f02457e96bab4c729d87887d22a58ab7.png
CAPTURE AGENT,抓包终端,freeswitch、opensips这些常见的软交换都内置了该功能。
CAPTURE SERVER,抓包服务器,收集sip信令用的,老版本中使用kamailio,新版本使用了新的heplify-server。
DATABASE,一般是mysql和postgres,没有用过时序数据库。
HOMER APP/API,web页面,提供给客户查看信息。
USERS,用户通过浏览器查看呼叫信令、统计信息等。
安装
apt-get install libluajit-5.1-common libluajit-5.1-dev lsb-release wget curl gitwget https://github.com/sipcapture/homer-installer/raw/master/homer_installer.sh
chmod +x homer_installer.sh
./homer_installer.sh//查看是否安装成功systemctl status homer-app
systemctl status heplify-serverroot@debian:/usr/src/freeswitch# ps -ef|grep homer
root 29164 1 0 01:56 ? 00:00:02 /usr/local/bin/homer-app
postgres 29214 28165 0 01:56 ? 00:00:00 postgres: 12/main: homer_user homer_data ::1(47142) idle
postgres 29662 28165 0 02:40 ? 00:00:00 postgres: 12/main: homer_user homer_data ::1(36876) idle
postgres 32810 28165 0 08:52 ? 00:00:00 postgres: 12/main: homer_user homer_config ::1(57858) idle
postgres 32811 28165 0 08:52 ? 00:00:00 postgres: 12/main: homer_user homer_data 127.0.0.1(53224) idle
root 32836 29331 0 08:55 pts/2 00:00:00 grep homer
配置文件与日志文件
heplify-server.toml、/usr/local/homer/etc/webapp_config.json
heplify-server.log、usr/local/homer/log/homer-app.log
登录数据库
psql -h 127.0.0.1 -p 5432 -d homer_data -U homer_user
freeswtich配置
FreeSWITCH Capture Agent
Freeswitch ships with an integrated HEP Capture Agent designed to work with HOMER
**FreeSwitch HEP3/EEP support is available in 1.6.8+ **
Global Configuration
To enable HEP capturing, open sofia.conf.xml and set capture-server param
Freeswitch >= 1.7 has support for HEPv2 and HEPv3. The new syntax is: open internal.xml and external.xml and change sip-capture param to "yes". Also please do it on each profile in your sip_profiles/internal and sip_profiles/external (/etc/freeswitch/sip_profiles) *note: the ip address and port must be same as the listen param in your kamailio.cfg or in heplify-server *
To enable/disable the HEP agent on demand, you can use CLI commands:
freeswitch@fsnode04> sofia global capture on
+OK Global capture on
freeswitch@fsnode04> sofia global capture off
+OK Global capture off
Profile Configuration
You can choose to activate HEP capturing only for a specific profile:
freeswitch@fsnode04> sofia profile internal capture on
Enabled sip capturing on internal
freeswitch@fsnode04> sofia profile internal capture off
Disabled sip capturing on internal
B2BUA Correlation
To correlate B2BUA legs set the following before bridging the second leg:
<action application="set" data="sip_h_X-cid=${sip_call_id}"/>
Next, configure heplify-server to extract correlation from the newly created X-cid header (TODO: link)
web控制台
本机ip:9080 用户与密码(admin/sipcapture)
You should now be able to access your HOMER instance via HTTP on port 9080 and send HEPv3 traffic to port 9060/UDP or 9061/TCP (note ports can be modified by the docker-compose configuration)
配置自定义监控
git clone https://github.com/sipcapture/hepipe.js.git
Prepare with:
sudo npm install
Fill config.js as needed (please see examples/)
Run with:
sudo node hepipe.js
监控freeswitch sip信令相关推荐
- MRCP UA的创建及SIP信令处理
在mrcp_sofia_task_initialize中调用nua_create一个UA(User agent)这个跟freeswitch SIP信令的接收,是一样的.在nua_create的时候会设 ...
- 基于ICE方式SIP信令穿透Symmetric NAT技术研究
基于IP的语音.数据.视频等业务在NGN网络中所面临的一个实际困难就是如何 有效地穿透各种NAT/FW的问题.对此,会话初始化协议SIP以往的解决方法有ALGs,STUN,T URN等方式.本文探讨了 ...
- Freeswitch+Sip.js 早期媒体(回铃音)
Freeswitch+Sip.js 早期媒体(Early Media) 在笔者早期的文章里,没有对早期媒体进行处理,选择了本地的媒体进行播放,在当时看来还可以接受,但是目前来看,体验很差,所以笔者花费 ...
- FreeSwitch Sip【转】
在继续学习 FreeSWITCH 之前我们有必要来学习一下 SIP 协议,因为它是 FreeSWITCH 的核心.但即使如此,讲清楚 SIP 必然需要很大篇幅,本书是关于 FreeSWITCH 的,而 ...
- freeswitch SIP内呼与外呼配置
今天我利用freeswitch 和 网关设备做了内呼和外呼 1, 设置如下: 2,找运维的人给映射了一个外网端口 a.b.c.d 3, SIP代理填的我的freeswitch的端口,另外一个是设备的f ...
- SIP信令标准 简介
介绍 SIP(Session Initiation Protocol)是一个面向Internet 会议和电话的简单信令协议标准. SIP最初由IETF MMUSIC (Multiparty Multi ...
- sip 信令组成的基本格式 总结
SIP Server的基本原理 SIP协议采用Client/Server模型.每一个请求(Request)触发服务器的一个操作:每个操作被称为方法(Method):每个请求除了指明具体方法外,还携带了 ...
- gb28181简单实现sip信令服务器(java版基于springboot):四、sip摄像头心跳保活、推流(tcp/udp)和结束推流
心跳文本 //摄像头发送过来的Keepalive保活信息 MESSAGE sip:34020000002000000001@192.168.1.201:5060 SIP/2.0 //MESSAGE 方 ...
- gb28181简单实现sip信令服务器(java版基于springboot):一、netty创建udp服务器
以下仅代表个人理解,仅供参考,欢迎大佬纠正!!! maven依赖 <!-- springboot配置依赖 --> <dependency><groupId>org. ...
- sip信令常用的响应码
SIP协议是一个基于文本的协议,其消息包括请求和响应,具体如下: 请求包括:INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER等. 响应包括:1xx,2xx,3xx,4xx, ...
最新文章
- 在Windows2003下搭建FTP服务器
- 网络编程学习笔记(socketpair函数)
- 阅读开源源码的正确姿势建议
- @valid 不生效_黑帽seo高手-实战细谈301生效周期+影响收录重要因素(探索)
- matlab练习程序(各向异性扩散)
- ICPC 南昌现场赛 K:Tree(dsu on tree + 动态开点线段树)
- 用英语描述计算机操作,操作系统的英文介绍
- 程序员面试金典——1.2原串翻转
- 基于jquery打造的一款全页面图片分享特效
- python基本编程技巧_Python编程小白入门技巧,从入门到精通只需一个月。
- 编辑器sublime text3和插件package control、Sidebar Enhancements插件安装
- 腾讯信鸽推送,部分手机不能接收到推送弹窗
- 征途猎魔mysql数据库_字典列表的拓展理解
- 卡尔曼滤波器MATLAB实现(从一维到三维)
- python modbus_tk模块学习笔记(rtu slaver例程)
- Linux之NTFS、FAT32、exFAT 各种格式硬盘挂载整理
- IP地址使用,分类等详解
- 人名中间的小圆点的实现方式
- Codeup1032-1033、1045
- UCOSii和Linux的区别和联系