[Pkg-voip-commits] [asterisk] 12/20: ignore_failed_channels.patch

Frederic Van Espen freshter-guest at moszumanska.debian.org
Sun Feb 23 08:01:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

freshter-guest pushed a commit to branch experimental
in repository asterisk.

commit f292e412a83d5b253037d7f91f50a5c012fa0980
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Wed Dec 11 14:33:03 2013 +0200

    ignore_failed_channels.patch
    
    Allow dahdi to start after Asterisk
    
    (cherry picked from commit 624a601f9c33bfd4a5a46cb7e7c4eb124276c055)
    
    Conflicts:
    	debian/changelog
    	debian/patches/series
---
 debian/patches/ignore_failed_channels.patch | 37 +++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 38 insertions(+)

diff --git a/debian/patches/ignore_failed_channels.patch b/debian/patches/ignore_failed_channels.patch
new file mode 100644
index 0000000..e21d24b
--- /dev/null
+++ b/debian/patches/ignore_failed_channels.patch
@@ -0,0 +1,37 @@
+Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+Description: Ignore failed DAHDI channels at startup
+Origin: https://reviewboard.asterisk.org/r/3063
+
+Allow DAHDI channels to be failed at startup, as it allows them to be
+added later through 'dahdi create channels' from e.g. a udev hook.
+
+--- a/configs/chan_dahdi.conf.sample
++++ b/configs/chan_dahdi.conf.sample
+@@ -1145,12 +1145,11 @@
+ ;
+ ;
+ ; ignore_failed_channels: Continue even if some channels failed to configure.
+-; False by default, as if even a single channel failed to configure, it might
+-; mean other channels are misplaced and having them work may not be a good
+-; idea. If enabled (set to true), chan_dahdi will nevertheless attempt to
+-; configure other channels rather than giving up. This normally makes sense
+-; only if you use names (<subdir>!<number>) for DAHDI channels.
+-;ignore_failed_channels = true
++; True by default. Disable this if you can guarantee that DAHDI starts before
++; Asterisk and want to be sure chan_dahdi will not start with broken
++; configuration.
++;
++;ignore_failed_channels = false
+ ;
+ ; Configure jitter buffers in DAHDI (each one is 20ms, default is 4)
+ ; This is set globally, rather than per-channel.
+--- a/channels/chan_dahdi.c
++++ b/channels/chan_dahdi.c
+@@ -961,6 +961,7 @@
+ 			.debouncetime = -1
+ 		},
+ 		.is_sig_auto = 1,
++		.ignore_failed_channels = 1,
+ 		.smdi_port = "/dev/ttyS0",
+ 	};
+ 
diff --git a/debian/patches/series b/debian/patches/series
index de14e71..2bba346 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -23,3 +23,4 @@ ilbc_disable
 astdatadir
 
 reenable
+ignore_failed_channels.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/asterisk.git



More information about the Pkg-voip-commits mailing list