⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtpproxy.8

📁 RTP Proxy,用于Voip网络数据的代理传递
💻 8
字号:
.\"     Title: rtpproxy.\"    Author: Maxim Sobolev.\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>.\"      Date: Jun 16, 2008.\"    Manual: .\"    Source: .\".TH "RTPPROXY" "8" "Jun 16, 2008" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"rtpproxy \- RTP (Real\-time Transport Protocol) Proxy Server.SH "SYNOPSIS".HP 9\fBrtpproxy\fR [\fB\-?\fR] [\fB\-2\fR] [\fB\-f\fR] [\fB\-v\fR] [\fB\-R\fR] [\fB\-l\fR\ \fIaddr1\fR\fI[/addr2]\fR] [\fB\-6\fR\ \fIaddr1\fR\fI[/addr2]\fR] [\fB\-s\fR\ \fIctrl_socket\fR] [\fB\-t\fR\ \fItos\fR] [\fB\-p\fR\ \fIpidfile\fR] [\fB\-T\fR\ \fImax_ttl\fR] [\fB\-r\fR\ \fIrdir\fR\ [\fB\-S\fR\ \fIsdir\fR]] [\fB\-m\fR\ \fImin_port\fR] [\fB\-M\fR\ \fImax_port\fR] [\fB\-u\fR\ \fIuname\fR\fI[:gname]\fR] [\fB\-F\fR].SH "DESCRIPTION".PP\fBrtpproxy\fRis a symmetric RTP proxy designed to be used in conjunction with the SIP Express Router (SER) or any other SIP proxy or SIP B2BUA capable of rewriting SDP bodies in SIP messages that it processes..PPThe 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. Rtpproxy can be used to setup such a relaying host..PPWhen two listen interfaces have been specified using the command line parameters described below then rtpproxy will enter so called bridging mode. In briding mode rtpproxy forwards RTP packets received on one interface to the other interface and vice versa. This mode can be used to forward RTP packets between networks without direct network level connectivy (provided that the host running rtpproxy has one interface in both of them). One particular application of bridging mode is IPv4/IPv6 traversal of RTP packets..PPWhen instructured by SER rtpproxy can also record the entire RTP session in a file on a local harddisk or play a pre\-recorded file to the user agent (so called Music\-on\-Hold)..SH "OPTIONS".PP\fB\-?\fR.RS 4Show summary of options..RE.PP\fB\-2\fR.RS 4Send every RTP packet twice in sessions that use low\-bitrate codecs. Only packets that are smaller than 128 bytes will be sent twice. This option can improve audio quality on lossy links..RE.PP\fB\-f\fR.RS 4Rtpproxy will stay in foreground mode if this option is set..RE.PP\fB\-v\fR.RS 4Show version of program..RE.PP\fB\-l\fR \fIaddr1\fR\fI[/addr2]\fR.RS 4IPv4 listen IP address(es). You can specify either one or two addresses. If two addresses have been specified then rtpproxy will work in bridging mode..RE.PP\fB\-6\fR \fIaddr1\fR\fI[/addr2]\fR.RS 4IPv6 listen IP address(es). You can specify either one or two addresses. If two addresses have been specified then rtpproxy will work in bridging mode..RE.PP\fB\-s\fR \fIctrl_socket\fR.RS 4This parameter configures rtpproxy control socket. The control socket is used by nathelper module of SER to create/modify/delete RTP sessions to be relayed. Format of\fIctrl_socket\fRis <type>:<socket>. Following types are supported:.RS 4.TP 4\(bu\fIudp:\fRCreate UDP control socket. In this mode RTPProxy will listen on UDP for control messages from SER/nathelper..spExample: \-s udp:127.0.0.1:9000.spIP address can be '*' in which case rtpproxy will listen on all local interfaces. If omitted port 22222 is used..sp.it 1 an-trap.nr an-no-space-flag 1.nr an-break-flag 1.br\fBNote\fRRTPProxy control protocol has no built\-in security mechanisms. Make sure that you protect the listening IP and port properly when using RTPProxy with UDP control socket..TP 4\(bu\fIudp6:\fRCreate IPv6 UDP control socket. In this mode RTPProxy will listen on UDP/IPv6 for control messages from SER/nathelper..spExample: \-s udp6:::1:9000.TP 4\(bu\fIunix:\fRCreate UNIX domain socket for control interface. In this mode SER/nathelper and RTPProxy must be running on the same host. This is the default setting for both SER/nathelper and rtpproxy..spExample: \-s unix:/var/run/rtpproxy.sock.spDefault value is\fI/var/run/rtpproxy.sock\fR..RE.IP "" 4.RE.PP\fB\-t\fR \fItos\fR.RS 4Set this ToS (Type of Service) in outgoing packets. Default value is 0xB8..RE.PP\fB\-r\fR \fIrec_dir\fR.RS 4Directory where recorded RTP sessions will be stored..RE.PP\fB\-S\fR \fIspool_dir\fR.RS 4Spool directory for RTP sessions being recorded. The file will be moved to directory configured in\fB\-r\fRoption after the session finishes..RE.PP\fB\-R\fR.RS 4Do not record RTCP when recording an RTP session. This option is disabled (rtpproxy will record RTCP) by default..RE.PP\fB\-p\fR \fIpid_file\fR.RS 4This parameter configures the name of the file where PID of running rtpproxy will be stored. Default is\fI/var/run/rtpproxy.pid\fR..RE.PP\fB\-T\fR \fImax_ttl\fR.RS 4Limit the maximum TTL (Time To Live) of outgoing IP packets to the value of\fImax_ttl\fR..RE.PP\fB\-m\fR \fImin_port\fR.RS 4Set lower limit on UDP ports range that the RTPproxy uses for RTP/RTCP sessions to\fImin_port\fR. Default is 35000..RE.PP\fB\-M\fR \fImax_port\fR.RS 4Set upper limit on UDP ports range that the RTPproxy uses for RTP/RTCP sessions to\fImax_port\fR. Default is 65000..RE.PP\fB\-u\fR \fIuname\fR\fI[:gname]\fR.RS 4Switch RTPproxy to UID identified by the\fIuname\fRand optional GID identified by\fIgname\fRwhen proxy is up and running..RE.PP\fB\-F\fR.RS 4By default the RTPproxy will warn user if running as superuser (UID 0) in local control mode and refuse to run in remote control mode at all. This switch removes the check..RE.SH "HOWITWORKS".PPWhen SER receives an INVITE request, it extracts Call\-ID from it and communicates it to rtpproxy via Unix domain socket or UDP. Rtproxy looks for an existing session with such Call\-ID. If the session exists it returns UDP port for that session, if not, then it creates a new session, binds to a first empty UDP port from the range specified at the compile time and returns number of that port to a SER. After receiving reply from the proxy, SER replaces media ip:port in the SDP to point to the proxy and forwards request as usually..PPWhen SER receives a non\-negative SIP reply with SDP it again extracts Call\-ID from it and communicates it to the proxy. In this case the proxy does not allocate a new session if it doesn't exist, but simply performs a lookup among existing sessions and returns either a port number if the session is found, or error code indicating that there is no session with such id. After receiving positive reply from the proxy, SER replaces media ip:port in the SIP reply to point to the proxy and forwards reply as usually..PPAfter the session has been created, the proxy listens on the port it has allocated for that session and waits for receiving at least one UDP packet from each of two parties participating in the call. Once such packet is received, the proxy fills one of two ip:port structures associated with each call with source ip:port of that packet. When both structures are filled in, the proxy starts relaying UDP packets between parties..PPThe proxy tracks idle time for each of existing sessions (i.e. the time within which there were no packets relayed), and automatically cleans up a sessions whose idle times exceed the value specified at compile time (60 seconds by default)..SH "FILES".PP\fI/usr/sbin/rtpproxy\fR.SH "LICENSE".PPThis program is licensed under the BSD license. See\fICOPYING\fRfile in the rtpproxy sources for details..SH "AVAILABILITY".PPThe latest version of this program can be found at\fIhttp://www.rtpproxy.org/\fR..SH "SEEALSO".PPser(8)..SH "AUTHOR".PP\fBMaxim Sobolev\fR.sp -1n.IP "" 4Author..SH "COPYRIGHT"Copyright \(co 2006 janakj.br

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -