Coder Social home page Coder Social logo

docker-hepswitch's Introduction

HEP-Switch = OpenSIPS 2.2+

This repository provides a generic OpenSIPS HEP Switching capable container image for rapid development and prototyping of HEP playgrounds. Presented methods are suitable for production usage when properly configured.

For an in-depth explanation of the techniques and features used in this demo, please refer to this post on the opensips blog

Quick Start

Automated builds of the image are usually available on DockerHub

$ docker pull qxip/docker-hepswitch

Configuration

HEP Switch allows users to route/fork/balance HEP UDP/TCP packets across multiple HOMER deployments, based on Type and SIP content using the full power and speed of OpenSIPS just like they would with regular SIP messages.

Example
route{
      xlog("L_DEBUG","Request $rm from $si with domain $rd");
      /* Conditional HEP Routing based on Source IP */
      if ($si == "10.20.30.40" || $rd == "qxip.net")
      {
        $du="sip:10.0.0.1:9060";
        hep_relay();
      } else {
        $du="sip:10.0.0.2:9060";
        hep_relay();
      }
}

Usage

Use docker-compose to manage the container status

$ docker-compose up

The HEP Switch configuration can be modified and OpenSIPS restarted while running containers

vi /usr/local/etc/opensips/opensips.cfg
opensipsctl reload

docker-hepswitch's People

Contributors

lmangani avatar razvancrainea avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.