Summary: | ASTERISK-00587: Unexpected freqency 16000 (Unable to playback() gsm prompt) | ||
Reporter: | philipp2 (philipp2) | Labels: | |
Date Opened: | 2003-11-27 16:36:30.000-0600 | Date Closed: | 2004-09-25 02:49:15 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) press-1-press-2.wav | |
Description: | Playback of a gsm file failes with codec ulaw (tested with X-Lite (SIP), ip10 (MGCP) and ISDN BRI). Playback works with codec gsm and X-Lite. The original wav files was converted to gsm using sox. I hope this is not a sox issue... if need be I can also provide my resulting gsm file ****** ADDITIONAL INFORMATION ****** [log] Nov 27 22:38:22 WARNING[383228]: File format_wav.c, Line 156 (check_header): Unexpected freqency 16000 Nov 27 22:38:22 WARNING[383228]: File file.c, Line 379 (ast_filehelper): Unable to open fd on press-1-press-2 Nov 27 22:38:22 WARNING[383228]: File file.c, Line 725 (ast_streamfile): Unable to open press-1-press-2 (format ULAW): No such file or directory [sox paramters used for converting] for i in *.wav; do sox $i -r 8000 `basename $i .wav`.gsm resample -ql; done [format_wav.c] if (read(fd, &freq, 4) != 4) { ast_log(LOG_WARNING, "Read failed (freq)\n"); return -1; } if (ltohl(freq) != 8000) { ast_log(LOG_WARNING, "Unexpected freqency %d\n", ltohl(freq)); return -1; } /* Ignore the byte frequency */ if (read(fd, &bysec, 4) != 4) { ast_log(LOG_WARNING, "Read failed (BYTES_PER_SECOND)\n"); return -1; } [wav file to be converted: see attached file] | ||
Comments: | By: Brian West (bkw918) 2003-11-27 17:09:26.000-0600 1. You converted it wrong. asterisk brian # file 1-press-2.wav 1-press-2.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz 2. the proper syntax for sox is: sox infile.wav -r 8000 -c 1 outfile.gsm Do not put 16000hz files in the sounds directory. By: philipp2 (philipp2) 2003-11-27 17:48:23.000-0600 Outch... I feel ashamed... ;-> By: philipp2 (philipp2) 2003-11-27 17:52:30.000-0600 However, the funny thing is that the same problem persists if I convert as you suggested... By: philipp2 (philipp2) 2003-11-27 17:57:09.000-0600 Ok, now I got it: I left the original .wav files lying in the same dir as the converted .gsm files. Obviously * first takes a look at the wav files before considering .gsm... By: Brian West (bkw918) 2003-11-27 19:18:09.000-0600 Yes * will always choose the wave over the GSM! :) |