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!
Created attachment 97701 [details, diff] spandsp-0.0.2_codecs.diff patch for codecs/Makefile put it into $FILESDIR/1.2.0/
Created attachment 97702 [details] spandsp-0.0.2_codec_g726.c Codec replacement put it into $FILESDIR/1.2.0/
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.
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. ;-)
ok, fixed it myself with an own ebuild. asterisk-spandsp_codec_g726-0.0.2_pre26 installs the codec independently from the asterisk ebuild.