894 Commits

Author SHA1 Message Date
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
Chris Rienzo
89b4b0c4ea mod_rayo: fix nested join to calls and conferences 2014-08-28 13:16:55 -04:00
Brian West
f4a04e65f2 FS-6735 2014-08-22 16:39:52 -05:00
Anthony Minessale
7e08d2123d FS-6663 #resolve 2014-07-22 02:05:32 +05:00
Chris Rienzo
3df080a79f FS-6447 #close SUBSCRIBER_ABSENT also needs handling. Thanks to Ben Langfeld. 2014-07-16 13:21:19 -04:00
Brian West
e1d814b7e7 FS-6565 2014-07-09 07:45:55 -05:00
Brian West
99d0f134e7 FS-6566 2014-07-09 07:44:37 -05:00
Travis Cross
7741f403f1 Handle SRTP_READ_ERROR in mod_rayo 2014-06-28 06:42:57 +00:00
Travis Cross
63351a1061 Terminate format_cdr json files with newline
In UNIX, text files by definition end with a newline.
2014-06-25 23:30:54 +00:00
Travis Cross
d5fa28417e Allow setting format of log filename in format_cdr
This commit allows you to set a `log-file` string parameter in a
format_cdr profile.  This string is a template that may (and should!)
contain variables.  This template will be expanded and used as the
file name of the CDR to be written.  This parameter should contain
only the template for the file name itself; the path is relative to
the `log-dir`.
2014-06-25 23:22:34 +00:00
Seven Du
6540068faa fix compiler warning 2014-06-24 09:10:34 +08:00
Chris Rienzo
3c7c167581 mod_rayo: improved idle detection- call is idle only if no active components and not joined 2014-06-16 14:39:17 -04:00
Chris Rienzo
633dfe2a56 FS-6535 mod_rayo: close recognizer when input component is complete 2014-06-13 12:34:19 -04:00
Chris Rienzo
1511fe3ee8 mod_rayo: rework component inheritance- component now inherits parent call/mixer mutex and parent reference counting moved to base class 2014-06-13 12:16:26 -04:00
Chris Rienzo
730d2f88ba mod_rayo: rename reference counting functions to something more sensible 2014-06-13 11:33:33 -04:00
Chris Rienzo
9aa5102142 FS-6535 mod_rayo: compile error 2014-06-13 10:08:49 -04:00
Chris Rienzo
4c54f45f4a FS-6535 mod_rayo: allow unimrcp recognizer w/ profile specified 2014-06-13 10:05:53 -04:00
Chris Rienzo
c82ac3afbf FS-6535 mod_rayo: fix double lock on speech detection failure 2014-06-12 23:24:35 -04:00
Chris Rienzo
bb6869b7ab FS-6535 --resolve mod_rayo: allow multiple grammars (including dtmf) when using unimrcp 2014-06-12 22:56:34 -04:00
Chris Rienzo
48483452d2 mod_rayo: remove code that is no longer needed 2014-05-27 10:22:18 -04:00
Chris Rienzo
ed2351e048 mod_rayo: http_put of received fax was broken 2014-05-27 09:15:22 -04:00
Tamas Cseke
e6e0deba54 Fix erlang deadlock
Release session R/W Lock
2014-05-20 10:13:38 +02:00
Tamas Cseke
ea78f4d0e8 Fix race in erlang process spawning
We received the reply and signaled the condition
earlier then started to wait for it
2014-05-19 14:47:39 +02:00
Travis Cross
b263201a2e Avoid polluting CFLAGS for mod_snmp
Putting `net-snmp-config --cflags` into CFLAGS causes major pollution;
it overrides optimization and debugging levels, warnings, and more.
While normally we do want to automatically locate library headers,
there has to be a better way to do this.  libsnmp is normally in the
usual place and doesn't need special handling.  Perhaps people with
libsnmp in a weird place should just need to add the -I flag to their
CFLAGS before build.
2014-05-13 17:40:43 +00:00
Travis Cross
94ec447e0d Cleanup makefile library dependencies of mod_snmp
Calling out to net-snmp-config --agent-libs causes transitive
dependencies to get pulled in, but we don't need those -- a sensible
dynamic linker pulls those in automatically.  Trying to track the
transitive dependencies manually would be a losing battle.

