From 258f1082ece62f8206bbf8294dc6a5f332272cdd Mon Sep 17 00:00:00 2001
From: Paul Cadach <paul@odt.east.telecom.kz>
Date: Sun, 24 Sep 2006 18:12:35 +0000
Subject: [PATCH] Define DTMF payload types

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_h323.c      | 2 +-
 channels/h323/chan_h323.h | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 38fb22c402..2f36f664c3 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -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 */
diff --git a/channels/h323/chan_h323.h b/channels/h323/chan_h323.h
index 41eb84fb0e..8905e4eea7 100644
--- a/channels/h323/chan_h323.h
+++ b/channels/h323/chan_h323.h
@@ -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
-- 
GitLab