224 Commits

Author SHA1 Message Date
Moises Silva
3eb27f970d Fix ESL infinite loop on handle_recv() when errno is already set
system calls do not clear errno, just set it in case of failure, so we
gotta make sure the recv() syscall really failed by checking the return value
2014-02-01 01:40:45 +05:00
Jeff Lenk
3687892e91 FS-6010 VS2013 build changes 2013-12-21 16:50:09 -06:00
Anthony Minessale
eed2a7aa86 fix regression from recent refactor that causes infinite loop on unexpected disconnect 2013-11-22 04:53:49 +05:00
Jeff Lenk
86c63fb41d fix windows esl compile 2013-11-13 19:36:49 -06:00
Anthony Minessale
dfb5867766 fix build err 2013-11-14 01:38:10 +05:00
Anthony Minessale
9284a16237 cleanup ESL a little 2013-11-14 00:43:36 +05:00
Anthony Minessale
ea3aa83fd6 remove condition for mem leak 2013-11-12 12:33:44 -06:00
Anthony Minessale
0b3139301d update cc header 2013-09-18 05:21:11 +05:00
Anthony Minessale
0505879846 FS-5575 --resolve 2013-07-12 14:06:29 -05:00
Nathan Neulinger
543dc3caea make noexpandtab explicit in all vim modelines other than xml files
Conflicts:
	src/include/switch_core_media.h
	src/mod/endpoints/mod_sofia/sofia_media.c
	src/switch_core_media.c
2013-06-25 09:39:37 -05:00
Stefan Knoblich
4ed7cd977a esl: Don't abort the esl_listen() loop(s) if accept() returns with errno == EINTR
ivrd doesn't use sigaction + SA_RESTART for SIGCHILD. An exiting
child process will interrupt accept() in the parent to handle
the signal, which makes accept() return -1 (errno = EINTR) after
the sighandler function returns.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-06-07 05:42:45 +00:00
Anthony Minessale
50b68f2f85 add some device-state mechinism to FS to allow tracking of device-specific states where they may have more than one call from the same device 2013-06-05 11:19:53 -05:00
Travis Cross
5e7485ff20 Avoid dereferencing potential null value 2013-05-29 02:52:13 +00:00
Travis Cross
9ce4be3daa Remove assignment without effect 2013-05-29 02:52:05 +00:00
Travis Cross
83e33bb399 Handle potential malloc failure better 2013-05-29 02:51:51 +00:00
Travis Cross
58e48416be Add missing text editor local variable blocks 2013-05-29 02:50:03 +00:00
Travis Cross
00769c458f Fix unlikely memory leak in ESL 2013-05-29 02:48:59 +00:00
Travis Cross
f07e58d30f Handle a failure of strerror_r
This fixes the build on gcc-4.7.3.  The build was breaking with:

  error: ignoring return value of 'strerror_r', declared with attribute warn_unused_result [-Werror=unused-result]
2013-05-25 21:44:16 +00:00
William King
898a487443 Theoretical memory leak where if attr_init failed, then check would have still been malloc'd but not used. 2013-05-18 20:42:35 -07:00
William King
4192bf3370 Minor code cleanup. calling va_start without calling va_end doesn't leak does it? Either way, it's fixed now. 2013-05-18 20:15:14 -07:00
Jeff Lenk
dc2c11f13f FS-4768 initial add of vs2012 build support 2012-12-29 14:57:15 -06:00
Jeff Lenk
c7e8dce247 FS-4828 --resolve 2012-11-17 21:38:07 -06:00
Ken Rice
3c249b012e FS-4003 --resolve add IPv6 support to ESL client library, thanks to Steven Ayre 2012-11-01 22:39:16 +00:00
Anthony Minessale
50cd5c28f5 add originated_legs and originate_causes to A leg when present in an originate to detail the B leg data 2012-10-18 13:23:05 -04:00
Anthony Minessale
5b0115676c add void to declarations 2012-09-27 09:19:51 -05:00
Robert Jongbloed
cf0f483aab Assuming, just because it is MSVC, that the standard integers are not defined, is not correct. Need to test for define _STDINT as well as later versions of MSVC (>= VS2010) do have stdint.h 2012-09-27 10:16:14 +10:00
Anthony Minessale
03c981bf72 add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
Michael Jerris
4ff9b2f102 revert fb2ffbafe29beaf5c2b148e0131307e8569886ef 2012-09-24 15:38:06 -04:00
Travis Cross
fb2ffbafe2 Add configure flags to moderate the ClueCon nags
The default remains the same: we show the huge ClueCon nag banner on
startup and in fs_cli.

