]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change dialplan a little (part2)
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 17 Oct 2007 18:37:18 +0000 (18:37 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 17 Oct 2007 18:37:18 +0000 (18:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5939 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c

index c7dd311e42959ee84a71f6d340838937d6ded8bd..290d0de2d6a972f4b3b94c3b35c0d59c11464308 100644 (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);