Define DTMF payload types
authorPaul Cadach <paul@odt.east.telecom.kz>
Sun, 24 Sep 2006 18:12:35 +0000 (18:12 +0000)
committerPaul Cadach <paul@odt.east.telecom.kz>
Sun, 24 Sep 2006 18:12:35 +0000 (18:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43571 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_h323.c
channels/h323/chan_h323.h

index 38fb22c..2f36f66 100644 (file)
@@ -2728,7 +2728,7 @@ static int reload_config(int is_reload)
        memset(&global_options, 0, sizeof(global_options));
        global_options.fastStart = 1;
        global_options.h245Tunneling = 1;
-       global_options.dtmfcodec = 101;
+       global_options.dtmfcodec = H323_DTMF_RFC2833_PT;
        global_options.dtmfmode = H323_DTMF_RFC2833;
        global_options.capability = GLOBAL_CAPABILITY;
        global_options.bridge = 1;              /* Do native bridging by default */
index 41eb84f..8905e4e 100644 (file)
@@ -190,6 +190,9 @@ extern int h323debug;
 #define H323_DTMF_RFC2833      (1 << 0)
 #define H323_DTMF_INBAND       (1 << 1)
 
+#define H323_DTMF_RFC2833_PT   101
+#define H323_DTMF_CISCO_PT             121
+
 #ifndef BOOL
 #define BOOL int
 #endif