582 Commits

Author SHA1 Message Date
Andrey Volk
c47c16b1dd Fix dead nested assignments in various modules 2022-08-09 23:20:52 +03:00
Ken
f2a7891f14 [mod_dptools] Implement disable_system_app_commands global variable to make system and bgsystem dialplan apps disabled at run time.
adds a check on startup for global variable disable_system_app_commands. if the
global variable is set to true, the system and bgsystem dialplan apps will not
have their app_interface loaded via SWITCH_ADD_APP() leaving them effectively
disabled at run time.
2021-11-05 17:46:07 +03:00
Chris Rienzo
60c4b62254 [core] Add SMBF_PAUSE media bug flag to pause an individual media bug.
* [core] Add SMBF_PAUSE media bug flag to pause an individual media bug.
[core] Add switch_ivr_record_session_pause() to pause a session recording.
[mod_dptools] Add record_session_pause and record_session_resume dialplan APPs.
[mod_commands] Add pause/resume sub-commands to uuid_record API.
2021-10-23 22:00:38 +03:00
Seven Du
e237d08073 [mod_dptools] add debug_media app 2021-10-23 22:00:17 +03:00
Andrey Volk
e51bbea7ca [mod_dptools]: wait_for_silence does not allow the listen_hits parameter to be a value of 0 2021-10-23 21:59:49 +03:00
Sharath K Shetty
ee9214c6fb
[mod_dptools] Fix silence_ms misspelling typo in vad_test command 2021-09-01 17:48:42 +03:00
surendrasignalwire
dbc894d959 [Core] Reuse caller profile 2021-03-17 00:52:36 +03:00
Andrey Volk
9368ed0d1f
Merge pull request #997 from seven1240/answer-decode-debug-video
[mod_dptools] early video decode and debug
2020-12-17 21:26:45 +04:00
Seven Du
25edcd6ccd [mod_dptools] remove duplicated code 2020-12-17 22:54:25 +08:00
Seven Du
c1837909b1 [mod_dptools] early video decode and debug 2020-12-16 23:10:52 +08:00
Andrey Volk
d9b63859a1 [mod_dptools] scan-build: Fix "Potential leak of memory pointed to by 'head'" 2020-02-19 19:54:29 +04:00
Dragos Oancea
dc1e851214 FS-9264: FS-10976: fix detect_audio, detect_silence and wait_for_silence_function dialplan apps
(thanks Sergey KHripchenko and Hervé Déprez for pointing these out)
2019-07-26 00:22:08 +04:00
Andrey Volk
30f0ad63f4 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_dptools 2019-07-18 19:27:40 +04:00
Anthony Minessale
eb31e17e6c FS-11910: [mod_dptools] add native eavesdrop mode. use app native_eavesdrop args <uuid> [read|write] ... default is read with no flag. Must be same codecs 2019-07-17 23:38:23 +04:00
Seven Du
b8b9915912 FS-11721 add no media support to capture_text 2019-07-17 23:26:28 +04:00
Seven Du
671f75b246 FS-11753 tweak vad test code and add debug logs 2019-07-17 22:57:53 +04:00
Chris Rienzo
0171a64a76 FS-11785 [mod_dptools] fix dead assignment and potential dereference of null pointer 2019-07-17 20:22:45 +04:00
Sergey Khripchenko
1b430c76d5 FS-11726 New dialplan application to wait for video stream being ready (ICE and DTLS setup) 2019-07-17 19:53:11 +04:00
Piotr Gregor
118dd796f3 FS-11421: [core,mod_sofia] Fix rtp_pass_codecs_on_stream_change to process all sdp settings in the re-invite -- add new filter_codecs app and fix some races and negotiation bugs #resolve 2019-06-06 11:08:52 -04:00
lazedo
168a3c068b FS-10968 [core] create recording vars
* moves channel vars starting with Recording-Variable- to record_helper
* uses record_helper variables for RECORD_START/STOP events
2019-03-26 22:28:13 +00:00
Mike Jerris
7b94c84c00 Merge pull request #1512 in FS/freeswitch from ~LAZEDO/freeswitch:feature/FS-11132 to master
* commit '13f3f69c1dea8e666f68cd136aac8233f36e4058':
  FS-11132 [mod_dptools] add broadcast app
2019-02-12 15:57:07 +00:00
Seven Du
710d011c85 FS-11340 export switch_vad_state2str and update vad_test to support the latest params
FS-11340 check the status for read frame avoid crash
2018-09-24 20:22:24 +00: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
2cb4e49432 FS-11231 #resolve deprecate start_input_timers and add start-input-timers 2018-07-24 07:21:56 +00:00
Brian West
5efecb1ffa FS-11156: [mod_dptools] wait for ack in application "deflect" #resolve 2018-07-24 07:21:52 +00:00
Seven Du
99d2e5e243 FS-11014 [core] add vad to core 2018-07-24 07:21:47 +00:00
lazedo
13f3f69c1d FS-11132 [mod_dptools] add broadcast app 2018-05-14 17:11:50 +01:00
Hunyadvári Péter
74f47cb0ed FS-11046: [mod_dptools] Better logging for rename_function 2018-04-03 10:15:33 +02:00
Marc Olivier Chouinard
348c2c42bb FS-10608: Change 60 second timeout value to a global #define SWITCH_DEFAULT_TIMEOUT 2017-08-29 13:54:34 -04:00
Anthony Minessale
db47792558 FS-10447: [freeswitch-core] Manual video refresh mode #resolve 2017-06-29 16:57:18 -05: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
Mike Jerris
25bbb42ec2 FS-10001: [core] Fix Buffer overflow collecting digits 2017-03-06 12:51:29 -06:00
Armen Babikyan
6ed86abf9f FS-9300: Add support for disabling sofia's 100 Trying via configuration, and sending 100 Trying from dialplan 2017-02-13 14:49:05 -08:00
Sergey Safarov
df1ab07ca4 FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
Brian West
5ec6248dff Merge pull request #1086 in FS/freeswitch from ~MOCHOUINARD/freeswitch:FS-9794 to master
* commit 'ac14496c73c8f15e1b433189fe6bf78e31b772ec':
  FS-9794: Set the result cause of an originate failed cause to variable originate_failed_cause
