From 02cff2632a35b9031da98c7ab097832fc07f44da Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Tue, 17 Jun 2008 05:52:53 +0000 Subject: [PATCH] Add rtpproxy - a high-performance RTP proxy server for the SIP Express Router (SER) or OpenSER. --- net/Makefile | 1 + net/rtpproxy/Makefile | 31 ++++++++++++++++++++ net/rtpproxy/distinfo | 3 ++ net/rtpproxy/files/patch-freebsd_rtpproxy.in | 14 +++++++++ net/rtpproxy/pkg-descr | 18 ++++++++++++ net/rtpproxy/pkg-plist | 3 ++ 6 files changed, 70 insertions(+) create mode 100644 net/rtpproxy/Makefile create mode 100644 net/rtpproxy/distinfo create mode 100644 net/rtpproxy/files/patch-freebsd_rtpproxy.in create mode 100644 net/rtpproxy/pkg-descr create mode 100644 net/rtpproxy/pkg-plist diff --git a/net/Makefile b/net/Makefile index acd62c089995..54754098e3f1 100644 --- a/net/Makefile +++ b/net/Makefile @@ -793,6 +793,7 @@ SUBDIR += rsync SUBDIR += rtg SUBDIR += rtpbreak + SUBDIR += rtpproxy SUBDIR += ruby-dict SUBDIR += ruby-icmp SUBDIR += ruby-ldap diff --git a/net/rtpproxy/Makefile b/net/rtpproxy/Makefile new file mode 100644 index 000000000000..3d034b256d8d --- /dev/null +++ b/net/rtpproxy/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: rtpproxy +# Date created: 20 April 2005 +# Whom: sobomax@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= rtpproxy +PORTVERSION= 1.1 +CATEGORIES= net +MASTER_SITES= http://www.rtpproxy.org/chrome/site/ + +MAINTAINER= sobomax@FreeBSD.org +COMMENT= A high-performance RTP proxy server for the SIP Express Router (SER) + +LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm + +GNU_CONFIGURE= yes +CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \ + LIBS=-L${LOCALBASE}/lib +#CONFIGURE_ARGS= --mandir=${LOCALBASE}/man +MAN8= rtpproxy.8 + +post-build: + ${SED} 's|%%PREFIX%%|${PREFIX}|g ; s|%%RC_SUBR%%|/etc/rc.subr|g' \ + ${WRKSRC}/freebsd/rtpproxy.in > ${WRKDIR}/rtpproxy + +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/rtpproxy ${PREFIX}/etc/rc.d/rtpproxy + +.include diff --git a/net/rtpproxy/distinfo b/net/rtpproxy/distinfo new file mode 100644 index 000000000000..de774834dbcf --- /dev/null +++ b/net/rtpproxy/distinfo @@ -0,0 +1,3 @@ +MD5 (rtpproxy-1.1.tar.gz) = 76140b62c41932681a30714adcfa94a9 +SHA256 (rtpproxy-1.1.tar.gz) = 181ec3686f272b3d105a25a63a41dc960fb3caadfb83680784730849899a4817 +SIZE (rtpproxy-1.1.tar.gz) = 189829 diff --git a/net/rtpproxy/files/patch-freebsd_rtpproxy.in b/net/rtpproxy/files/patch-freebsd_rtpproxy.in new file mode 100644 index 000000000000..c467aae66bb6 --- /dev/null +++ b/net/rtpproxy/files/patch-freebsd_rtpproxy.in @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- freebsd/rtpproxy.in ++++ freebsd/rtpproxy.in +@@ -24,7 +24,7 @@ + load_rc_config ${name} + + rtpproxy_enable=${rtpproxy_enable:-"NO"} +-rtpproxy_laddr=${rtpproxy_laddr:-"*"} ++rtpproxy_laddr=${rtpproxy_laddr:-"0.0.0.0"} + + command_args="-l ${rtpproxy_laddr} -p /var/run/rtpproxy.pid" + diff --git a/net/rtpproxy/pkg-descr b/net/rtpproxy/pkg-descr new file mode 100644 index 000000000000..a01b70071557 --- /dev/null +++ b/net/rtpproxy/pkg-descr @@ -0,0 +1,18 @@ +The Sippy RTPproxy is a high-performance software proxy for RTP streams that +can work together with SIP Express Router (SER), OpenSER or Sippy B2BUA or +any other SIP proxy or SIP B2BUA capable of rewriting SDP bodies in SIP +messages that it relays. + +The main purpose of RTPproxy is to make the communication between SIP user +agents behind NAT(s) (Network Address Translator) possible. Several cases +exists when direct end-to-end communication is not possible and RTP streams +have to be relayed through another host. The RTPproxy can be used to setup +such a relaying host. + +Originally created for handling NAT scenarious it can also act as a generic +media relay as well as gateway RTP sessions between IPv4 and IPv6 networks. +It can also perform number of additional functions, including call recording, +playing pre-encoded announcements, real-time stream copying and RTP payload +reframing. + +WWW: http://www.rtpproxy.org/ diff --git a/net/rtpproxy/pkg-plist b/net/rtpproxy/pkg-plist new file mode 100644 index 000000000000..032252109143 --- /dev/null +++ b/net/rtpproxy/pkg-plist @@ -0,0 +1,3 @@ +etc/rc.d/rtpproxy +bin/makeann +bin/rtpproxy