Commit Graph

25 Commits

Author SHA1 Message Date
Russell Bryant
63a37f4755 When serving dynamic content, include a Cache-Control header to instruct the
browsers to not store the resulting content.  
(issue #9621, reported by Pari, patch by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-30 15:25:31 +00:00
Russell Bryant
63ef5e53b0 Add "svgz" to the mimetypes table. (issue #9510, bkruse)
In passing, constify the elements of the mimetypes table.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-11 14:48:01 +00:00
Russell Bryant
706e448e28 File upload support was added to solve some needs for the Asterisk GUI.
However, after much discussion, it has been decided that adding this to 1.4 is
not in the best interests of the project.  It has been removed here, but will
remain in trunk.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-10 16:05:55 +00:00
Tilghman Lesher
86fc0a3c03 Fix --enable-dev-mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-08 14:12:00 +00:00
Russell Bryant
06ff84b549 To be able to achieve the things that we would like to achieve with the
Asterisk GUI project, we need a fully functional HTTP interface with access
to the Asterisk manager interface.  One of the things that was intended to be
a part of this system, but was never actually implemented, was the ability for
the GUI to be able to upload files to Asterisk.  So, this commit adds this in
the most minimally invasive way that we could come up with.

A lot of work on minimime was done by Steve Murphy.  He fixed a lot of bugs in
the parser, and updated it to be thread-safe.  The ability to check
permissions of active manager sessions was added by Dwayne Hubbard.  Then,
hacking this all together and do doing the modifications necessary to the HTTP
interface was done by me.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 20:58:43 +00:00
Russell Bryant
01b09027f7 Add the MIME type for gif by request from Pari
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-05 15:47:17 +00:00
Joshua Colp
27911f2128 Add svg mimetype for pari.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-21 18:08:57 +00:00
Kevin P. Fleming
690da7f074 this change was not needed; fclose() handles closing the file descriptor already
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-08 13:23:46 +00:00
Kevin P. Fleming
8a2e3d0b8b fix two cases where HTTP session file descriptors would not be closed
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-08 13:17:17 +00:00
Russell Bryant
cb03702de9 Add the Asterisk version information to the Server header in HTTP
responses.  (requested by Pari)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@55634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-20 20:26:06 +00:00
Russell Bryant
9aab046002 Merged revisions 53045 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r53045 | russell | 2007-01-31 15:25:11 -0600 (Wed, 31 Jan 2007) | 3 lines

Fix a bunch of places where pthread_attr_init() was called, but
pthread_attr_destroy() was not.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-31 21:32:08 +00:00
Russell Bryant
86f8e0a527 Fix setting the default port of 8088 on 64-bit or big-endian machines.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-23 21:52:52 +00:00
Jason Parker
c38c990bc7 saw this in passing... fix a small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-28 20:40:23 +00:00
Jason Parker
c2f688d2fd make the uris_lock a rwlock instead of a mutex lock - needs to be forward ported to trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-28 19:52:46 +00:00
Kevin P. Fleming
a299485952 since these variables all have static duration, none of them need initializers (they default to zero anyway)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 22:06:56 +00:00
Russell Bryant
395db9ea8b Implement locking for the list of URI handlers to make it thread-safe.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-23 20:22:52 +00:00
Tilghman Lesher
e05a2752e8 Reverse change of "show" to "list" and make several other commands more consistent with "category verb arguments"
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-02 23:00:20 +00:00
Luigi Rizzo
e6451274d2 merge 45152 don't leak descriptors in http.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 08:34:23 +00:00
Luigi Rizzo
4280d28549 merge from trunk: move ast_variables_destroy() to a better
place in handle_uri() to avoid leaking memory on non existing files.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-18 04:09:50 +00:00
Luigi Rizzo
f24ec459b2 make sure sockets are blocking when they should be blocking.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-06 15:59:23 +00:00
Kevin P. Fleming
ff05bf15c8 update thread creation code a bit
reduce standard thread stack size slightly to allow the pthreads library to allocate the stack+data and not overflow a power-of-2 allocation in the kernel and waste memory/address space
add a new stack size for 'background' threads (those that don't handle PBX calls) when LOW_MEMORY is defined


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-04 19:47:22 +00:00
Jason Parker
fc60c151d3 After discussing this with other people, we decided we'd like to try to do this a little differently.
Stay tuned.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 19:58:09 +00:00
Anthony LaMantia
3f3402d69e 5240 update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 19:28:57 +00:00
Kevin P. Fleming
fcb999c01c merge qwell's CLI verbification work
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-18 19:54:18 +00:00
Kevin P. Fleming
0a27d8bfe5 merge new_loader_completion branch, including (at least):
- restructured build tree and makefiles to eliminate recursion problems
  - support for embedded modules
  - support for static builds
  - simpler cross-compilation support
  - simpler module/loader interface (no exported symbols)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:11:39 +00:00