mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
FS-5861 --resolve
This commit is contained in:
parent
f7c9c401a3
commit
6c5da6435d
@ -283,10 +283,17 @@ SWITCH_STANDARD_APP(clear_digit_action_function)
|
|||||||
{
|
{
|
||||||
//switch_channel_t *channel = switch_core_session_get_channel(session);
|
//switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||||
switch_ivr_dmachine_t *dmachine;
|
switch_ivr_dmachine_t *dmachine;
|
||||||
char *realm = switch_core_session_strdup(session, data);
|
char *realm = NULL;
|
||||||
char *target_str;
|
char *target_str;
|
||||||
switch_digit_action_target_t target = DIGIT_TARGET_SELF;
|
switch_digit_action_target_t target = DIGIT_TARGET_SELF;
|
||||||
|
|
||||||
|
if (zstr(realm)) {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "clear_digit_action called with no args");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
realm = switch_core_session_strdup(session, data);
|
||||||
|
|
||||||
if ((target_str = strchr(realm, ','))) {
|
if ((target_str = strchr(realm, ','))) {
|
||||||
*target_str++ = '\0';
|
*target_str++ = '\0';
|
||||||
target = str2target(target_str);
|
target = str2target(target_str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user