[Freeswitch-svn] [commit] r5939 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Wed Oct 17 14:37:18 EDT 2007


Author: anthm
Date: Wed Oct 17 14:37:18 2007
New Revision: 5939

Modified:
   freeswitch/trunk/src/switch_channel.c

Log:
change dialplan a little (part2)

Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c	(original)
+++ freeswitch/trunk/src/switch_channel.c	Wed Oct 17 14:37:18 2007
@@ -1270,10 +1270,15 @@
 	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);
 



More information about the Freeswitch-svn mailing list