From aa5458d6abe76599ff9b5be4982567cbe63d21fa Mon Sep 17 00:00:00 2001
From: Scott Griepentrog <sgriepentrog@digium.com>
Date: Thu, 2 Oct 2014 13:36:01 +0000
Subject: [PATCH] res_pjsip: document use of rewrite_contact in sample conf

Without setting rewrite_contact, an invite to an endpoint
behind NAT will not reach it - unless the endpoint itself
uses STUN or TURN to discover it's public URI.  Thus, the
use of this should be in the sample documentation.

Review: https://reviewboard.asterisk.org/r/4036/
........

Merged revisions 424337 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 424338 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@424339 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 configs/samples/pjsip.conf.sample | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/samples/pjsip.conf.sample b/configs/samples/pjsip.conf.sample
index cbc1d7cee9..c138815ce4 100644
--- a/configs/samples/pjsip.conf.sample
+++ b/configs/samples/pjsip.conf.sample
@@ -361,6 +361,7 @@
 ;direct_media=no
 ;rtp_symmetric=yes
 ;force_rport=yes
+;rewrite_contact=yes  ; necessary if endpoint does not know/register public ip:port
 ;ice_support=yes   ;This is specific to clients that support NAT traversal
                    ;for media via ICE,STUN,TURN. See the wiki at:
                    ;https://wiki.asterisk.org/wiki/x/D4FHAQ
-- 
GitLab