mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
[core] Update switch_ivr_record_session_event() to check event vars for RECORD_STEREO, etc
This commit is contained in:
committed by
Andrey Volk
parent
a7fa9bfedc
commit
60faf1a1b1
@@ -685,6 +685,7 @@ SWITCH_DECLARE(void) switch_channel_mark_hold(switch_channel_t *channel, switch_
|
||||
/** @} */
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_channel_execute_on(switch_channel_t *channel, const char *variable_prefix);
|
||||
SWITCH_DECLARE(switch_status_t) switch_channel_execute_on_value(switch_channel_t *channel, const char *variable_value);
|
||||
SWITCH_DECLARE(switch_status_t) switch_channel_api_on(switch_channel_t *channel, const char *variable_prefix);
|
||||
SWITCH_DECLARE(void) switch_channel_process_device_hangup(switch_channel_t *channel);
|
||||
SWITCH_DECLARE(switch_caller_extension_t *) switch_channel_get_queued_extension(switch_channel_t *channel);
|
||||
|
||||
@@ -522,6 +522,7 @@ static switch_status_t fst_init_core_and_modload(const char *confdir, const char
|
||||
switch_channel_set_variable(fst_channel, "send_silence_when_idle", "-1"); \
|
||||
switch_channel_set_variable(fst_channel, "RECORD_STEREO", "true"); \
|
||||
switch_ivr_record_session(fst_session, (char *)"/tmp/"#name".wav", 0, NULL); \
|
||||
switch_channel_set_variable(fst_channel, "RECORD_STEREO", NULL); \
|
||||
for(;;) {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user