监控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信令相关推荐

  1. MRCP UA的创建及SIP信令处理

    在mrcp_sofia_task_initialize中调用nua_create一个UA(User agent)这个跟freeswitch SIP信令的接收,是一样的.在nua_create的时候会设 ...

  2. 基于ICE方式SIP信令穿透Symmetric NAT技术研究

    基于IP的语音.数据.视频等业务在NGN网络中所面临的一个实际困难就是如何 有效地穿透各种NAT/FW的问题.对此,会话初始化协议SIP以往的解决方法有ALGs,STUN,T URN等方式.本文探讨了 ...

  3. Freeswitch+Sip.js 早期媒体(回铃音)

    Freeswitch+Sip.js 早期媒体(Early Media) 在笔者早期的文章里,没有对早期媒体进行处理,选择了本地的媒体进行播放,在当时看来还可以接受,但是目前来看,体验很差,所以笔者花费 ...

  4. FreeSwitch Sip【转】

    在继续学习 FreeSWITCH 之前我们有必要来学习一下 SIP 协议,因为它是 FreeSWITCH 的核心.但即使如此,讲清楚 SIP 必然需要很大篇幅,本书是关于 FreeSWITCH 的,而 ...

  5. freeswitch SIP内呼与外呼配置

    今天我利用freeswitch 和 网关设备做了内呼和外呼 1, 设置如下: 2,找运维的人给映射了一个外网端口 a.b.c.d 3, SIP代理填的我的freeswitch的端口,另外一个是设备的f ...

  6. SIP信令标准 简介

    介绍 SIP(Session Initiation Protocol)是一个面向Internet 会议和电话的简单信令协议标准. SIP最初由IETF MMUSIC (Multiparty Multi ...

  7. sip 信令组成的基本格式 总结

    SIP Server的基本原理 SIP协议采用Client/Server模型.每一个请求(Request)触发服务器的一个操作:每个操作被称为方法(Method):每个请求除了指明具体方法外,还携带了 ...

  8. gb28181简单实现sip信令服务器(java版基于springboot):四、sip摄像头心跳保活、推流(tcp/udp)和结束推流

    心跳文本 //摄像头发送过来的Keepalive保活信息 MESSAGE sip:34020000002000000001@192.168.1.201:5060 SIP/2.0 //MESSAGE 方 ...

  9. gb28181简单实现sip信令服务器(java版基于springboot):一、netty创建udp服务器

    以下仅代表个人理解,仅供参考,欢迎大佬纠正!!! maven依赖 <!-- springboot配置依赖 --> <dependency><groupId>org. ...

  10. sip信令常用的响应码

    SIP协议是一个基于文本的协议,其消息包括请求和响应,具体如下: 请求包括:INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER等. 响应包括:1xx,2xx,3xx,4xx, ...

最新文章

  1. 在Windows2003下搭建FTP服务器
  2. 网络编程学习笔记(socketpair函数)
  3. 阅读开源源码的正确姿势建议
  4. @valid 不生效_黑帽seo高手-实战细谈301生效周期+影响收录重要因素(探索)
  5. matlab练习程序(各向异性扩散)
  6. ICPC 南昌现场赛 K:Tree(dsu on tree + 动态开点线段树)
  7. 用英语描述计算机操作,操作系统的英文介绍
  8. 程序员面试金典——1.2原串翻转
  9. 基于jquery打造的一款全页面图片分享特效
  10. python基本编程技巧_Python编程小白入门技巧,从入门到精通只需一个月。
  11. 编辑器sublime text3和插件package control、Sidebar Enhancements插件安装
  12. 腾讯信鸽推送,部分手机不能接收到推送弹窗
  13. 征途猎魔mysql数据库_字典列表的拓展理解
  14. 卡尔曼滤波器MATLAB实现(从一维到三维)
  15. python modbus_tk模块学习笔记(rtu slaver例程)
  16. Linux之NTFS、FAT32、exFAT 各种格式硬盘挂载整理
  17. IP地址使用,分类等详解
  18. 人名中间的小圆点的实现方式
  19. Codeup1032-1033、1045
  20. UCOSii和Linux的区别和联系

热门文章

  1. Ramdisk(内存盘)虚拟磁盘设置使用
  2. 电路基础知识之有源晶振设计
  3. java 动态性之反射机制 详解 案例,一起来聊聊Synchronized底层实现原理
  4. java 动态性之反射机制 详解 案例,java架构师技术图谱
  5. 微信小程序之input前加图标
  6. 使用Poedit汉化wordpress主题和插件
  7. 小程序引入vant组件
  8. 一句话理解cmp_to_key函数
  9. MAX30102 高灵敏度脉搏氧器和心率传感器说明书
  10. STM32传感器外设集--心率模块(MAX30102)