Commit Graph

60 Commits

Author SHA1 Message Date
Christopher Rienzo 6a6b8ac350 Merge pull request #1804 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-12026 to master
* commit 'aaacaa19deb6ef764acdfabefb625f3ddc4e2324':
  FS-12026 [mod_http_cache] fix multichannel file download and play
  FS-12026 [mod_httapi] fix multichannel file download and play
2019-08-27 08:27:05 -05:00
Dragos Oancea aaacaa19de FS-12026 [mod_http_cache] fix multichannel file download and play 2019-08-27 11:30:05 +00:00
David Grant 7a4a988dcb FS-11993 [mod_http_cache][mod_smpp] fix gcc errors when building on rpi4 buster (strncpy to snprintf)
FS-11993 [mod_http_cache][mod_smpp] fix gcc errors when building on rpi4 buster (strncpy to snprintf)
2019-08-24 22:48:59 -05:00
Noah Mehl 15c4647c8c FS-11796: [mod_http_cache] Fixed file seek in mod_http_cache.c
Added missing http_cache_file_seek() and http_cache_file_seek file interface references.
2019-05-13 13:56:17 -04:00
Dragos Oancea 6258b721c9 FS-11482: [http_cache] set pre_buffer_datalen to 0 on handle (crashfix) 2019-02-15 10:36:46 -05:00
Christopher Rienzo 0ddab77e8b Merge pull request #1344 in FS/freeswitch from ~MATT_TELTECH/freeswitch:FS-10513-ssl-verifyhost to master
* commit '0ff8db6bf887ee06802dde1e1893b524c9f08a4f':
  FS-10513 [mod_http_cache] ignores ssl-verifyhost
2019-01-30 04:18:33 +00:00
Matt Williamson 0ff8db6bf8 FS-10513 [mod_http_cache] ignores ssl-verifyhost 2019-01-21 22:21:49 -05:00
lazedo 0eae20e530 FS-11610 [mod_http_cache] add video flag to http_cache 2019-01-14 16:31:49 +00:00
Andrey Volk 9b1d58653c FS-10365 [mod_http_cache] Add mod_http_cache to the windows build. 2017-06-03 01:01:08 +03:00
Richard Screene 6b5313ec37 FS-10156 [mod_http_cache] Return HTTP status code 2017-03-21 12:42:41 +00:00
Sergey Safarov df1ab07ca4 FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
Anthony Minessale 8101b337ec FS-9488 #resolve [Compile error mod_http_cache] 2016-09-07 16:55:44 -05:00
Mike Jerris 7bee958a51 FS-9457: fix code after decl error 2016-09-07 10:27:03 -04:00
Richard Screene 55978ba076 FS-9457 [mod_http_cache] Allow GET and PUT from Azure Blob Service
Only send final PUT on Azure profiles

Fix core dump when reading Azure key from environment variable

Improve interface between mod_http_cache and storage providers

Remove debug

Remove out-of-date TODO

Add new configuration to example

Changes arising from Christopher Rienzo's comments

Add function to pointers to the profile to allow for better integration with the storage providers.

Add function to pointers to the profile to allow for better integration with the storage providers

Remove old header file inclusion
2016-09-07 09:57:03 +01:00
Chris Rienzo f0a36960c7 FS-9315 [mod_http_cache] add support for video file formats 2016-07-01 13:09:51 -04:00
Chris Rienzo 86965a363d FS-9004 [mod_http_cache] set http get timeout on thread that is actively downloading with the value from the download-timeout configuration. 2016-04-01 11:08:00 -04:00
Chris Rienzo ff0cec80f1 FS-9004 [mod_http_cache] added download-timeout param to prevent http_get from waiting unbounded time for downloading to finish. Prevented prefetch threads from blocking if another thread is already downloading the same URL. 2016-04-01 10:38:16 -04:00
Anthony Minessale 550029b80e FS-8811 #resolve [FS 1.7 crashes intermittently] 2016-03-04 16:56:55 -06:00
Chris Rienzo 475df32a4b FS-8662 [mod_http_cache] don't block http_tryget while another thread is fetching the URL 2015-12-15 14:43:06 -05:00
Chris Rienzo 9e0f30c58b FS-8560 [mod_http_cache] add new parameter, connect-timeout
This is the maximum time to wait, in seconds, for the HTTP GET or PUT to connect.
If this value is not set or is set to 0, the default setting of 300 seconds is used.
2015-11-19 17:10:15 -05:00
Chris Rienzo df6a5315c1 FS-8549 [mod_http_cache] add support for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables in S3 profiles 2015-11-17 12:00:15 -05:00
Chris Rienzo d8d3db284c FS-7496 [mod_http_cache] lookup file extension from content-type if missing in URL 2015-04-30 16:06:19 -04:00
Brian West d29c2d74b6 FS-7496 #resolve strip url args after the file extension 2015-04-30 14:29:21 -04:00
Chris Rienzo 3cd481820e FS-7323 #resolve #comment [mod_http_cache] added http_remove_cache <url> API call to manually expire a cached URL.
Added {refresh=true} parameter that can be prefixed to URL to force refresh when using http:// https:// file formats or the http_get API.
Examples:
    http_remove_cache http://phono.com/audio/troporocks.mp3
    http_get {refresh=true}http://phono.com/audio/troporocks.mp3
    <action application="playback" data="{refresh=true}http://phono.com/audio/troporocks.mp3"/>
