mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 19:52:35 +00:00
mod_fifo: Convert macro to fn and improve name
This commit is contained in:
parent
06d94d2c17
commit
a3a62d2481
@ -508,7 +508,9 @@ static switch_status_t moh_on_dtmf(switch_core_session_t *session, void *input,
|
|||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define check_string(s) if (!zstr(s) && !strcasecmp(s, "undef")) { s = NULL; }
|
static inline void cleanup_fifo_arg(const char **s) {
|
||||||
|
if (!zstr(*s) && !strcasecmp(*s, "undef")) *s = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
static int node_caller_count(fifo_node_t *node)
|
static int node_caller_count(fifo_node_t *node)
|
||||||
{
|
{
|
||||||
@ -2607,8 +2609,8 @@ SWITCH_STANDARD_APP(fifo_function)
|
|||||||
moh = NULL;
|
moh = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
check_string(announce);
|
cleanup_fifo_arg(&announce);
|
||||||
check_string(moh);
|
cleanup_fifo_arg(&moh);
|
||||||
switch_assert(node);
|
switch_assert(node);
|
||||||
|
|
||||||
switch_core_media_bug_pause(session);
|
switch_core_media_bug_pause(session);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user