People were recently hitting this on Debian sid/jessie, where libpci
is in the transitive dependency list but isn't otherwise one of our
build dependencies.
2014-05-13 17:27:46 +00:00
Chris Rienzo
c4f38f8d0d CID: 1211940 mod_rayo - unlikely dereference of NULL pointer 2014-05-08 12:11:15 -04:00
Chris Rienzo
42108871c9 CID: 1211941 mod_rayo - unlikely dereference of NULL pointer 2014-05-08 12:10:01 -04:00
Chris Rienzo
17848d26be CID: 1211943 mod_rayo - removed dead code when changing output speed 2014-05-08 12:03:28 -04:00
Chris Rienzo
a72137d4ae CID: 1211944 mod_rayo - remove set of unused pointer 2014-05-08 11:47:38 -04:00
Chris Rienzo
58fea2544b CID: 1211946 mod_rayo - dead code after switch statement 2014-05-08 11:36:05 -04:00
Chris Rienzo
873acb2975 CID: 1211947 mod_rayo - allocated array with unsigned char * element size instead of unsigned char 2014-05-08 11:33:27 -04:00
Chris Rienzo
4f4fb9e942 CID: 1211951 mod_rayo - fix unlikely dereference of null pointer 2014-05-08 11:30:53 -04:00
Chris Rienzo
84eb4a0404 mod_rayo: re-added Makefile for iks helpers unit tests 2014-05-08 11:16:02 -04:00
Chris Rienzo
d7d4625866 mod_rayo: re-added Makefile for srgs unit tests 2014-05-08 11:14:20 -04:00
Chris Rienzo
752f7956f9 mod_rayo: fix compiler error to nlsml.c from attempted coverity fix 2014-05-08 11:10:42 -04:00
William King
ee6f3da9ff CID: 1211948 fix memory leak of decoded iks message in function parse_plain_auth_message in mod_rayo 2014-05-07 00:44:54 -07:00
William King
2a50bbba68 CID: 1211950 fix memory leak of iksparser in function nlsml_parse in mod_rayo 2014-05-07 00:37:32 -07:00
Michael Jerris
942215637a make sure receive buffer is always null terminated 2014-04-30 13:49:58 -04:00
Chris Rienzo
25c9b6196b mod_rayo: preserve old caller ID behavior if display name is not given 2014-04-22 13:30:15 -04:00
Chris Rienzo
1eab82ba2d mod_rayo: relax recent caller ID restrictions a bit 2014-04-22 08:50:50 -04:00
Seven Du
37ee4299fb fix compiler warning 2014-04-17 14:58:18 +08:00
Chris Rienzo
ae69c5a7b0 FS-6407 --resolve mod_rayo: support SIP URI caller ID w/ display name 2014-04-15 14:27:49 -04:00
Chris Rienzo
e8078d8aef mod_rayo: clean up module hashes on shutdown 2014-04-14 12:01:31 -04:00
Chris Rienzo
b0c2c6d67c FS-6447 --resolve return subscriber-absent platform-code 20 if <dial> is attempted to user that is not registered 2014-04-14 09:47:41 -04:00
Travis Cross
2dba7dd367 Avoid leaking memory on mod_cdr_sqlite unload 2014-04-12 06:59:02 +00:00
Chris Rienzo
a86623972d mod_rayo: fixed input crash introduced in 2014-04-07 commit 2014-04-10 10:20:47 -04:00
Chris Rienzo
264a12a4af mod_rayo: fix memory corruption in dial, input, output 2014-04-07 12:37:39 -04:00
Anthony Minessale
7151d6acea FS-6402 part 2 2014-04-02 03:21:37 +05:00
Anthony Minessale
5c0cff70b3 FS-6402 --resolve 2014-04-02 01:20:19 +05:00
Chris Rienzo
0b9e5c82a5 FS-6402 mod_rayo/mod_ssml: add mutex to hashes now that iteration is no longer thread-safe 2014-03-24 17:03:33 -04:00