2015-02-25 09:43:38 -05:00
Chris Rienzo dd61232163 FS-6979 #resolve #comment mod_http_cache: added base-domain config to s3 profiles so mod_http_cache can access self hosted s3 compatible service.
Example configuration:

  <profiles>
    <profile name="s3">
       <!-- Credentials for AWS account. -->
       <aws-s3>
          <!-- 20 character key identifier -->
          <access-key-id><![CDATA[AKIAIOSFODNN7EXAMPLE]]></access-key-id>
          <!-- 40 character secret -->
          <secret-access-key><![CDATA[wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY]]></secret-access-key>
          <base-domain><![CDATA[example.com]]></base-domain>
       </aws-s3>
       <!-- Domains that this profile applies to -->
       <domains>
          <domain name="bucket.example.com"/>
          <domain name="bucket2.example.com"/>
       </domains>
    </profile>
  </profiles>
2014-11-13 10:20:02 -05:00
Chris Rienzo b60df39b96 mod_http_cache: fix configuration so that carriage returns or other whitespace is OK around S3 keys 2014-08-12 16:28:42 -04:00
Chris Rienzo c36e63026c mod_http_cache: CID 1025858: Thread deadlock (ORDER_REVERSAL) 2014-04-30 10:08:00 -04:00
Chris Rienzo cf04dd3e75 FS-6326 --resolve switch_core_hash_init_nocase changed and mod_http_cache wasn't updated 2014-03-09 11:31:00 -04:00
Anthony Minessale 804ef7709d change from sqlite hash to newly added one 2014-03-09 00:37:17 +05:00
Chris Rienzo 8ca287e97b FS-6218 --resolve 2014-02-13 09:18:41 -05:00
Chris Rienzo 9b4e967248 mod_http_cache: use case-insensitive domain to profile hash 2013-09-03 10:05:13 -04:00
Chris Rienzo dd6b8a828a mod_http_cache: added <domain> to <profile> configuration 2013-08-30 23:41:31 -04:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Chris Rienzo cac8536170 mod_http_cache: valgrind fixes 2013-06-24 22:19:54 -04:00
Chris Rienzo 83d7b60d74 mod_http_cache: forgot to add write to http_cache:// format 2013-05-21 09:27:39 -04:00
Chris Rienzo a0170bbdb2 mod_http_cache: added write file format 2013-05-20 11:18:40 -04:00
Chris Rienzo 8c8b2176d2 mod_http_cache: added native Amazon S3 support 2013-05-20 09:31:28 -04:00
Chris Rienzo 7af706113a FS-5221 --resolve set NOSIGNAL on http_get 2013-03-26 23:50:29 -04:00
Chris Rienzo a8cb98c7f9 mod_http_cache: added http_cache file format that won't conflict with mod_httapi. 2013-03-19 08:59:39 -04:00
Chris Rienzo f45fa08e15 mod_http_cache: add support for http/https formats if enable-file-formats is set to true in http_cache.conf. Don't load mod_httapi if you use this option 2013-03-18 17:58:51 -04:00
Christopher Rienzo ac3e6ba140 Forgot to allow https on http_tryget 2012-07-17 14:29:36 +00:00
Stefan Knoblich fa03e4e0ca mod_http_cache: Remove DOS line-endings in http_put().
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-15 00:43:00 +02:00
Stefan Knoblich addcddc1ae mod_http_cache: Fix last remaining C99-style for loop.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-15 00:37:35 +02:00
Stefan Knoblich 445b74b765 mod_http_cache: Do not use C99-style for loops to fix non-debug builds.
Debug builds add -std=c99 (or -xc99 for suncc) to CFLAGS
(AX_CFLAGS_WARN_ALL_ANSI configure macro).

Non-debug builds do not invoke AX_CFLAGS_WARN_ALL_ANSI checks and
therefore won't have C99 support enabled, which breaks the build of
mod_http_cache due to "for (int i... )"-style C99 loops.

NOTE: AC_PROG_CC_C99 would make a lot of sense here and MSVC (2005)
accepts "for (int ...)" constructs too.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-14 12:43:36 +02:00
dschreiber d6c482e40f Added support for Content-Type and other optional headers when doing an HTTP PUT 2012-06-19 21:25:00 -07:00
Christopher Rienzo 187fe4e14e update name/e-mail address 2012-06-11 13:05:29 +00:00
Christopher Rienzo be2ec29282 Add Maintainer to mod_posix_timer, mod_unimrcp, mod_http_cache 2012-05-31 13:24:24 +00:00
Christopher Rienzo 4178393a73 fix bug with max-age 2012-04-25 01:30:47 +00:00
Christopher Rienzo d79982e72c added SSL support to mod_http_cache 2012-04-25 00:18:56 +00:00
Ken Rice c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00