fix parser err

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10142 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-10-24 19:25:07 +00:00
parent 432c89a52f
commit f95887b13a
1 changed files with 3 additions and 2 deletions

View File

@ -917,12 +917,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
end = switch_find_end_paren(p, '[', ']');
}
if (end && p && *p == ',') {
if (end && p < end && *p == ',') {
*p = '|';
}
if (p == end) {
e = NULL;
end = NULL;
}
p++;
@ -954,6 +954,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
} else {
vdata = NULL;
}
printf("WTF [%s][%s]\n", vdata, chan_type);
if ((chan_data = strchr(chan_type, '/')) != 0) {
*chan_data = '\0';