Giter Club home page Giter Club logo

gb28181simulator's Introduction

gb28181Simulator

使用 golang 实现的一个GB28181模拟器,主要用于测试目的

功能:

  • Register
  • Register retry
  • Register with 401 challange
  • keepalive
  • catalog
  • invite
  • as a GB28181 benchmark tool

Quick Start

go run main.go -c sim.conf

Configure File

{
  "localSipPort": 5061,
  "serverID": "32011500002000000001",
  "realm": "3201150000",
  "serverAddr": "127.0.0.1:5061",
  "userName": "test",
  "password": "test",
  "regExpire": 3600,
  "keepaliveInterval": 100,
  "maxKeepaliveRetry": 3,
  "transport": "udp",
  "gbId": "31011500991320000532",
  "devices": [
    {
      "deviceID": "32011500991320000040",
      "name": "test001",
      "manufacturer": "simulatorFactory",
      "model": "Mars",
      "CivilCode": "civilCode",
      "address": "192.18.1.1",
      "parental": "0",
      "safeWay": "1",
      "registerWay": "1",
      "secrecy": "1",
      "status": "ON"
    },
    {
      "deviceID": "32011500991320000041",
      "name": "test002",
      "manufacturer": "simulatorFactory",
      "model": "Mars",
      "CivilCode": "civilCode",
      "address": "192.18.1.2",
      "parental": "0",
      "safeWay": "1",
      "registerWay": "1",
      "secrecy": "1",
      "status": "ON"
    }
  ]
}

配置说明:

Property Description
localSipPort gb28181 本地端口
serverID server 国标ID
realm server 国标域
serverAddr server 服务器地址(接入服务地址)
userName 国标用户名(从服务端获取)
password 国标密码(从服务端获取)
regExpire 设备注册超时时间
keepaliveInterval keepalive 发送间隔
maxKeepaliveRetry keeplive超时次数(超时之后发送重新发送reg)
transport 传输层协议(目前只支持udp)
gbId 设备国标ID
devices.deviceID 子设备国标ID
devices.name 子设备名称
devices.manufacturer 子设备厂商
devices.model 子设备model
devices.address 子设备ip地址
devices.status 子设备状态

gb28181simulator's People

Contributors

lzh2nix avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.