However, if you pass --disable-huge-cluecon-nag, no banner will be
shown.

If you pass --enable-modest-cluecon-nag, a modest text-based ClueCon
reminder will be shown instead.
2012-09-23 07:49:26 +00:00
Jeff Lenk
6b8e177c58 fix strange code analysis error 2012-09-14 14:55:52 -05:00
Jeff Lenk
2e9b4c23de FS-4618 --resolve 2012-09-14 07:38:03 -05:00
Anthony Minessale
5a956890af update json lib in core and ESL and re-apply old patches 2012-09-13 12:54:31 -05:00
Jeff Lenk
d8fc88ea75 FS-4605 --resolve 2012-09-10 19:34:04 -05:00
Anthony Minessale
7d38669801 fix wrong len in ESL sendMSG method 2012-08-28 12:04:50 -05:00
Anthony Minessale
f454b79b9b fix color coding to be OS appropriate 2012-08-16 13:04:33 -05:00
Jeff Lenk
2dda038ba0 FS-4416 -- resolve 2012-07-15 21:52:02 -05:00
Anthony Minessale
2aebe2456f first pass on some new stuff 2012-07-11 15:15:50 -05:00
Anthony Minessale
27155bcb71 come to ClueCon its in one month 2012-07-10 12:05:26 -05:00
Anthony Minessale
163fffb3e8 fix issue with threaded ivrd, forking is back by default but threaded can be chosen with -t; in both modes the fd number is not passed as the first arg to the program but in threaded mode the stdin will no longer be mapped to the socket you will have to get the first command line arg instead of fileno stdin 2012-05-03 13:13:48 -05:00
Ken Rice
7a147e4762 Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
Anthony Minessale
a40f304990 ESL-45 --resolve 2012-04-10 16:11:36 -05:00
Anthony Minessale
c41a16d4da shutdown socket before closing to avoid blocking 2012-04-05 14:28:01 -05:00
Jeff Lenk
da36d1f57f FS-3953 --resolve 2012-02-28 08:38:45 -06:00
Anthony Minessale
23645b6af2 comment assert for windows 2012-02-27 16:49:12 -06:00
Jeff Lenk
24288832b1 FS-2216 partial with renaming 2012-01-08 14:19:16 -06:00
Anthony Minessale
dfb2dfd29e umm ya, the thread stack size is in bytes not kbytes 2011-12-20 17:14:38 -06:00
Anthony Minessale
0a8e6129d8 change default stacksize 2011-12-20 10:37:15 -06:00
Stefan Knoblich
cc083ccddb [libesl] Make sure esl event buffer array subscript ist within bounds [0, sizeof(buffer)-1].
cc1: warnings being treated as errors
  libs/esl/src/esl.c: In function "esl_recv_event":
  libs/esl/src/esl.c:1190: error: array subscript is above array bounds
  libs/esl/src/esl.c:1227: error: array subscript is above array bounds

Clamp handle_recv() return value to safe values.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-12-19 20:39:51 +01:00
Marc Olivier Chouinard
442f4d2522 FS-3766 --resolve 2011-12-16 07:35:05 -05:00
Marc Olivier Chouinard
58ccbe567c ESL-58 --resolve
Please Windows user test this one out.
2011-12-15 23:02:10 -05:00