diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-12 09:45:36 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-12 09:45:36 +0000 |
commit | 0a43dfc9b04638ce189d3c97030ae1d87d3fd838 (patch) | |
tree | aa8e2721463061be5c8e9f9ac1d3c1a29c48854a /channels/chan_misdn.c | |
parent | 6e4c3714c8b8f476cb2f177d672af5b381e2920c (diff) |
aded ntkeepcalls option, to avoid droĆpping calls when the L2 goes down on a PTP link. There are some pbx which do turn off the L1 for a very short while and restart it immediately. normally T310 should be started and after 10 seconds or so the calls should be dropped, this is a simple fix wihtout this timer.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89169 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } { |