From 0a43dfc9b04638ce189d3c97030ae1d87d3fd838 Mon Sep 17 00:00:00 2001 From: crichter Date: Mon, 12 Nov 2007 09:45:36 +0000 Subject: =?UTF-8?q?aded=20ntkeepcalls=20option,=20to=20avoid=20dro=C3=83pp?= =?UTF-8?q?ing=20calls=20when=20the=20L2=20goes=20down=20on=20a=20PTP=20li?= =?UTF-8?q?nk.=20There=20are=20some=20pbx=20which=20do=20turn=20off=20the?= =?UTF-8?q?=20L1=20for=20a=20very=20short=20while=20and=20restart=20it=20i?= =?UTF-8?q?mmediately.=20normally=20T310=20should=20be=20started=20and=20a?= =?UTF-8?q?fter=2010=20seconds=20or=20so=20the=20calls=20should=20be=20dro?= =?UTF-8?q?pped,=20this=20is=20a=20simple=20fix=20wihtout=20this=20timer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89169 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_misdn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'channels/chan_misdn.c') diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index ea8bce0dc..a7807ab39 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -4997,7 +4997,7 @@ static int load_module(void) chan_misdn_log(0, 0, "Got: %s from get_ports\n",ports); { - int ntflags=0; + int ntflags=0, ntkc=0; char ntfile[BUFFERSIZE+1]; struct misdn_lib_iface iface = { .cb_event = cb_events, @@ -5013,6 +5013,9 @@ static int load_module(void) misdn_lib_nt_debug_init(ntflags,ntfile); + + misdn_cfg_get( 0, MISDN_GEN_NTKEEPCALLS, &ntkc, sizeof(int)); + misdn_lib_nt_keepcalls(ntkc); } { -- cgit v1.2.3