From fcad797dfdba9e31077f26db3cd1ae0d23c42e40 Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Wed, 27 Sep 2006 16:25:45 +0000
Subject: [PATCH] Merged revisions 43774 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43774 | file | 2006-09-27 12:23:12 -0400 (Wed, 27 Sep 2006) | 2 lines

Make rfc2833compensate a global option.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_sip.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 34ac446785..6ae7e8df27 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10000,6 +10000,7 @@ static int sip_show_settings(int fd, int argc, char *argv[])
 	ast_cli(fd, "  T38 fax pt UDPTL:       %s\n", ast_test_flag(&global_flags[1], SIP_PAGE2_T38SUPPORT_UDPTL) ? "Yes" : "No");
 	ast_cli(fd, "  T38 fax pt RTP:         %s\n", ast_test_flag(&global_flags[1], SIP_PAGE2_T38SUPPORT_RTP) ? "Yes" : "No");
 	ast_cli(fd, "  T38 fax pt TCP:         %s\n", ast_test_flag(&global_flags[1], SIP_PAGE2_T38SUPPORT_TCP) ? "Yes" : "No");
+	ast_cli(fd, "  RFC2833 Compensation:   %s\n", ast_test_flag(&global_flags[1], SIP_PAGE2_RFC2833_COMPENSATE) ? "Yes" : "No");
 	if (!realtimepeers && !realtimeusers)
 		ast_cli(fd, "  SIP realtime:           Disabled\n" );
 	else
@@ -15901,6 +15902,10 @@ static int reload_config(enum channelreloadreason reason)
 			if (ast_true(v->value)) {
 				ast_set_flag(&global_flags[1], SIP_PAGE2_T38SUPPORT_TCP);
 			}
+		} else if (!strcasecmp(v->name, "rfc2833compensate")) {
+			if (ast_true(v->value)) {
+				ast_set_flag(&global_flags[1], SIP_PAGE2_RFC2833_COMPENSATE);
+			}
 		}
 	}
 
-- 
GitLab