res_rtp_asterisk: Make TURN and STUN server configurations consistent.

This patch removes the turnport configuration property and changes the
turnaddr property to be a combined host[:port] configuration string. The
patch also modifies the documentation in the example configuration to
reflect the property changes and adds some additional text indicating how
the STUN port is configured.

(closes issue ASTERISK-20344)
Reported by: beagles
Tested by: beagles
Review: https://reviewboard.asterisk.org/r/2111/



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@373403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Brent Eagles
2012-09-24 12:33:10 +00:00
parent 388509cfa9
commit f5699aebee
2 changed files with 36 additions and 12 deletions

View File

@@ -36,16 +36,22 @@ rtpend=20000
; Whether to enable or disable ICE support. This option is enabled by default.
; icesupport=false
;
; Address to use for the STUN server when determining the external IP address and port
; an RTP session can be reached at. This option is disabled by default.
; Hostname or address for the STUN server used when determining the external
; IP address and port an RTP session can be reached at. The port number is
; optional. If omitted the default value of 3478 will be used. This option is
; disabled by default.
;
; e.g. stundaddr=mystun.server.com:3478
;
; stunaddr=
;
; Address to use for the TURN relay server when creating a TURN relay session. This option
; is disabled by default.
; turnaddr=
; Hostname or address for the TURN server to be used as a relay. The port
; number is optional. If omitted the default value of 3478 will be used.
; This option is disabled by default.
;
; Port used to contact the TURN relay server on. This option is set to 34780 by default.
; turnport=34780
; e.g. turnaddr=myturn.server.com:34780
;
; turnaddr=
;
; Username used to authenticate with TURN relay server.
; turnusername=