1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

MediaProxy is a far-end NAT traversal solution for OpenSER

and SIP Express Router that has the following features:

   - Distributed geographical location
   - Scalability, load balancing and redundancy
   - Real-time sessions statistics
   - Configurable IP and UDP port range
   - Support for audio and video streams
   - Support for multiple media streams per call
   - Accounting of network traffic

PR:		ports/102977
Submitted by:	Stefan Sperling <freebsd-gnats(at)stsp.in-berlin.de>
This commit is contained in:
Martin Wilke 2006-09-13 10:46:25 +00:00
parent 958b071eb0
commit eb5fbfd2f7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172930
7 changed files with 365 additions and 0 deletions

View File

@ -287,6 +287,7 @@
SUBDIR += mad_fcl
SUBDIR += mars_nwe
SUBDIR += mcast-tools
SUBDIR += mediaproxy
SUBDIR += merlinmon
SUBDIR += mgen
SUBDIR += micro_inetd

35
net/mediaproxy/Makefile Normal file
View File

@ -0,0 +1,35 @@
# New ports collection makefile for: mediaproxy
# Date created: 08 August 2006
# Whom: Steve Ames <steve@energistic.com>
#
# $FreeBSD$
PORTNAME= mediaproxy
PORTVERSION= 1.7.2
CATEGORIES= net
MASTER_SITES= http://mediaproxy.ag-projects.com/
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= steve@energistic.com
COMMENT= A far-end NAT traversal solution for SER/OpenSER
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_PYTHON= 2.3+
OPTIONS= ACCOUNTING "ACCOUNTING support (Requires MySQL)" off
.include <bsd.port.pre.mk>
.if defined(WITH_ACCOUNTING)
USE_MYSQL= yes
.endif
post-install:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' files/mediaproxy
${CP} -pRP ${WRKSRC}/ ${PREFIX}/mediaproxy
${CHOWN} -R 0:0 ${PREFIX}/mediaproxy
${INSTALL_SCRIPT} -b files/mediaproxy ${PREFIX}/etc/rc.d/mediaproxy
.include <bsd.port.post.mk>

3
net/mediaproxy/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (mediaproxy-1.7.2.tar.gz) = 80f0ac55d38586385b7d31b962190666
SHA256 (mediaproxy-1.7.2.tar.gz) = 11c2523ac5e072298dcd337cf36f1cbc86a9d0ffa7dbb83f928c6bfcee8c19ab
SIZE (mediaproxy-1.7.2.tar.gz) = 399127

View File

@ -0,0 +1,86 @@
#!/bin/sh
#
# mediaproxy starts and stops the SER MediaProxy server
# PROVIDE: mediaproxy
# Add the following line to /etc/rc.conf to enable mysql:
# mediaproxy_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable mediaproxy.
. /etc/rc.subr
name="mediaproxy"
rcvar=`set_rcvar`
load_rc_config $name
: ${mediaproxy_enable="NO"}
INSTALL_DIR="/usr/local"
RUNTIME_DIR="/var/run"
PROXY="$INSTALL_DIR/mediaproxy/mediaproxy.py"
DISPATCHER="$INSTALL_DIR/mediaproxy/proxydispatcher.py"
PROXY_PID="$RUNTIME_DIR/mediaproxy.pid"
DISPATCHER_PID="$RUNTIME_DIR/proxydispatcher.pid"
# Options for mediaproxy and dispatcher. Do not include --pid <pidfile>
# --pid <pidfile> will be added automatically if needed.
PROXY_OPTIONS=""
DISPATCHER_OPTIONS=""
NAME="mediaproxy"
DESC="SER MediaProxy server"
echo $PROXY
test -f $PROXY || exit 0
test -f $DISPATCHER || exit 0
if [ "$PROXY_PID" != "/var/run/mediaproxy.pid" ]; then
PROXY_OPTIONS="--pid $PROXY_PID $PROXY_OPTIONS"
fi
if [ "$DISPATCHER_PID" != "/var/run/proxydispatcher.pid" ]; then
DISPATCHER_OPTIONS="--pid $DISPATCHER_PID $DISPATCHER_OPTIONS"
fi
start() {
if [ $mediaproxy_enable = "YES" ]; then
echo -n "Starting $DESC: $NAME"
$PROXY $PROXY_OPTIONS
$DISPATCHER $DISPATCHER_OPTIONS
echo "."
fi
}
stop () {
echo -n "Stopping $DESC: $NAME"
if [ -f $PROXY_PID ]; then
kill `cat $PROXY_PID`
fi
if [ -f $DISPATCHER_PID ]; then
kill `cat $DISPATCHER_PID`
fi
echo "."
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|force-reload)
stop
#sleep 1
start
;;
*)
echo "Usage: ${INSTALL_DIR}/etc/init.d/$NAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,8 @@
--- Makefile Wed Dec 31 19:00:00 1969
+++ Makefile Tue Aug 8 15:01:10 2006
@@ -0,0 +1,4 @@
+all:
+
+install:
+

12
net/mediaproxy/pkg-descr Normal file
View File

@ -0,0 +1,12 @@
MediaProxy is a far-end NAT traversal solution for OpenSER
and SIP Express Router that has the following features:
- Distributed geographical location
- Scalability, load balancing and redundancy
- Real-time sessions statistics
- Configurable IP and UDP port range
- Support for audio and video streams
- Support for multiple media streams per call
- Accounting of network traffic
WWW: http://mediaproxy.ag-projects.com/

220
net/mediaproxy/pkg-plist Normal file
View File

@ -0,0 +1,220 @@
mediaproxy/Changelog
mediaproxy/INSTALL
mediaproxy/LICENSE
mediaproxy/Makefile
mediaproxy/Makefile.orig
mediaproxy/NATtraversal-BestPractices.pdf
mediaproxy/README
mediaproxy/geodistribution.txt
mediaproxy/mediaproxy.ini.sample
mediaproxy/mediaproxy.py
mediaproxy/proxydispatcher.py
mediaproxy/sessions.py
mediaproxy/boot/mediaproxy.debian
mediaproxy/boot/mediaproxy.other
mediaproxy/boot/macosx/README
mediaproxy/boot/macosx/MEDIAPROXY/MEDIAPROXY
mediaproxy/boot/macosx/MEDIAPROXY/StartupParameters.plist
@dirrm mediaproxy/boot/macosx/MEDIAPROXY
@dirrm mediaproxy/boot/macosx
@dirrm mediaproxy/boot
@dirrmtry mediaproxy/log
mediaproxy/modules/accounting.py
mediaproxy/modules/configuration.py
mediaproxy/modules/daemon.py
mediaproxy/modules/datatypes.py
mediaproxy/modules/dispatcher.py
mediaproxy/modules/formatting.py
mediaproxy/modules/mysql.py
mediaproxy/modules/options.py
mediaproxy/modules/request.py
mediaproxy/modules/rtphandler.py
mediaproxy/modules/serialize.py
mediaproxy/modules/utilities.py
mediaproxy/modules/version.py
mediaproxy/modules/external/timeoutsocket.py
mediaproxy/modules/external/DNS/Base.py
mediaproxy/modules/external/DNS/Class.py
mediaproxy/modules/external/DNS/Lib.py
mediaproxy/modules/external/DNS/Opcode.py
mediaproxy/modules/external/DNS/Status.py
mediaproxy/modules/external/DNS/Type.py
mediaproxy/modules/external/DNS/__init__.py
mediaproxy/modules/external/DNS/lazy.py
@dirrm mediaproxy/modules/external/DNS
@dirrm mediaproxy/modules/external
@dirrm mediaproxy/modules
mediaproxy/utils/fakeconversations.py
mediaproxy/utils/rtpgenerator.py
@dirrm mediaproxy/utils
mediaproxy/web/media_sessions.phtml
mediaproxy/web/config/media_servers.php.sample
mediaproxy/web/config/phone_images.php
@dirrm mediaproxy/web/config
mediaproxy/web/images/30/aastra.png
mediaproxy/web/images/30/asterisk.png
mediaproxy/web/images/30/audiocodes-mp124.png
mediaproxy/web/images/30/avm-fritzbox-wlan.png
mediaproxy/web/images/30/avm-fritzbox-wlan2.png
mediaproxy/web/images/30/budgetone100.png
mediaproxy/web/images/30/cirpack.png
mediaproxy/web/images/30/cisco-5380.png
mediaproxy/web/images/30/cisco-7960.png
mediaproxy/web/images/30/cisco-ata.png
mediaproxy/web/images/30/cisco.png
mediaproxy/web/images/30/draytek-vigor2600v.png
mediaproxy/web/images/30/draytek-vigor2600vg.png
mediaproxy/web/images/30/draytek-vigor2800g.png
mediaproxy/web/images/30/draytek-vigor2900g.png
mediaproxy/web/images/30/eStara.png
mediaproxy/web/images/30/eyebeam.png
mediaproxy/web/images/30/handytone.png
mediaproxy/web/images/30/hitachi-wip5000-2.png
mediaproxy/web/images/30/hitachi-wip5000-3.png
mediaproxy/web/images/30/hitachi-wip5000.png
mediaproxy/web/images/30/innomedia-mta5000.png
mediaproxy/web/images/30/ipDialog.png
mediaproxy/web/images/30/linksys-pap2-vert.png
mediaproxy/web/images/30/linksys-pap2.png
mediaproxy/web/images/30/messenger.png
mediaproxy/web/images/30/session.png
mediaproxy/web/images/30/siemens-3610.png
mediaproxy/web/images/30/sipps.png
mediaproxy/web/images/30/sjphone.png
mediaproxy/web/images/30/snom100.png
mediaproxy/web/images/30/snom200.png
mediaproxy/web/images/30/snom320-front.png
mediaproxy/web/images/30/snom320-left.png
mediaproxy/web/images/30/snom320.png
mediaproxy/web/images/30/snom360-front.png
mediaproxy/web/images/30/snom360-left.png
mediaproxy/web/images/30/snom360.png
mediaproxy/web/images/30/spa2000.png
mediaproxy/web/images/30/unknown.png
mediaproxy/web/images/30/unknown3.png
mediaproxy/web/images/30/vizufon.png
mediaproxy/web/images/30/vizufon2.png
mediaproxy/web/images/30/xten.png
mediaproxy/web/images/30/zoep.png
mediaproxy/web/images/30/zyxel-p2000.png
@dirrm mediaproxy/web/images/30
mediaproxy/web/images/35/aastra.png
mediaproxy/web/images/35/asterisk.png
mediaproxy/web/images/35/audiocodes-mp124.png
mediaproxy/web/images/35/avm-fritzbox-wlan.png
mediaproxy/web/images/35/avm-fritzbox-wlan2.png
mediaproxy/web/images/35/budgetone100.png
mediaproxy/web/images/35/cirpack.png
mediaproxy/web/images/35/cisco-5380.png
mediaproxy/web/images/35/cisco-7960.png
mediaproxy/web/images/35/cisco-ata.png
mediaproxy/web/images/35/cisco.png
mediaproxy/web/images/35/draytek-vigor2600v.png
mediaproxy/web/images/35/draytek-vigor2600vg.png
mediaproxy/web/images/35/draytek-vigor2800g.png
mediaproxy/web/images/35/draytek-vigor2900g.png
mediaproxy/web/images/35/eStara.png
mediaproxy/web/images/35/eyebeam.png
mediaproxy/web/images/35/handytone.png
mediaproxy/web/images/35/hitachi-wip5000-2.png
mediaproxy/web/images/35/hitachi-wip5000-3.png
mediaproxy/web/images/35/hitachi-wip5000.png
mediaproxy/web/images/35/innomedia-mta5000.png
mediaproxy/web/images/35/ipDialog.png
mediaproxy/web/images/35/linksys-pap2-vert.png
mediaproxy/web/images/35/linksys-pap2.png
mediaproxy/web/images/35/messenger.png
mediaproxy/web/images/35/session.png
mediaproxy/web/images/35/siemens-3610.png
mediaproxy/web/images/35/sipps.png
mediaproxy/web/images/35/sjphone.png
mediaproxy/web/images/35/snom100.png
mediaproxy/web/images/35/snom200.png
mediaproxy/web/images/35/snom320-front.png
mediaproxy/web/images/35/snom320-left.png
mediaproxy/web/images/35/snom320.png
mediaproxy/web/images/35/snom360-front.png
mediaproxy/web/images/35/snom360-left.png
mediaproxy/web/images/35/snom360.png
mediaproxy/web/images/35/spa2000.png
mediaproxy/web/images/35/unknown.png
mediaproxy/web/images/35/unknown3.png
mediaproxy/web/images/35/vizufon.png
mediaproxy/web/images/35/vizufon2.png
mediaproxy/web/images/35/xten.png
mediaproxy/web/images/35/zoep.png
mediaproxy/web/images/35/zyxel-p2000.png
@dirrm mediaproxy/web/images/35
mediaproxy/web/images/40/aastra.png
mediaproxy/web/images/40/asterisk.png
mediaproxy/web/images/40/audiocodes-mp124.png
mediaproxy/web/images/40/avm-fritzbox-wlan.png
mediaproxy/web/images/40/avm-fritzbox-wlan2.png
mediaproxy/web/images/40/budgetone100.png
mediaproxy/web/images/40/cirpack.png
mediaproxy/web/images/40/cisco-5380.png
mediaproxy/web/images/40/cisco-7960.png
mediaproxy/web/images/40/cisco-ata.png
mediaproxy/web/images/40/cisco.png
mediaproxy/web/images/40/draytek-vigor2600v.png
mediaproxy/web/images/40/draytek-vigor2600vg.png
mediaproxy/web/images/40/draytek-vigor2800g.png
mediaproxy/web/images/40/draytek-vigor2900g.png
mediaproxy/web/images/40/eStara.png
mediaproxy/web/images/40/eyebeam.png
mediaproxy/web/images/40/handytone.png
mediaproxy/web/images/40/hitachi-wip5000-2.png
mediaproxy/web/images/40/hitachi-wip5000-3.png
mediaproxy/web/images/40/hitachi-wip5000.png
mediaproxy/web/images/40/innomedia-mta5000.png
mediaproxy/web/images/40/ipDialog.png
mediaproxy/web/images/40/linksys-pap2-vert.png
mediaproxy/web/images/40/linksys-pap2.png
mediaproxy/web/images/40/messenger.png
mediaproxy/web/images/40/session.png
mediaproxy/web/images/40/siemens-3610.png
mediaproxy/web/images/40/sipps.png
mediaproxy/web/images/40/sjphone.png
mediaproxy/web/images/40/snom100.png
mediaproxy/web/images/40/snom200.png
mediaproxy/web/images/40/snom320-front.png
mediaproxy/web/images/40/snom320-left.png
mediaproxy/web/images/40/snom320.png
mediaproxy/web/images/40/snom360-front.png
mediaproxy/web/images/40/snom360-left.png
mediaproxy/web/images/40/snom360.png
mediaproxy/web/images/40/spa2000.png
mediaproxy/web/images/40/unknown.png
mediaproxy/web/images/40/unknown3.png
mediaproxy/web/images/40/vizufon.png
mediaproxy/web/images/40/vizufon2.png
mediaproxy/web/images/40/xten.png
mediaproxy/web/images/40/zoep.png
mediaproxy/web/images/40/zyxel-p2000.png
@dirrm mediaproxy/web/images/40
@dirrm mediaproxy/web/images
@dirrm mediaproxy/web
@dirrmtry mediaproxy
etc/rc.d/mediaproxy