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

tzafrir at debian.org tzafrir at debian.org
Wed Dec 11 13:49:20 UTC 2013


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

tzafrir pushed a commit to branch master
in repository asterisk.

commit 624a601f9c33bfd4a5a46cb7e7c4eb124276c055
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
---
 debian/changelog                            |  1 +
 debian/patches/ignore_failed_channels.patch | 37 +++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 39 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0d68ad8..3db6f2d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ asterisk (1:11.6.0~dfsg-2) UNRELEASED; urgency=medium
   [ Tzafrir Cohen ]
   * Restore SE Linux settings on directories created in init script
     (Russell Coker, Closes: #731397). 
+  * ignore_failed_channels.patch: allow dahdi to start after Asterisk.
 
  -- Tzafrir Cohen <tzafrir at debian.org>  Tue, 10 Dec 2013 16:50:39 +0200
 
diff --git a/debian/patches/ignore_failed_channels.patch b/debian/patches/ignore_failed_channels.patch
new file mode 100644
index 0000000..c748daf
--- /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
+@@ -1159,12 +1159,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 f4203ce..d4726f3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -31,3 +31,4 @@ astdb_mans
 hyphen
 reenable
 freeradius-client
+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