]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4429 --resolve you guys should come to cluecon we would like to help you get bvtap...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jul 2012 18:39:23 +0000 (13:39 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jul 2012 18:39:23 +0000 (13:39 -0500)
src/switch_utils.c

index 07b02d37e79ce67161ee74828b33f7d1272877d8..157ce177f207fb52e978980c9b9638cef348e527 100644 (file)
@@ -2092,6 +2092,17 @@ SWITCH_DECLARE(unsigned int) switch_separate_string(char *buf, char delim, char
                return 0;
        }
 
+
+       if (*buf == '^' && *(buf+1) == '^') {
+               char *p = buf + 2;
+               
+               if (p && *p && *(p+1)) {
+                       buf = p;
+                       delim = *buf++;
+               }
+       }
+
+
        memset(array, 0, arraylen * sizeof(*array));
 
        return (delim == ' ' ? separate_string_blank_delim(buf, array, arraylen) : separate_string_char_delim(buf, delim, array, arraylen));