Jakub Karolczyk
bb9afcb388
[core] Coverity fixes
...
* [core] Coverity 1518099, 1518097, 1518098 (Unchecked return value from library)
* [core] Coverity 1468551 Unchecked return value
* [core] Coverity 1468293 Unchecked return value
* [core] Coverity 1468274 Explicit null dereferenced
* [core] Coverity 1395588 Unchecked return value
* [core] Coverity 1395515 Logically dead code
* [core] Coverity 1364984 Result is not floating-point
* [core] Coverity 1395554, 1468440 Dereference before null check
* [core] Coverity 1024487 Dereference after null check
* [core] Coverity 1024872 Unchecked return value
* [core] Coverity 1025822 Unchecked return value
* [core] Coverity 1025823 Unchecked return value
* [core] Coverity 1087637, 1346467, 1087638 Unchecked return value
* [core] Coverity 1107607 Unchecked return value
* [core] Coverity 1210777 Unchecked return value
* [core] Coverity 1227670 Dereference before null check
* [core] Coverity 1024551 Logically dead code
* [core] Coverity 1024560 Logically dead code
* [core] Coverity 1024664 Operands don't affect result
* [core] Coverity 1364957 Dereference after null check
* [core] Coverity 1395572 Logically dead code
* [core] Coverity 1412459 Unchecked return value
* [core] Coverity 1412490 Unchecked return value
* [core] Coverity 1395515/2 Logically dead code
* [core] Coverity cleanup
2023-09-08 20:17:57 +03:00
Seven Du
623fecd599
[Core] Add partial Asr support
2021-10-23 21:59:49 +03:00
Seven Du
6cf606f2a0
[core] add event::merge
2020-12-16 23:05:16 +08:00
Visytel
b997c4fc8b
[core] Turn DTMF logging on or off using sensitive_dtmf var
2020-02-12 23:44:35 +04:00
Visytel
78eb8f61b3
[core] Reduce log level to DEBUG for binding to events and certain clock messages
2020-02-11 23:58:33 +04:00
Dragos Oancea
15051696d1
FS-11559: check file name null ptr (crashfix CoreSession:recordFile)
2018-12-17 04:30:51 -05:00
Anthony Minessale
d3e320ef56
FS-11346: [core] add api to pass pre-parsed values instead of dial strings to switch_ivr_originate
...
SWITCH_DECLARE(switch_status_t) switch_dial_handle_create(switch_dial_handle_t **handle);
SWITCH_DECLARE(void) switch_dial_handle_destroy(switch_dial_handle_t **handle);
SWITCH_DECLARE(void) switch_dial_handle_add_leg_list(switch_dial_handle_t *handle, switch_dial_leg_list_t **leg_listP);
SWITCH_DECLARE(void) switch_dial_leg_list_add_leg(switch_dial_leg_list_t *parent, const char *dial_string, switch_dial_leg_t **legP);
SWITCH_DECLARE(void) switch_dial_handle_add_global_var(switch_dial_handle_t *handle, const char *var, const char *val);
SWITCH_DECLARE(void) switch_dial_handle_add_global_var_printf(switch_dial_handle_t *handle, const char *var, const char *fmt, ...);
SWITCH_DECLARE(switch_status_t) switch_dial_handle_add_leg_var(switch_dial_leg_t *leg, const char *var, const char *val);
SWITCH_DECLARE(switch_status_t) switch_dial_handle_add_leg_var_printf(switch_dial_leg_t *leg, const char *var, const char *fmt, ...);
SWITCH_DECLARE(int) switch_dial_handle_get_peers(switch_dial_handle_t *handle, int idx, char **array, int max);
SWITCH_DECLARE(int) switch_dial_handle_get_vars(switch_dial_handle_t *handle, int idx, switch_event_t **array, int max);
SWITCH_DECLARE(switch_event_t *) switch_dial_handle_get_global_vars(switch_dial_handle_t *handle);
SWITCH_DECLARE(switch_event_t *) switch_dial_leg_get_vars(switch_dial_leg_t *leg);
SWITCH_DECLARE(int) switch_dial_handle_get_total(switch_dial_handle_t *handle);
SWITCH_DECLARE(void) switch_ivr_orig_and_bridge(switch_core_session_t *session, const char *data, switch_dial_handle_t *dh);
add switch_dial_handle_t *dh to end of args for switch_ivr_originate
2018-08-22 18:20:13 +00:00
Seven Du
ae4e48fa15
FS-11265 #resolve add detectSpeech and playAndDetectSpeech
2018-08-13 18:59:53 +00:00
Mariah Yang
3930250b79
FS-11260 fix set_tts_params segs when the second arg is NULL
2018-07-24 07:21:58 +00:00
Anthony Minessale
35865bd90c
FS-10118: [freeswitch-core] Race conditions from lack of error checking in switch_core_session_read_lock #resolve
2017-03-09 13:22:25 -06:00
Sergey Safarov
df1ab07ca4
FS-9924: Removed extra space in source files
2017-02-09 23:59:49 -05:00
Brian West
48fab6f6db
FS-9851: [freeswitch-core] Add abstimeout to CoreSession:getDigits in switch_cpp #resolve
2016-12-14 14:06:20 -06:00
Anthony Minessale
9b8a5edd3d
FS-9638
2016-11-10 12:09:00 -06:00
Michael Jerris
94d28e0fd6
FS-8928: flag a bidning error when using EventConsumer::bind with invalid event name instead of blindly using custom
2016-03-17 12:51:35 -05:00
Brian West
49b9d7f9ff
FS-8898 log setVariable at debug, so you can tell what variables are being set with ease from scripts
2016-03-09 20:33:52 -06:00
Michael Jerris
4fc4c52392
Revert "FS-8720: [core] allow passing in blank/null to session::hangup to mean NORMAL_CLEARING hangup cause instead of segfault"
...
wrong fix for this issue
This reverts commit 3304492b41
.
2016-01-12 13:03:21 -05:00
Michael Jerris
3304492b41
FS-8720: [core] allow passing in blank/null to session::hangup to mean NORMAL_CLEARING hangup cause instead of segfault
2016-01-12 10:57:00 -05:00
Mark Lipscombe
4e9977507d
FS-8537: Passing nil to various lua functions causes segfault
...
Various functions exposed via lua do not check their parameters for null
causing freeswitch to segfault.
This change adds checking for null parameters and returns an error
instead of segfaulting.
2015-11-15 10:43:09 +11:00
Anthony Minessale
4d7a0ac024
FS-8167 #resolve [FS segs]
2015-09-15 22:35:29 -05:00
Anthony Minessale
1d91b7d61c
FS-7721 #resolve #comment this will fix your issue but of course now your example will not function anymore because you are unsetting the input callback and dtmf will be ignored but this is to be expected
2015-06-30 12:30:36 -05:00
Michael Jerris
7963c4045e
FS-7707: fix build error on centos7
2015-06-22 14:36:09 -04:00
Seven Du
aa15994c7f
fix return value
2014-09-06 18:29:19 +08:00
Seven Du
1a4e6e3093
FS-6796 #comment avoid use c++ string since it causing troubles
2014-09-06 07:18:38 +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
Anthony Minessale
3a00260dc6
FS-6615 test this patch
2014-07-16 19:33:10 +05:00
Travis Cross
d1ec643286
Improve name of new console log function
...
The new console log function here isn't any more of a channel log than
the old one. The name was bad, and no one could have been using this
yet since we just ran reswig. We'll take the same tack the kernel
developers do when replacing a function with an otherwise equivalent
one with a better API.
2014-07-16 03:52:08 +00:00
Travis Cross
74262ee964
Add `session::consoleLog2()`
...
This allows emitting log messages that include the file name and line
number of the call. Because we have the session object here, the log
messages can be correctly associated with the session from which they
were emitted.
As when the kernel developers need to 'fix' a system call, we'll just
add a number to the name of the existing function.
2014-07-16 03:52:08 +00:00
Brian West
a99df48984
FS-4861 improve logging when using c++ wrapper
2014-07-09 09:09:45 -05:00
Michael Jerris
44401e842a
CID:1023936 Unused pointer value
2014-05-15 17:00:32 +00:00
Michael Jerris
3ff3f327ee
FS-6484: guess at fixing seg from mod_managed, this function should never be called without a channel, but if it does, throw an error instead
2014-05-05 19:19:03 -04:00
Ken Rice
6e7d5d0897
update copyright header for 2014
2014-02-12 12:08:56 -06:00
Anthony Minessale
1af72288d1
FS-6061 --resolve
2013-12-23 22:43:06 +05:00
Anthony Minessale
802794b9f1
FS-5794 --resolve
2013-09-16 19:56:02 -05:00
Brian West
fb34ff9ade
adding transfer-sound to ivr menu so you can specifiy a sound file to pay when a transfer takes place
2013-07-24 18:40:45 -05:00
Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Anthony Minessale
e60f37f651
FS-5529 --resolve
2013-06-20 12:36:30 -05:00
Brian West
cc2efd5597
Fix silly warning
2013-04-16 12:13:45 -05:00
Anthony Minessale
0e41c484a3
FS-5284 --resolve ready is meant to signify that the object is ready for external use so setting it to 1 before the bind is sufficient
2013-04-08 13:00:24 -05:00
William King
3199f5ce0a
Fixing the only place where parms is used instead of params.
2013-02-04 12:20:25 -06:00
Anthony Minessale
1e22ba2ba5
add cleanup method to event consumer
2013-01-29 09:34:23 -06:00
Anthony Minessale
428cd029de
FS-4868 --resolve This patch also adds freeswitch.ready() which will return false once shutdown has started
2012-11-26 15:18:58 -06:00
Anthony Minessale
fe7580b13d
FS-4738 --resolve
2012-10-19 15:48:13 -04:00
Anthony Minessale
830755ac85
allow event consumer to supply size as optional arg
2012-06-14 11:31:46 -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
Jeff Lenk
b992e29640
FS-3553 --resolve
2011-11-16 16:00:14 -06:00
Anthony Minessale
2faaee0e6e
add getGlobalVariable and setGlobalVariable to swig stuff
2011-10-21 08:56:42 -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
Anthony Minessale
301ea9fbce
locate session even when it's hungup in script constructor
2011-08-26 08:30:27 -05:00
Michael S Collins
e4d473190d
mod_dptools: add transfer_on_failure ext/dp/context to play_and_get_digits
...
If max tries is reach and user has not made a valid entry then system transfers the call leg to the specified destination.
2011-08-18 20:29:52 -07:00
Anthony Minessale
0ba25358b9
FS-3119
2011-03-03 14:21:02 -06:00