Summary: | ASTERISK-11068: Almost no codec translations present after compile of trunk version of Asterisk | ||
Reporter: | James Rothenberger (jaroth) | Labels: | |
Date Opened: | 2007-12-17 15:33:03.000-0600 | Date Closed: | 2007-12-21 14:09:34.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Codecs/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | If I check out a fresh trunk version of Asterisk and compile and install, I have only a few translations available, and not enough to even play the default gsm sounds distributed with Asterisk. Translation table is shown below in additional information. As you can see there is only ulaw<->alaw translation available (and slin<->ilbc). If I download and install a production version (1.4.15 for example) on the same server, translations show up normally (many more translations present). I can reproduce this on multiple servers. ****** ADDITIONAL INFORMATION ****** Translation times between formats (in microseconds) for one second of data Source Format (Rows) Destination Format (Columns) g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722 g723 - - - - - - - - - - - - - gsm - - - - - - - - - - - - - ulaw - - - 1 - - - - - - - - - alaw - - 1 - - - - - - - - - - g726aal2 - - - - - - - - - - - - - adpcm - - - - - - - - - - - - - slin - - - - - - - - - - 15997 - - lpc10 - - - - - - - - - - - - - g729 - - - - - - - - - - - - - speex - - - - - - - - - - - - - ilbc - - - - - - 3000 - - - - - - g726 - - - - - - - - - - - - - g722 - - - - - - - - - - - - - | ||
Comments: | By: Jason Parker (jparker) 2007-12-17 15:45:46.000-0600 Something is very fishy here - I just ran a core show translations, and the results were laughable - at best. I'm going to do some testing of this. By: Jason Parker (jparker) 2007-12-20 19:06:15.000-0600 Try as I might, I haven't been able to reproduce this (exact) problem. It would be very helpful if you could get more details. I would start in main/translate.c - perhaps put some debugging in the loop that iterates through translators. I think the function name is recalc_cost(). By: Niklas Larsson (pnlarsson) 2007-12-21 08:06:47.000-0600 I have the same issue and when starting asterisk i only get this in the log: [Dec 16 22:57:34] VERBOSE[2953] logger.c: app_zapscan.so => (Scan Zap channels application) [Dec 16 22:57:34] VERBOSE[2953] logger.c: == Registered translator alawtoulaw' from format alaw to ulaw, cost 1 [Dec 16 22:57:34] VERBOSE[2953] logger.c: == Registered translator ulawtoalaw' from format ulaw to alaw, cost 1 [Dec 16 22:57:34] VERBOSE[2953] logger.c: codec_a_mu.so => (A-law and Mulaw direct Coder/Decoder) [Dec 16 22:57:34] VERBOSE[2953] logger.c: == Registered translator 'ilbctolin' from format ilbc to slin, cost 20001 [Dec 16 22:57:34] VERBOSE[2953] logger.c: == Registered translator 'lintoilbc' from format slin to ilbc, cost 100006 [Dec 16 22:57:34] VERBOSE[2953] logger.c: codec_ilbc.so => (iLBC Coder/Decoder) [Dec 16 22:57:34] VERBOSE[2953] logger.c: == Registered file format g723sf, extension(s) g723|g723sf [Dec 16 22:57:34] VERBOSE[2953] logger.c: format_g723.so => (G.723.1 Simple Timestamp File Format) No more or less, no errors or so. And all the other codec's show up in module show like codec_ By: Digium Subversion (svnbot) 2007-12-21 14:09:34.000-0600 Repository: asterisk Revision: 94541 U trunk/codecs/codec_adpcm.c U trunk/codecs/codec_alaw.c U trunk/codecs/codec_g722.c U trunk/codecs/codec_g726.c U trunk/codecs/codec_gsm.c U trunk/codecs/codec_lpc10.c U trunk/codecs/codec_speex.c U trunk/codecs/codec_ulaw.c U trunk/codecs/codec_zap.c ------------------------------------------------------------------------ r94541 | qwell | 2007-12-21 14:09:34 -0600 (Fri, 21 Dec 2007) | 5 lines codecs.conf really shouldn't be mandatory.. it never had been before, so let's go back to being optional. A big "thank you" to pnlarsson on IRC for allowing me access to his system to debug this. Closes issue ASTERISK-11068. ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=94541 |