2016-12-02 11:36:33 -06:00
romana
c20fa5e8f7 FS-9734: updated keys to be set in memory on att_xfer execution 2016-11-30 17:37:59 -05:00
Brian West
a39b862e1d FS-9734: fix this so we don't allocate memory using switch_channel_get_variable on every digit, Only do it once. 2016-11-30 15:20:29 -06:00
Marc Olivier Chouinard
ac14496c73 FS-9794: Set the result cause of an originate failed cause to variable originate_failed_cause 2016-11-30 15:19:43 -05:00
romana
aadd81d6d3 FS-9734: added new channel vars in att_xfer which allow cancel, hangup and conf keys to be changed 2016-11-21 17:39:27 -05:00
Mike Jerris
6393832c7c Merge pull request #1043 in FS/freeswitch from ~PERRO/freeswitch:feature/FS-9325 to master
* commit 'b5266ed6b44a8219be55a3f81726dbde69e8994a':
  FS-9325 [mod_dptools] Priority flag for faster bind_digit_action matches
2016-11-11 15:37:43 -06:00
Mike Jerris
b0b6db050a Merge pull request #1041 in FS/freeswitch from ~PERRO/freeswitch:bugfix/FS-9323 to master
* commit '8d8543d0c822d7f2dffa84913b869b539eb341d0':
  FS-9323 [mod_dptools] raise bind_digit_action event on correct leg
2016-11-11 15:37:14 -06:00
Mike Jerris
76b990a503 Merge pull request #1040 in FS/freeswitch from ~PERRO/freeswitch:FS-9319 to master
* commit '6e8508f2a078963594129a83b15b4f919c496d61':
  FS-9319 [mod_dptools] Support "both" in clear_digit_action
2016-11-11 15:36:36 -06:00
Anthony Minessale
9b8a5edd3d FS-9638 2016-11-10 12:09:00 -06:00
Andy Newlands
b5266ed6b4 FS-9325 [mod_dptools] Priority flag for faster bind_digit_action matches
Add exec: flag, 'P' (for "Priority") to bind_digit_action so that a
match is returned as soon as it is found, without waiting for the
inter-digit timeout to expire.

This can be very useful where the system needs to be more responsive
to the user.

By default, if multiple bindings are enabled and one or more use a
regex, switch_ivr_dmachine_check_match waits for the inter-digit
timeout to expire before returning a match.  This ensures overlapping
patterns, such as "^\d{4}$" and "^\12{3}$" can both be reliably matched

When the 'P' flag is specified with bind_digit_action, whose action is
exec, a match is returned as soon as the condition is satisfied,
regardless of whether or not a longer match may be possible if further
digits were entered.

For example:

	<action application="bind_digit_action" data="test,~^*\d{2}$,
		exec[P]:execute_extension,myextn,self,self"/>

	<action application="bind_digit_action" data="test,~^#\d{2}$",
		exec:execute_extension,myotherextn,self,peer"/>

	The first example causes a match to be returned immediately
	after the 2nd digit is received, whereas the second example
	defaults to waiting for the inter-digit timeout to expire
	before returning.

In cases where the 'P' flag is used with a regex and string, and both
are matched, the more explicit, string match will be returned.

For example:

	<action application="bind_digit_action" data="test,~^*\d{2}$,
		exec[P]:execute_extension,myextn,self,self"/>

	<action application="bind_digit_action" data="test,*12,
		exec[P]:execute_extension,myotherextn,self,self"/>

	If "*12" is matched, myotherextn is executed, because "*12" is
	more explicit/specific than "^*\d{2}$"

If the 'P'(riority) flag is not used, behaviour is unchanged from
previous versions.  This ensures backward compatibility.

FS-9325 #resolve
2016-11-08 13:47:37 +00:00
Andy Newlands
8d8543d0c8 FS-9323 [mod_dptools] raise bind_digit_action event on correct leg
Ensure digit_action_callback raises the match event on leg specified
in bind_digit_action.

Specifying the event leg as "peer" or "self" now executes on the
correct call leg.

FS-9323 #resolve
2016-11-08 13:22:13 +00:00
Andy Newlands
6e8508f2a0 FS-9319 [mod_dptools] Support "both" in clear_digit_action
Add support for "both" as target parameter to clear_digit_action.
CDA previously only supported target values of:

	"", "self" or "peer"

CDA Behaviour now corresponds with documentation.

For example, the follow will work as expected:

	<action application="clear_digit_action" data="all,both"/>

FS-9319 #resolve
2016-11-08 12:49:06 +00:00
Chris Rienzo
dd17a57c8a FS-9694 [mod_dptools] Add origination_uuid support to pickup endpoint 2016-11-03 16:35:03 -04:00
Brian West
20b5bd675d FS-9629: add isfocus to replies, and add is_conference support to pre_answer 2016-10-31 10:45:29 -05:00
Anthony Minessale
c409499cd9 FS-9576 #resolve [Add Realtime Text] 2016-09-27 16:40:43 -05:00
Anthony Minessale
c591a212e8 FS-9538 #resolve [segfault while reading local ringback file] 2016-09-19 13:11:11 -05:00