Summary: | ASTERISK-15676: [patch] CLI command 'core show codecs' does not display slin16 codec 0x8000 | ||
Reporter: | jlpedrosa (jlpedrosa) | Labels: | |
Date Opened: | 2010-02-23 05:53:47.000-0600 | Date Closed: | 2011-05-06 16:23:44 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/CodecInterface |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) M16885.diff | |
Description: | Hi all If you type 'core show codecs' does not display the codec slin16. i've been told from david55 at asterisk forum (http://forums.digium.com/viewtopic.php?f=1&t=73211) to post a bug of twaek severity also tolme the problem is here: From main/frame.c in 1.6.1.0 for (i=0;i<13;i++) { snprintf(hex,25,"(0x%x)",1<<i); ast_cli(a->fd, "%11u (1 << %2d) %10s audio %8s (%s)\n",1 << i,i,hex,ast_getformatname(1<<i),ast_codec2str(1<<i)); } Thanks Jose Luis Pedrosa this is the result *CLI> core show codecs Disclaimer: this command is for informational purposes only. It does not indicate anything about your configuration. INT BINARY HEX TYPE NAME DESC -------------------------------------------------------------------------------- 1 (1 << 0) (0x1) audio g723 (G.723.1) 2 (1 << 1) (0x2) audio gsm (GSM) 4 (1 << 2) (0x4) audio ulaw (G.711 u-law) 8 (1 << 3) (0x8) audio alaw (G.711 A-law) 16 (1 << 4) (0x10) audio g726aal2 (G.726 AAL2) 32 (1 << 5) (0x20) audio adpcm (ADPCM) 64 (1 << 6) (0x40) audio slin (16 bit Signed Linear PCM) 128 (1 << 7) (0x80) audio lpc10 (LPC10) 256 (1 << 8) (0x100) audio g729 (G.729A) 512 (1 << 9) (0x200) audio speex (SpeeX) 1024 (1 << 10) (0x400) audio ilbc (iLBC) 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551) 4096 (1 << 12) (0x1000) audio g722 (G722) 65536 (1 << 16) (0x10000) image jpeg (JPEG image) 131072 (1 << 17) (0x20000) image png (PNG image) 262144 (1 << 18) (0x40000) video h261 (H.261 Video) 524288 (1 << 19) (0x80000) video h263 (H.263 Video) 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video) 2097152 (1 << 21) (0x200000) video h264 (H.264 Video) | ||
Comments: | By: dant (dant) 2010-02-23 07:40:29.000-0600 Issue shouldn't be present in trunk as it loops the whole range but can confirm it is a problem in 1.6.0, 1.6.1 and 1.6.2... By: Clod Patry (junky) 2010-06-13 00:34:05 try this (tested with 1.6.2.8) By: Russell Bryant (russell) 2011-05-06 16:23:31 This is already fixed in 1.8 and trunk. |