[asterisk-bugs] [Asterisk 0013426]: [patch] OpenH323 detection problem

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 10 13:56:22 CDT 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13426 
====================================================================== 
Reported By:                bamby
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   13426
Category:                   Channels/chan_h323
Reproducibility:            sometimes
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-09-05 01:32 CDT
Last Modified:              2008-09-10 13:56 CDT
====================================================================== 
Summary:                    [patch] OpenH323 detection problem
Description: 
The recognition procedure of the version of pwlib and openh323 includes
this construct:

    $2_VERSION=`grep "$2_VERSION" ${$2_INCDIR}/$3 | cut -f2 -d ' ' | sed
-e 's/"//g'`

and is designed to parse the following line:

    #define PWLIB_VERSION "1.12.0"

As you see the version is not second but third part of the line. Anyway
the above construct works fine in most cases because the first spacing
character is actually a tab. However in some cases the header file can
contain a whitespace (this for example occurs if pwlib has been built with
CFLAGS="-march=pentiumpro").

To make the detection procedure independent of the spacing character, the
tabs should be converted to spaces before further processing.

I'm attaching the patch against acinclude.m4 only so the 'configure'
script should be regenerated also.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-10 13:56 svnbot         Status                   assigned => resolved
2008-09-10 13:56 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list