[asterisk-bugs] [Asterisk 0014936]: Problem in iLBC Source Fetch Script on FreeBSD

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 22 04:20:51 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14936 
====================================================================== 
Reported By:                leobrown
Assigned To:                mvanbaak
====================================================================== 
Project:                    Asterisk
Issue ID:                   14936
Category:                   Codecs/codec_ilbc
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.6.0.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-04-20 06:47 CDT
Last Modified:              2009-04-22 04:20 CDT
====================================================================== 
Summary:                    Problem in iLBC Source Fetch Script on FreeBSD
Description: 
As of Asterisk 1.6.0.1 (the furthest back i've tried), the ilbc source
fetch script is broken on FreeBSD (does not strip out RFC
headers/comments). Removing the 'sed' line that is supposed to remove \r
allows source to be compiled without hitch.
====================================================================== 

---------------------------------------------------------------------- 
 (0103609) leobrown (reporter) - 2009-04-22 04:20
 http://bugs.digium.com/view.php?id=14936#c103609 
---------------------------------------------------------------------- 
Right well this is a POSIX/Win32 linebreak issue, hence the removal of \r
(0x0D) windows 'carriage return'.

The problem here is that \r isn't recognised by sed on BSD as an escape
character.

Unix2dos/dos2unix utilities are designed to manage this but aren't core on
many nix implementations.

However.. `tr` I believe is deployed on all installations. The syntax is:

  wget -q -O - http://www.ilbcfreeware.org/documentation/extract-cfile.awk
| tr -d '\r'

What do you think? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-22 04:20 leobrown       Note Added: 0103609                          
======================================================================




More information about the asterisk-bugs mailing list