mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
Fixed dead code.
While reviewing code I noticed some dead code. It was not possible to default to the channel variable because the parameter could not be both full and empty. If the parameter is not a non zero length string then the code looked like it was intending to default to the channel variable 'presence_data_cols'. If neither of these are the case it is a noop. By enabling the dead code, you now have access to set the 'presence_data_cols' in the dialplan or scripts like lua.
This commit is contained in:
parent
85699480b3
commit
2d85726ecd
@ -1336,7 +1336,6 @@ SWITCH_DECLARE(switch_status_t) switch_channel_transfer_variable_prefix(switch_c
|
||||
|
||||
SWITCH_DECLARE(void) switch_channel_set_presence_data_vals(switch_channel_t *channel, const char *presence_data_cols)
|
||||
{
|
||||
if (!zstr(presence_data_cols)) {
|
||||
char *cols[128] = { 0 };
|
||||
char header_name[128] = "";
|
||||
int col_count = 0, i = 0;
|
||||
@ -1362,7 +1361,6 @@ SWITCH_DECLARE(void) switch_channel_set_presence_data_vals(switch_channel_t *cha
|
||||
|
||||
switch_safe_free(data_copy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_channel_set_variable_var_check(switch_channel_t *channel,
|
||||
|
Loading…
x
Reference in New Issue
Block a user