From: Anthony Minessale Date: Mon, 16 Jul 2012 18:39:23 +0000 (-0500) Subject: FS-4429 --resolve you guys should come to cluecon we would like to help you get bvtap... X-Git-Tag: v1.2.0~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e81d31ce435769bc82ffccf1ca97a433cd048536;p=thirdparty%2Ffreeswitch.git FS-4429 --resolve you guys should come to cluecon we would like to help you get bvtapi working really well --- diff --git a/src/switch_utils.c b/src/switch_utils.c index 07b02d37e7..157ce177f2 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -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));