Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230561 - Ebuild for zaptel/dahdi
Summary: Ebuild for zaptel/dahdi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-02 19:15 UTC by Sven Schwyn (svoop)
Modified: 2009-03-11 19:05 UTC (History)
3 users (show)

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


Attachments
udev rules for dahdi (90-dahdi.rules,323 bytes, text/plain)
2008-11-17 11:20 UTC, Jaco Kroon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Schwyn (svoop) 2008-07-02 19:15:43 UTC
Please post patches and new ebuilds for zaptel/dahdi to this bug.

Note: The name of this driver is zaptel up until 1.x versions. From 2.0 forward it will be called dahdi due to copyright issues with the name.

http://blogs.digium.com/2008/05/19

Reproducible: Always

Steps to Reproduce:




Bug #224907 is a duplicate and can be closed.
Comment 1 Sven Schwyn (svoop) 2008-07-02 19:38:36 UTC
Version bump to zaptel-1.4.11 in VoIP Overlay (r699).
Features new USE flag echpec (support for commercial HPEC echo chanceller).
Tested on amd64 only.
Comment 2 Sven Schwyn (svoop) 2008-07-07 08:38:14 UTC
Revision zaptel-1.4.11-r1 in VoIP Overlay (r702).
The HPEC echo chanceller is now enabled by the init script if present.
Comment 3 xiando 2008-07-08 16:27:32 UTC
1. emerge net-misc/zaptel-1.4.11-r1 (and asterisk)
2. modprobe ztdummy
3. You will now have the /dev/zap/pseudo is created with permissions 
crw-rw---- 1 root dialout 196, 255 Jul  8 18:09 /dev/zap/pseudo

Meetme and other technology which requires the "pseudo device" will now FAIL with the error "build_conf: Unable to open pseudo device".

This is because the asterisk is running as user "asterisk" and this user does NOT have access to the /dev/zap/pseudo technology.

Quick fix: Add asterisk to group dialout.

Personally preferred fix: ebuild should create /dev/zap/pseudo be 0wned by root:asterisk

Non-helpfull cries for help: http://forums.digium.com/viewtopic.php?p=65497
Comment 4 Sven Schwyn (svoop) 2008-07-08 17:09:44 UTC
Zaptel is not exclusively used by Asterisk but also by other ebuilds such as CallWeaver, therefore any devices created by Zaptel should use generic users and groups - in this case root:dialout. IMHO using root:asterisk instead is not the way to go, better change the Howtos out there:

> Quick fix: Add asterisk to group dialout.

Sounds like a good and consisten solution to me. Any comments?
Comment 5 sargun dhillon 2008-10-04 23:35:13 UTC
This will need to replace zaptel once kernel 2.6.26 is stabilized as zaptel doesn't support 2.6.26. 
Comment 6 Jaco Kroon 2008-10-31 11:01:10 UTC
dahdi compiles on x86, can we please get the ~x86 keyword in there?  Got it running successfully here on x86.
Comment 7 Thomas Stein 2008-11-07 12:43:19 UTC
The devices installed by dahdi are owned by root:root. Thats not what asterisk wants i guess. Had to do a chown root:dialout and add group write access to those devices. No i am able to use dahdi as dummy device for app_meetme.
Comment 8 Jaco Kroon 2008-11-17 11:20:23 UTC
Created attachment 172077 [details]
udev rules for dahdi

The dahdi ebuild installs a bunch of nodes in /dev/dahdi, however, upon reboot these goes away (power failure), which is obviously no good.  The attached file creates the appropriate files and sets the group to asterisk so that asterisk can actually gain access to the files.

The default is for udev to create device nodes such as /dev/dahdi1 /dev/dahdictl etc ... just a missing / can cause a lot of trouble.  My system works correctly with the attached file in /etc/udev/rules.d/
Comment 9 Jaco Kroon 2009-02-21 09:20:12 UTC
Hi, two more comments:

1.  /etc/init.d/dahdi does NOT actually load the modules listed in /etc/dahdi/modules.  Just misleading, I load them from /etc/modules.autoload.d/kernel-2.6 anyway.

2.  /etc/init.d/dahdi should check for the existance of /etc/fxotune.vals and if it exists (presuming dahdi_cfg was successful) execute fxotune -s.
Comment 10 Jaco Kroon 2009-03-01 08:04:06 UTC
Please version bump for dahdi-2.1.0.4 (fixes kernel panic).
Comment 11 Sven Schwyn (svoop) 2009-03-02 08:36:26 UTC
(In reply to comment #10)
> Please version bump for dahdi-2.1.0.4 (fixes kernel panic).

I'll do it this evening, sorry for the delay. 
Comment 12 Sven Schwyn (svoop) 2009-03-03 01:13:53 UTC
> I'll do it this evening, sorry for the delay. 

Argh, I can't to the version bump as I'm on the road this week and I forgot to take the svn password along. However, it compiles okay on my amd64.

Can somebody else do the bump? (Otherwise I can do it - yet not before Sunday.) Thanks! 
Comment 13 Sven Schwyn (svoop) 2009-03-06 12:02:42 UTC
Version bump to dahdi 2.1.0.4 as of r796.
Comment 14 Tony Vroon (RETIRED) gentoo-dev 2009-03-11 19:05:12 UTC
To confirm, the Svoop & Rambaldi ebuild from the overlay has made it into the main tree. As such, this bug is now resolved. Any comments/fixes for the in-tree ebuild go in a new bug please.
Thank you for your contribution to the VoiP overlay and Gentoo Linux itself.