Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmangani/docker-hepswitch
OpenSIPS 2.2 + RTPEngine HEP Switch
https://github.com/lmangani/docker-hepswitch
hep hep3 hepic homer load-balancing multi-tenant openser opensips proxy routing sipcapture switch
Last synced: about 1 month ago
JSON representation
OpenSIPS 2.2 + RTPEngine HEP Switch
- Host: GitHub
- URL: https://github.com/lmangani/docker-hepswitch
- Owner: lmangani
- License: mit
- Created: 2016-05-07T18:44:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-29T23:48:39.000Z (over 6 years ago)
- Last Synced: 2024-10-05T13:22:19.388Z (3 months ago)
- Topics: hep, hep3, hepic, homer, load-balancing, multi-tenant, openser, opensips, proxy, routing, sipcapture, switch
- Language: Shell
- Size: 2.24 MB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hep - HEPSwitch - Docker container providing HEP/EEP Routing and Switching out-of-the-box. (Contribution Guidelines / Gateway Applications)
README
# 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](https://blog.opensips.org/2017/10/12/opensips-as-hep-proxyswitch/)
### Quick Start
Automated builds of the image are usually available on [DockerHub](https://hub.docker.com/r/qxip/homer-hepswitch)
```sh
$ docker pull qxip/docker-hepswitch
```### Configuration
**HEP Switch** allows users to route/fork/balance **HEP** UDP/TCP packets across multiple [HOMER](https://github.com/sipcapture/homer/wiki) 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
```sh
$ 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
```