[asterisk-bugs] [Asterisk 0012198]: Make Asterisk-trunk handle 'prefix' in httpd.conf as 1.4 does.

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Mar 31 18:03:11 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12198 
====================================================================== 
Reported By:                bkruse
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12198
Category:                   Core/HTTP
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 107998 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-12-2008 12:00 CDT
Last Modified:              03-31-2008 18:03 CDT
====================================================================== 
Summary:                    Make Asterisk-trunk handle 'prefix' in httpd.conf as
1.4 does.
Description: 
In Asterisk 1.4, including BE and builds on the AA50, if the 'prefix'
variable in http.conf is not set, then that means there is no prefix.

(For example http://bkruse/static/config/cfgbasic.html)

And if prefix=testing, the above example would be:

http://bkruse/testing/static/config/cfgbasic.html

By default, in all places, we do NOT set a prefix. We do this so the link
will be shorter, easier to remember, and not easily changed. That is just
how it is.

In Trunk, however, if prefix is NOT set in http.conf, then the
ast_http_post_mapping to /var/lib/asterisk/static-http/config is never made
because it return's NULL, as seen here:

        if (!ast_strlen_zero(prefix) && strncmp(prefix, uri,
strlen(prefix))) {
                ast_debug(1, "URI %s does not have prefix %s\n", uri,
prefix);
                return NULL;
        }


====================================================================== 

---------------------------------------------------------------------- 
 russell - 03-31-08 18:03  
---------------------------------------------------------------------- 
I think twilson may have just fixed this ... 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-31-08 18:03  russell        Note Added: 0084817                          
======================================================================




More information about the asterisk-bugs mailing list