[asterisk-dev] Request for new MIME type in asterisk webserver

Tim Panton tim at mexuar.com
Wed Mar 21 14:42:08 MST 2007


On 21 Mar 2007, at 18:49, Steven Critchfield wrote:

> On Wed, 2007-03-21 at 16:45 +0000, Tim Panton wrote:
>> On 21 Mar 2007, at 14:59, Pari Nannapaneni wrote:
>>
>>> Hi all,
>>> Can some one please add the following mime type in asterisk  
>>> webserver.
>>>
>>> http.c
>>> -------
>>>   mimetypes[] = {
>>>         { "png", "image/png" },
>>>         { "jpg", "image/jpeg" },
>>>         { "js", "application/x-javascript" },
>>>         { "wav", "audio/x-wav" },
>>>         { "mp3", "audio/mpeg" },
>>> +        { "svg", "image/svg+xml" },
>> and
>> 	{"jar","application/java-archive"}
>
> mmm, Wouldn't all this be better served by using the mime information
> that should be installed on your system already?
>
> Maybe that should be the proper feature request. Read and properly  
> parse
> the /etc/mime.types file. This way feature adds do not require code
> changes.

I kinda agree, but there is a bit of special pleading here, with this  
patch,
you can use my playGSM.jar to listen to gsm voicemail in a web  
browser - it least in
theory.

Tim

> -- 
> Steven Critchfield <critch at basesys.com>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev

Tim Panton

www.mexuar.net
www.westhawk.co.uk/





More information about the asterisk-dev mailing list