Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Anthony Minessale
4240526ce3
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:20:11 -05:00
Travis Cross
d7b139f3b4
Avoid dereferencing potential null value
2013-05-28 03:55:48 +00:00
Travis Cross
3217442d0e
Remove assignment without effect
2013-05-28 03:46:53 +00:00
Travis Cross
2dea51ad58
Handle potential malloc failure better
2013-05-28 03:40:58 +00:00
Travis Cross
ef13a63447
Fix unlikely memory leak in ESL
2013-05-28 03:01:49 +00:00
Travis Cross
8c37db140e
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 19:05:34 +00:00
Travis Cross
6d5018007b
Add missing text editor local variable blocks
2013-05-25 19:05:34 +00:00
Stefan Knoblich
cb9090dc93
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-05-23 02:07:55 +02:00
William King
b4209ca93b
Theoretical memory leak where if attr_init failed, then check would have still been malloc'd but not used.
2013-05-18 20:42:03 -07:00
William King
e2ea6e58c8
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:55 -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 fb2ffbafe2
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
Anthony Minessale
d05dcaaade
ok, windows... you missed the real err but you are still crying about this other one =/
2011-12-14 14:47:51 -06:00
Anthony Minessale
70a4ebd3fb
sorry windows...
2011-12-14 14:38:00 -06:00
Anthony Minessale
f7f9a43a40
use threading in testserver and ivrd
2011-12-14 12:16:09 -06:00
Jeff Lenk
34827a892c
fix fs_cli for windows after recent changes - may need more work
2011-09-26 09:15:12 -05:00
Anthony Minessale
7333d46d5b
add new chatplan concept and mod_sms. Apps for chat messages: copy new base freeswitch.xml and chatplan dir if you are upgrading on existing config base
2011-09-21 14:31:18 -05:00
Jeff Lenk
482b319512
FS-3544 --resolve
2011-09-06 21:27:13 -05:00
Anthony Minessale
1c775c3bf0
finish up last commit
2011-09-06 15:07:51 -05:00
Anthony Minessale
2ae688a33b
add sendmsg function to esl
2011-09-06 14:53:38 -05:00
Anthony Minessale
e420e17f84
FS-3386 Jeff Lenk found this one, Good Catch!
2011-07-08 12:52:18 -05:00
Anthony Minessale
37064511e4
fix bug from the *cough* FRICKING MAILING LIST WHERE IT SHOULD NOT HAVE BEEN REPORTED FROM *cough*
2011-05-31 09:53:39 -05:00
Mathieu Rene
9d756ecc77
FS-3320 --resolve
2011-05-27 12:24:48 -04:00
Anthony Minessale
ffa0a07198
add array manipulation to the wraper code
2011-05-26 12:18:18 -05:00
Jeff Lenk
4cd07bc241
fix code analysis warnings - this time while awake
2011-05-26 11:32:07 -05:00
Anthony Minessale
7fb6fb3076
doh merge conflict put back changes
2011-05-26 10:04:15 -05:00
Anthony Minessale
c080fb15d9
update on array patch
2011-05-26 10:00:06 -05:00
Mathieu Rene
ea38df0aed
missed one
2011-05-26 10:52:41 -04:00
Jeff Lenk
6648a4c79e
doh this is stupid
2011-05-26 09:50:07 -05:00
Jeff Lenk
140810df78
fix code analysis vs2010 pre sp1
2011-05-26 09:05:12 -05:00
Jeff Lenk
55c24567bd
fix windows code analysis problems
2011-05-25 23:51:48 -05:00
Anthony Minessale
c1c759526d
add arrays to event headers and chanvars
2011-05-25 15:42:36 -05:00
Anthony Minessale
73279f01bf
FS-3166 --resolve
2011-04-22 16:43:29 -05:00
Jeff Lenk
0cde6bc039
code analysis warnings fix and acknowledge stack usage warning
2011-03-27 12:09:10 -05:00
Anthony Minessale
9795dd2f0a
fix finicky build
2011-03-26 11:07:34 -05:00
Anthony Minessale
ae595cd529
use poll instead of select in ESL client lib because select is not your friend....
2011-03-26 10:59:55 -05:00
Anthony Minessale
e8474d602d
ESL-57
2011-03-10 00:33:43 -06:00
Anthony Minessale
0444626b72
fix linger support in esl client lib
2011-02-25 16:13:24 -06:00
Anthony Minessale
bc397ab600
FS-2971
2011-02-25 10:55:47 -06:00
Anthony Minessale
e96acac3c8
add optional job-uuid param to bgapi in oop mod
2011-02-24 17:48:51 -06:00
Anthony Minessale
e8a1055854
ESL-56 null terminate buffer after reading from the socket to prevent cross-over to old data that confuses the parser and throws off framing. (regression from 2081bf97b9
)
2011-02-22 17:07:18 -06:00
Joao Mesquita
eb88304a16
Small fix on ESL that cause event_id to be set wrong on headers that had value failure.
2011-01-12 16:24:04 -03:00
Jeff Lenk
1aa6bc6eec
fix assert with standard code analysis macro
2011-01-05 09:59:14 -06:00
Jeff Lenk
5254df0466
FS-2957 esl lib on windows fails to build
2011-01-04 22:57:49 -06:00
Jeff Lenk
7b1de56baa
vs2010 fix build
2010-12-16 14:24:54 -06:00
Jeff Lenk
dcce6bb510
vs2010 fix build
2010-12-16 13:52:46 -06:00
Jeff Lenk
dfdf4e1e23
windows fix for last esl commit
2010-12-16 12:27:55 -06:00
Anthony Minessale
526436fd1f
doh
2010-12-16 11:58:18 -06:00
Anthony Minessale
2081bf97b9
use a packet buffer for ESL
2010-12-16 11:33:38 -06:00
Jeff Lenk
a15f51d577
ESL-37 [patch] Make last_event pointer last longer
2010-12-09 09:22:17 -06:00
Brian West
413dcc4cd2
ESL-50: Call close on connection handle if the connection fails
2010-10-08 09:03:43 -05:00
Jeff Lenk
184f395553
fix several code analysis problems and mask several that are required
2010-09-20 09:25:14 -05:00
Jeff Lenk
62206e3d43
FSBUILD-296 Fix VS2008 code analysis build
2010-08-24 08:55:00 -05:00
Jeff Lenk
1977aa8684
VS2010 add missing project filters
2010-08-19 10:38:54 -05:00
Mathieu Rene
b38909af0e
esl: init fd_flags to 0
2010-08-18 18:27:29 -04:00
Mathieu Rene
4263d60e38
esl: fix leak-on-error in esl_connect_timeout()
2010-08-12 12:00:12 -04:00
cypromis
910729b5dd
Fix for ESL-44, thank you to Lakschmanan for providing the Patch
2010-07-29 12:09:49 +02:00
Mathieu Rene
46c2d71464
fix windows build
2010-07-20 17:19:30 -04:00
Mathieu Rene
90da341a70
fix git screwup
2010-07-20 17:18:43 -04:00
Jeff Lenk
b079eee5fb
fix windows build
2010-07-20 15:33:48 -05:00
Mathieu Rene
644a144e19
Add esl_connect_timeout to specify custom connection timeouts
2010-07-20 15:33:46 -05:00
Mathieu Rene
49d6c803d1
use uint32_t instead of long for timeout as in the rest of the lib, 0 means forever. Also added esl_send_recv_timed()
2010-07-20 16:24:50 -04:00
Mathieu Rene
13137e228c
esl: use recv_timed in esl_connect_timemout in case we get stuck in a blocking recv
2010-07-20 16:24:50 -04:00
Mathieu Rene
12a0ec741b
Add esl_connect_timeout to specify custom connection timeouts
2010-07-20 14:45:53 -04:00
Jeff Lenk
394d545468
doh
2010-07-19 15:27:25 -05:00
Jeff Lenk
6a9a61c79f
fix windows build
2010-07-19 15:25:45 -05:00
Mathieu Rene
52885dfc1d
esl: make esl_connect thread-safe by using getaddrinfo instead of gethostbyname
2010-07-19 16:13:10 -04:00
Mathieu Rene
84b4b5da62
Fix esl doc, s/ESL_STATUS_SUCESS/ESL_SUCCESS/g
2010-07-19 13:09:21 -04:00
Mathieu Rene
c5ad49da17
mod_hash: begin working on remote support
2010-07-16 22:50:58 -04:00
Anthony Minessale
60af226890
deal with empty param to serialize()
2010-07-12 15:37:16 -05:00
Jeff Lenk
7af395ef83
more tweaks for VS2010
2010-07-10 15:22:25 -05:00