sip 时序图_GitHub - feiman/siphub: sip capture server by hep。work with OpenSIPS, Kamailo, and FreeSWITC...

sip-hub是一个精简版的SIP信令搜索和时序图可视化工具,提供呼叫记录查询、时序图展示、消息导入导出等功能。相比Homer,它更易于使用,支持被叫后缀和域名等个性化查询。安装涉及MySQL数据库配置,可与OpenSIPS、Kamailio和FreeSWITCH等集成。
摘要由CSDN通过智能技术生成

功能介绍

sip-hub是一个专注sip信令的搜索以及时序图可视化展示的服务。

相比于Homer, sip-hub做了大量的功能简化。同时也提供了一些个性化的查询,例如被叫后缀查询,仅域名查询等等。

sip-hub服务仅有3个页面

sip消息搜索页面,用于按照主被叫、域名和时间范围搜索呼叫记录

时序图展示页面,用于展示SIP时序图和原始SIP消息

可以导入导出SIP消息

可以查找A-Leg

监控功能

做siphub的原因是homer太难用了,经常查不到想查的数据,查询的速度也蛮。

相关截图

安装

首先需要安装MySql数据库,并在其中建立一个名为siphub的数据库

运行

dbHost 数据库地址

dbUser 数据库用户

dbName 数据库名

dataKeepDays 抓包保存天数

3000端口是web页面端口

9060是hep消息收取端口

docker run -d -p 3000:3000 -p 9060:9060/udp \

--env NODE_ENV=production \

--env dbHost=1.2.3.4 \

--env dbUser=root \

--env dbPwd=123456 \

--env dbName=siphub \

--env dataKeepDays=3 \

--env logLevel=error \

--log-opt max-size=10M \

--log-opt max-file=3 \

--name siphub wangduanduan/siphub

集成

OpenSIPS集成

test witch OpenSIPS 2.4

# add hep listen

listen=hep_udp:your_ip:9061

loadmodule "proto_hep.so"

# replace SIP_HUB_IP_PORT with siphub‘s ip:port

modparam("proto_hep", "hep_id","[hep_dst] SIP_HUB_IP_PORT;transport=udp;version=3")

loadmodule "siptrace.so"

modparam("siptrace", "trace_id","[tid]uri=hep:hep_dst")

# add ite in request route();

if(!is_method("REGISTER") && !has_totag()){

sip_trace("tid", "d", "sip");

}

FreeSWITCH集成

fs version 版本要高于 1.6.8+

编辑: sofia.conf.xml

用真实的siphub ip:port替换SIP_HUB_IP_PORT

freeswitch@fsnode04> sofia global capture on

+OK Global capture on

freeswitch@fsnode04> sofia global capture off

+OK Global capture off

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值