27452 Commits

Author SHA1 Message Date
Russell Treleaven
9d9feb647a make the tzfile header check look for "TZif" instead of "TZif2" 2014-09-05 07:07:46 -04:00
William King
5dfea663cd build fix for mod_xml_radius 2014-09-04 14:57:20 -07:00
William King
47b7c44db6 Fix a problem where radius channel variables were missing in mod_xml_radius 2014-09-04 14:29:35 -07:00
Travis Cross
c0ec552268 Set new cache_dir for debian 2014-09-04 21:09:46 +00:00
Travis Cross
ad9381218d Remove stray leading slashes
ref: commit ce96d95c5e5b29b3bcb69d6e5416f0bc6bfb88f7
2014-09-04 21:01:57 +00:00
Travis Cross
27e3b5b705 Name variable storage_dir
...rather than `storage`.

ref: commit ce96d95c5e5b29b3bcb69d6e5416f0bc6bfb88f7
2014-09-04 20:57:28 +00:00
William King
fddf44426f Fixing a typo in the radius accounting end condition configuration handling in mod_xml_radius 2014-09-04 13:48:50 -07:00
Travis Cross
57bd4eb9bd Add valet_park ... auto out ... to syntax string
FS-5992 #resolve
2014-09-04 20:40:53 +00:00
Michael Jerris
56e4afb209 FS-6595: Enable pause_play and file_seek for conference member fnode #resolve 2014-09-04 15:56:15 -04:00
Mike Jerris
60bfa54406 Merge pull request #34 in FS/freeswitch from ~RTRELEAVEN/fs-6773:fs-6773 to master
* commit 'a159b58790cf980df375faa5a55fb713faf257c5':
  fix missing "/" in path
  add support for cache directory make configs use specific directory variables instead of just base_dir so that one configuration can be used for fhs and legacy installations
2014-09-04 14:34:24 -05:00
Travis Cross
5c29d8d4fa Show gateway uptime in seconds
In `sofia status gateway ...` let's show the uptime in seconds rather
than in microseconds.  We'll output the uptime in microseconds in
`xmlstatus` and we'll label it as such.
2014-09-04 05:39:26 +00:00
Steven Ayre
93bd5833c2 Add uptime property to mod_sofia gateways
The 'UP' status indicates a gateway is online as determined by
registration and/or SIP OPTIONS pinging.

The time the gateway has been in the 'UP' status is recorded,
and can be monitored using 'sofia status' and 'sofia xmlstatus'.

This can be used to detect and graph when there are outages.

ref: FS-6772

Reviewed-by: Travis Cross <tc@traviscross.com>
2014-09-04 03:43:36 +00:00
Travis Cross
5fadb52758 Fix build on gcc-4.9
GCC doesn't like when variables that are set but never used.
2014-09-04 03:43:36 +00:00
Travis Cross
e79380c394 Catch more swig-generated files with gitattributes 2014-09-04 03:36:44 +00:00
Seven Du
a8522ff3c2 remove debug 2014-09-04 10:38:37 +08:00
Seven Du
a80f1d3524 swig all 2014-09-04 10:31:23 +08:00
Seven Du
b2554848a1 initial support of http handing in mod_verto 2014-09-04 10:25:27 +08:00
Seven Du
602e82d483 add param to let the socket stay open even if not websockt, thanks Anthony 2014-09-04 10:21:22 +08:00
Seven Du
1f26712330 swig hack 2014-09-04 10:13:45 +08:00
Seven Du
31f78d8cac add ability to read from a stream
do not use this unless you understand what you are doing and you want to take the risk,
you are warnned
2014-09-04 09:45:16 +08:00
Seven Du
f0b9407cca add http utils 2014-09-04 08:43:51 +08:00
Travis Cross
7d11e19983 Check for null hash or private while holding lock
What if the hash were destroyed by one thread holding the lock while
another thread was waiting for the lock?  The waiting thread would
have already checked that the hash was non-null and would proceed on
that assumption after acquiring the lock.

With this commit we check only after acquiring the lock.

ref: FS-6783
ref: FS-6775
2014-09-03 19:45:45 +00:00
Travis Cross
82a28e76e4 Re-fix memory leak
After consideration, this still looks correct.

Thanks-to: Anthony Minessale <anthm@freeswitch.org>

ref: FS-6783
ref: FS-6775
2014-09-03 19:44:43 +00:00
Travis Cross
8c0a1d17e2 Reintroduce memory leak in mod_hash to avoid crash
ref: commit 3e24b3e2c2b28cc672943e75b009377d33f1b01b
ref: FS-6783
ref: FS-6775
2014-09-03 18:16:11 +00:00
Michael Jerris
6146c5cb6b FS-3867: #resolve add special case for oracle alive query 2014-09-03 13:31:34 -04:00
Giovanni Maruzzelli
5c15e85ce4 mod_spandsp: added SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE on application errors 2014-09-03 15:52:50 +02:00
Anthony Minessale
1b612fecb6 FS-6757 FS-6713 #comment please try latest master that has a new patch in it to address this issue 2014-09-02 23:56:46 +05:00
Russell Treleaven
a159b58790 fix missing "/" in path 2014-09-01 08:50:51 -04:00
Russell Treleaven
ce96d95c5e add support for cache directory
make configs use specific directory variables instead of just base_dir
so that one configuration can be used for fhs and legacy installations
2014-08-31 20:22:08 -04:00
Travis Cross
acb439ca03 Avoid leaking memory while iterating hash tables
`switch_core_hash_first` allocates an iterator on each call that is
never freed except when the hash table is empty.

