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:
Anthony Minessale 2007-10-17 18:37:18 +00:00
parent 7c8b72b9fe
commit c6231acb7c
1 changed files with 6 additions and 1 deletions

View File

@ -1270,10 +1270,15 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
char *sub_val = NULL, *func_val = NULL;
int nv = 0;
if (!in || !strchr(in, '$')) {
if (in && (p = strchr(in, '$'))) {
if (!*(p + 1)) {
return in;
}
} else {
return in;
}
olen = strlen(in);
indup = strdup(in);