Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281467 - net-misc/asterisk-1.6.* - fxsks signalling with dahdi broken
Summary: net-misc/asterisk-1.6.* - fxsks signalling with dahdi broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Tony Vroon (RETIRED)
URL: https://issues.asterisk.org/view.php?...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2009-08-14 13:18 UTC by Jaco Kroon
Modified: 2009-10-22 14:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dahdi-fxsks-hookstate.patch (dahdi-fxsks-hookstate.patch,660 bytes, text/plain)
2009-08-14 13:19 UTC, Jaco Kroon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2009-08-14 13:18:24 UTC
Due to a bug in the DAHDI/asterisk interaction there is quite a large probability that after a reboot one will be unable to establish outbound calls after a reboot.  This is due to the fact that the hookstate was never ignored by asterisk but abused as a way of checking whether there is battery on the line or not, this check should in fact happen against the alarm state (which will be red if the line is down), and seeing that this check is already performed higher up in the code (for ISDN), the attached patch just kills off the code unless an explicit DAHDI_CHECK_HOOKSTATE define is set - which should never be set.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jaco Kroon 2009-08-14 13:19:52 UTC
Created attachment 201237 [details]
dahdi-fxsks-hookstate.patch

Applies cleanly with patch -p0 against all versions of asterisk 1.6.* as far as I can tell.  I just merged it against asterisk 1.6.1.1-r1 as in the tree.
Comment 2 Jaco Kroon 2009-08-31 20:14:58 UTC
bump.

Still required for 1.6.1.5, patch still applies cleanly.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2009-08-31 21:14:38 UTC
And upstream still isn't happy with your fix yet. Ping me when you've got your fix upstream and I'll carry it until it makes it into the next release.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2009-10-22 14:47:10 UTC
+*asterisk-1.6.1.6-r1 (22 Oct 2009)
+
+  22 Oct 2009; <chainsaw@gentoo.org> +asterisk-1.6.1.6-r1.ebuild,
+  +files/1.6.1/asterisk-1.6.1.6-fxsks-hookstate.patch,
+  +files/1.6.1/asterisk.initd, -asterisk-1.2.32.ebuild,
+  +files/1.6.1/asterisk-1.6.1.6-transfer-segfault.patch:
+  Revision bump. Init script now depends on dahdi, not zaptel (bug #279436).
+  FXO ports can now carry outbound calls immediately, without requiring an
+  inbound call first (bug #281467) and transferring queue calls no longer
+  segfaults. With thanks to Jaco Kroon. Troublesome H323 support removed due
+  to pwlib dependency in openh323 (bug #290065) and IMAP support removed as
+  it never worked right (bug #265567). Bug reports on either only accepted
+  with patches.