Merged revisions 43774 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 27 Sep 2006 16:25:45 +0000 (16:25 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 27 Sep 2006 16:25:45 +0000 (16:25 +0000)
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

index 34ac446..6ae7e8d 100644 (file)
@@ -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);
+                       }
                }
        }