mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
add more nested var tricks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6173 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
14396001d2
commit
43092c75f7
@ -1381,14 +1381,23 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
||||
}
|
||||
|
||||
if (vtype == 1) {
|
||||
char *expanded = NULL;
|
||||
|
||||
if ((expanded = switch_channel_expand_variables(channel, (char *)vname)) == vname) {
|
||||
expanded = NULL;
|
||||
} else {
|
||||
vname = expanded;
|
||||
}
|
||||
sub_val = switch_channel_get_variable(channel, vname);
|
||||
switch_safe_free(expanded);
|
||||
} else {
|
||||
switch_stream_handle_t stream = { 0 };
|
||||
char *expanded = NULL;
|
||||
|
||||
SWITCH_STANDARD_STREAM(stream);
|
||||
|
||||
if (stream.data) {
|
||||
char *expanded = NULL;
|
||||
|
||||
|
||||
if ((expanded = switch_channel_expand_variables(channel, vval)) == vval) {
|
||||
expanded = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user