---
name: rtpproxy
version: 1.2.1_1
origin: net/rtpproxy
comment: High-performance RTP proxy server for the SIP Express Router (SER)
arch: freebsd:9:x86:64
www: http://www.rtpproxy.org/
maintainer: sobomax@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 99947
desc: |
  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/
deps:
  gsm: {origin: audio/gsm, version: 1.0.13}
categories: [net]
users: [rtpproxy]
groups: [rtpproxy]
files:
  /usr/local/bin/makeann: a5b67b0a4df82af5856efc13e7b19563ef15e9ddfd3d0113b9b7b7a55571c277
  /usr/local/bin/rtpproxy: 7eb31e370d6c1c9616919912079ece7c0126c87e77c4aaaa420f3ffae2cfc86d
  /usr/local/etc/rc.d/rtpproxy: 0761f83807beac1e1f1930ba116b6c794dbbee0eec8473df311359539ce68043
  /usr/local/man/man8/rtpproxy.8.gz: 1ef91242b3182943f4347615533fa635e43c1fc63f511bab188b3b3070e79df4
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow rtpproxy >/dev/null 2>&1; then  echo "Creating group 'rtpproxy' with gid '222'.";  /usr/sbin/pw groupadd rtpproxy -g 222; else echo "Using existing group 'rtpproxy'."; fi
    if ! /usr/sbin/pw usershow rtpproxy >/dev/null 2>&1; then  echo "Creating user 'rtpproxy' with uid '222'.";  /usr/sbin/pw useradd rtpproxy -u 222 -g 222  -c "& user" -d /nonexistent -s /sbin/nologin;  else echo "Using existing user 'rtpproxy'."; fi
  pre-deinstall: |
    if /usr/sbin/pw usershow rtpproxy >/dev/null 2>&1; then  echo "==> You should manually remove the \"rtpproxy\" user. "; fi
