Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148580 - net-misc/asterisk - patch for broken G.726-32 codec
Summary: net-misc/asterisk - patch for broken G.726-32 codec
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: voip herd (OBSOLETE)
URL: http://www.soft-switch.org/downloads/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-21 15:37 UTC by Stefan Briesenick (RETIRED)
Modified: 2006-10-07 16:13 UTC (History)
0 users

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


Attachments
spandsp-0.0.2_codecs.diff (spandsp-0.0.2_codecs.diff,530 bytes, patch)
2006-09-21 15:38 UTC, Stefan Briesenick (RETIRED)
Details | Diff
spandsp-0.0.2_codec_g726.c (spandsp-0.0.2_codec_g726.c,10.71 KB, text/plain)
2006-09-21 15:39 UTC, Stefan Briesenick (RETIRED)
Details
asterisk-1.2.11.ebuild.diff (asterisk-1.2.11.ebuild.diff,1.02 KB, patch)
2006-09-21 15:41 UTC, Stefan Briesenick (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Briesenick (RETIRED) gentoo-dev 2006-09-21 15:37:09 UTC
Hi!

unfortunately Asterisk's G.726-32 is completely broken. I tried it with many providers and also with my SPA-941 SIP-Phone. The only thing you get is an ugly loud noise.

But there's an easy fix: spandsp implements a fully compliant G.726 codec (with all supported bitrates 48/32/24/16 Kbit). On the spandsp homepage you can find a replacement for codec_g726.c which basically just uses the spandsp implementation and links the resulting codec_g726.so against spandsp.

I've tested it and it works GREAT! :-)

I'll attach all the things needed to add this feature easily to the current asterisk-1.2.0.ebuild

please add it ASAP! I need G.726-32 urgently. It sounds as good as alaw/ulaw but needs only half the bandwidth.

thanks!
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2006-09-21 15:38:39 UTC
Created attachment 97701 [details, diff]
spandsp-0.0.2_codecs.diff

patch for codecs/Makefile
put it into $FILESDIR/1.2.0/
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2006-09-21 15:39:58 UTC
Created attachment 97702 [details]
spandsp-0.0.2_codec_g726.c

Codec replacement
put it into $FILESDIR/1.2.0/
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2006-09-21 15:41:38 UTC
Created attachment 97703 [details, diff]
asterisk-1.2.11.ebuild.diff

patch for asterisk-1.2.11.ebuild
I added a new 'spandsp' USE-flag for it.
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2006-09-21 15:44:39 UTC
ok, some final words.

as most of the asterisk patches are in a tarball on gentoo-mirrors, you can also take the patches and put them into the tarball as well. The ebuild-patch has do be adapted then. But this should be no problem I guess. ;-)
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2006-10-07 16:13:10 UTC
ok, fixed it myself with an own ebuild.

asterisk-spandsp_codec_g726-0.0.2_pre26 installs the codec independently from the asterisk ebuild.