change dialplan a little (part2)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5939 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7c8b72b9fe
commit
c6231acb7c
|
@ -1270,10 +1270,15 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
||||||
char *sub_val = NULL, *func_val = NULL;
|
char *sub_val = NULL, *func_val = NULL;
|
||||||
int nv = 0;
|
int nv = 0;
|
||||||
|
|
||||||
if (!in || !strchr(in, '$')) {
|
if (in && (p = strchr(in, '$'))) {
|
||||||
|
if (!*(p + 1)) {
|
||||||
|
return in;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
olen = strlen(in);
|
olen = strlen(in);
|
||||||
indup = strdup(in);
|
indup = strdup(in);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue