[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
Wed Mar 12 13:32:43 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
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:                     assigned
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-12-2008 13:32 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;
        }


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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-12-08 13:32  Corydon76      Status                   new => assigned     
03-12-08 13:32  Corydon76      Assigned To               => russell         
======================================================================




More information about the asterisk-bugs mailing list