aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-27 16:23:12 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-27 16:23:12 +0000
commite456f3b727d9c846a23dfd443b740ac638c6f415 (patch)
tree8e9bb2a91d6ecc50a62a2567036f76942345f9d3 /channels
parentc31e55ef75bfe94b6e64db7fa539fcfa6e2e2bf4 (diff)
Make rfc2833compensate a global option.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43774 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index afca4ca12..a1d30257a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10011,6 +10011,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
@@ -15956,6 +15957,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);
+ }
}
}