Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337297 - net-misc/asterisk-1.6.2.11-r1 - DAHDIRAS doesn't work unless asterisk runs as root
Summary: net-misc/asterisk-1.6.2.11-r1 - DAHDIRAS doesn't work unless asterisk runs as...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL: https://issues.asterisk.org/view.php?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 16:17 UTC by Jaco Kroon
Modified: 2010-09-16 17:29 UTC (History)
1 user (show)

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


Attachments
ast_no_root_dahdiras.diff (ast_no_root_dahdiras.diff,328 bytes, patch)
2010-09-16 10:25 UTC, Jaco Kroon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2010-09-14 16:17:48 UTC
Details at the URL.  Basically asterisk's app_dahdiras passes plugin dahdi.so which isn't legal for pppd unless the invoker (asterisk) is root.

Workaround described at Digium issue.

Just having this open so that I can remember to implement something sane for gentoo in spite of what happens upstream.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jaco Kroon 2010-09-16 09:15:34 UTC
Chainsaw - sane in this case is difficult - would a simple patch that comments out (removes) the two lines that causes the problem be sufficient?  I'll happily write a blog entry on the basics of making it work that you can reference.
Comment 2 Jaco Kroon 2010-09-16 10:25:00 UTC
Created attachment 247587 [details, diff]
ast_no_root_dahdiras.diff

This is the sanest thing I can come up with.  Further instructions on setting this up at http://jkroon.blogs.uls.co.za/it/voip/using-asterisk-as-a-ras-server.

I hope this is in order.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2010-09-16 17:29:54 UTC
+*asterisk-1.6.2.13-r1 (16 Sep 2010)
+
+  16 Sep 2010; <chainsaw@gentoo.org> +asterisk-1.6.2.13-r1.ebuild,
+  +files/1.6.2/asterisk-1.6.2.13-backport-bri-net-ptmp.patch,
+  +files/1.6.2/asterisk-1.6.2.13-dahdiras-without-root.patch,
+  +files/1.6.2/asterisk-1.6.2.13-iax2-peerstate.patch,
+  +files/1.6.2/asterisk.logrotate2:
+  Add peerstatus to IAX2, closes bug #330135. Correct rotate keyword in
+  logrotate file, closes bug #336066. Add USE="doc", closes bug #331613.
+  Invoke DAHDIRAS differently so non-root works, closes bug #337297.
+  Backported bri_net_ptmp from 1.8 branch, closes bug #337591. Many thanks
+  to Jaco Kroon for all these bugfixes & improvements.