From 2a0b16b663fe49eb13e0e8596ce56ec5a73e28be Mon Sep 17 00:00:00 2001
From: Christian Richter <christian.richter@beronet.com>
Date: Mon, 12 Nov 2007 13:36:45 +0000
Subject: [PATCH] Merged revisions 89173 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89173 | crichter | 2007-11-12 12:26:48 +0100 (Mo, 12 Nov 2007) | 1 line

if we're NT and no number was dialed and overlapdial is set, we wait for the ISDN timeout instead of starting our own timer. added a comment for the misdn.conf.sample for the overlapdial config option.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_misdn.c     | 11 +++++++++++
 configs/misdn.conf.sample |  7 +++++++
 2 files changed, 18 insertions(+)

diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index ef7302be6d..c0264bc926 100644
--- a/channels/chan_misdn.c
+++ b/channels/chan_misdn.c
@@ -4442,6 +4442,17 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
 			break;
 		}
 
+
+		/*
+		 * When we are NT and overlapdial is set and if 
+		 * the number is empty, we wait for the ISDN timeout
+		 * instead of our own timer.
+		 */
+		if (ch->overlap_dial && bc->nt && !bc->dad[0] ) {
+			wait_for_digits(ch, bc, chan);
+			break;
+		}
+
 		/* 
 		 * If overlapdial we will definitely send a SETUP_ACKNOWLEDGE and wait for more 
 		 * Infos with a Interdigit Timeout.
diff --git a/configs/misdn.conf.sample b/configs/misdn.conf.sample
index fb2925b239..65bdda3ea9 100644
--- a/configs/misdn.conf.sample
+++ b/configs/misdn.conf.sample
@@ -269,6 +269,13 @@ nttimeout=no
 ;
 method=standard
 
+
+; specify if chan_misdn should collect digits before going into the 
+; dialplan, you can choose yes=4 Seconds, no, or specify the amount
+; of seconds you need;
+; 
+overlapdial=yes
+
 ;
 ; dialplan means Type Of Number in ISDN Terms (for outgoing calls)
 ;
-- 
GitLab