By using `switch_core_hash_first_iter` we allocate only one iterator,
and that iterator is freed after the last item is processed.
2014-08-30 03:49:51 +00:00
Travis Cross
75836b603f Suppress diff output for swig-generated files 2014-08-30 03:22:59 +00:00
Travis Cross
df559e0aac Add back goodness refactored out 2014-08-30 01:32:57 +00:00
Travis Cross
9481d9843c Fix comment spelling 2014-08-30 01:19:09 +00:00
Travis Cross
6f2eac6876 Fix comment spelling 2014-08-30 00:52:16 +00:00
Travis Cross
63f16425bd Refactor mod_hash limit_release_hash a bit 2014-08-29 21:44:04 +00:00
Brian West
3e24b3e2c2 FS-6775 #resolve 2014-08-29 09:55:00 -05:00
Chris Rienzo
89b4b0c4ea mod_rayo: fix nested join to calls and conferences 2014-08-28 13:16:55 -04:00
Travis Cross
1c058e0f45 Check gcc support for -Wno-unused-result
We're using -Wno-unused-result to work around what is arguably a GCC
bug, but this option is not supported on older GCC versions.  So on
those versions we won't pass -Werror either.

ref: commit b874048efcee4ea985cf9e5592d289ddef2df40a
2014-08-28 13:37:37 +00:00
Chris Rienzo
fa08c6b8db mod_unimrcp: remove some dead code and TODOs. Reworked error handling a bit to try and prevent stuck channel 2014-08-28 09:18:07 -04:00
Travis Cross
9dd7173b6e Avoid overaggressive chmod/chown on upgrade
It's reasonable for someone to change one or more of these directory
permissions after installation.  We shouldn't touch more than we need
on upgrade.  Each directory needs to be owned by the freeswitch user,
but past that we can leave discretion to the system administrator.
2014-08-28 12:24:44 +00:00
Travis Cross
dc88617c99 Lower log level of limit increases and releases
In some configurations where many limits are used, the limit increases
and releases were generating a lot of noise and making it harder to
see when limits were exceeded, which was at the same log level.
2014-08-28 01:40:36 +00:00
Travis Cross
5a209a9680 Remove misleading tport example from configs
As an example of using mod_sofia's gateway parameter `contact-params`
we'd used the value `tport=tcp`.  Looking around, it's clear this has
misled people into believing you can specify `tport=tcp` to make the
gateway use TCP or `tport=tls` to make the gateway use TLS.  This does
not work.

The actual contact parameter is named `transport` rather than `tport`,
and you shouldn't use `transport` in `contact-params` because we
automatically add a `transport` to the Contact: based on the value of
`register-transport` (even if the gateway is set to not register).

It's clear why this would be confusing, so we'll just remove this as
an example.
2014-08-27 23:15:45 +00:00
Brian West
1dc44067cd FS-6770 #resolve 2014-08-27 13:28:15 -05:00
Nathan Neulinger
2db039bc5f mod_skinny: FS-6720 - fix issue with SLA - had to do with answering in wrong state 2014-08-27 10:38:16 -05:00
Travis Cross
323a3d617c Avoid output of junk text by fs_cli
In some cases where `redisplay()` is called immediately after a
command is run (e.g. `log ...`) we often get a prompt, junk output,
and a second prompt.  This is due to a (known) race.

We believe we're falling afoul of this code in `el_deletestr`:

    if (el->el_line.cursor < &el->el_line.buffer[n])
            return;

Basing the length of text to delete off of the cursor position
resolves the issue of junk text, but the real solution is to eliminate
the race conditions, which will also resolve the sometimes duplicated
prompt.

FS-6764 #resolve

Thanks-to: Nathan Neulinger <nneul@neulinger.org>
2014-08-26 20:18:22 +00:00
Anthony Minessale
0f1494ae06 Improve conference recording 2014-08-26 09:52:55 -05:00
root
15d7706f8f clean up some injection issues in chat display 2014-08-25 18:42:07 -04:00
Mike Jerris
e627422f3d Merge pull request #29 in FS/freeswitch from ~ITALOROSSI/freeswitch:bugfix/FS-5522-add-switchname-xml-json-cdr to master
* commit 'd55505ce2a713a409a2a2d37f34893f7d1ccaf4f':
  Adding switchname to xml_cdr and json_cdr
2014-08-25 10:50:12 -05:00
root
1ecc2c0c49 tweak in login seq in verto 2014-08-25 04:29:22 +05:00
Brian West
f4a04e65f2 FS-6735 2014-08-22 16:39:52 -05:00