{"id":51005478,"url":"https://github.com/wangduanduan/siphub","last_synced_at":"2026-06-20T20:02:09.513Z","repository":{"id":45849078,"uuid":"285455221","full_name":"wangduanduan/siphub","owner":"wangduanduan","description":"sip capture server by hep。work with OpenSIPS, Kamailo, and FreeSWITCH。","archived":false,"fork":false,"pushed_at":"2025-07-01T23:07:46.000Z","size":8375,"stargazers_count":68,"open_issues_count":4,"forks_count":16,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-02T00:20:35.358Z","etag":null,"topics":["freeswitch","homer","opensips","sip","sipcapture","voip"],"latest_commit_sha":null,"homepage":"https://www.yuque.com/wangdd/opensips/ntntox","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangduanduan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-06T02:39:12.000Z","updated_at":"2025-07-01T23:07:50.000Z","dependencies_parsed_at":"2025-07-02T00:19:30.254Z","dependency_job_id":null,"html_url":"https://github.com/wangduanduan/siphub","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/wangduanduan/siphub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangduanduan%2Fsiphub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangduanduan%2Fsiphub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangduanduan%2Fsiphub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangduanduan%2Fsiphub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangduanduan","download_url":"https://codeload.github.com/wangduanduan/siphub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangduanduan%2Fsiphub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34583589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["freeswitch","homer","opensips","sip","sipcapture","voip"],"created_at":"2026-06-20T20:02:00.125Z","updated_at":"2026-06-20T20:02:09.507Z","avatar_url":"https://github.com/wangduanduan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# siphub功能介绍\n\n**为什么不直接用homer?**\n\n首先说一下，我是用过homer的。但是在使用过程中，我发现如下问题。\n\n1. 安装麻烦，这个可以忍\n2. 经常按照主被叫号码查不到我想要的呼叫，查询页面经常时间错乱，这个忍不了\n3. 查询的页面每一行代表一个SIP消息，而不是一个呼叫，出现的条目太多\n\n\n**为什么我开发siphub？**\n\n1. 安装要方便，只使用siphub和hep-connect两个容器\n2. 查询页面要简单，我只做了两个页面，查询呼叫页、时序图展示页。我甚至都没有做登录界面，因为我觉得不需要\n3. 数据展示要直观，表格的每一行代表一个呼叫的所有SIP消息，而不是一条SIP消息\n\n\n# 截图\n\n**搜索页面展示**\n\n![](atta/2025-02-25-22-29-28.png)\n\n\n**时序图展示页面**\n\n- 点击时序图的连线，对应原始消息会滚动到界面可视区域\n- 点击原始消息，同时也会高亮对应连线，并滚动到可视区域\n- 所有请求消息使用实线\n- 所有响应消息使用虚线\n- 相同的SIP事务的线条颜色相同\n- 时序图显示的内容为：`F序号 SIP请求/状态码 [原因] 信令时间差`\n\n![](docs/img/flow.jpg)\n![](docs/img/flow2.jpg)\n\n\n# Roadmap\n\n- [x] 时序图搜索\n- [x] 时序图展示\n- [x] 分表\n- [x] 数据保留天数设置\n- [ ] 收藏\n- [ ] 导入pcap\n- [ ] 导入json\n- [ ] 导出json\n- [ ] AB Call-leg关联\n\n## 依赖\n\n- PostgreSQL 16\n\n# 部署\n\n## docker 部署\n\n```shell\ndocker run -d --name=siphub \\\n    -e DBUser=root \\\n    -e DBPasswd=mypass \\\n    -e DBAddr=1.2.3.4 \\\n    -e DBPort=5432 \\\n    -e DBName=postgres \\\n    -e dataKeepDays=10 \\\n    -p 3000:3000 \\\n    ghcr.io/wangduanduan/siphub:latest\n```\n\n**启动环境变量说明**\n\n- DBUser: 数据库用户名， 默认wangduanduan\n- DBPasswd: 数据库密码\n- DBAddr: 数据库地址，默认127.0.0.1\n- DBPort: 数据库端口，默认5432,\n- DBName: 数据库名，默认postgres,\n- LogLevel: 日志级别, 默认debug\n- QueryLimit: 一次性查询的行数，默认10\n- dataKeepDays: 数据保留几天，默认3\n\n# 架构图\n\n- OpenSIPS、FreeSWITCH、Heplify 将SIP消息以HEP格式写入到hep-connect\n- hep-connect将消息写入数据库， hep-connect部署文档参考 https://github.com/wangduanduan/hep-connect \n- siphub提供web查询界面，负责从数据库查询和展示SIP消息\n\n![](docs/img/arch.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangduanduan%2Fsiphub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangduanduan%2Fsiphub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangduanduan%2Fsiphub/lists"}