mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
fix parse err in originate code
This commit is contained in:
1 parent
7898679b20
commit
1fba654845
3 files changed
+46
-5
No files matched your search
@@ -2313,7 +2313,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
||||
}
|
||||
|
||||
if (p == end) {
|
||||
end = strchr(p, '[');
|
||||
end = switch_strchr_strict(p, '[', " ");
|
||||
}
|
||||
|
||||
p++;
|
||||
@@ -2537,7 +2537,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
||||
current_variable = NULL;
|
||||
switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, "originate_early_media", oglobals.early_ok ? "true" : "false");
|
||||
|
||||
|
||||
printf("ASS %s\n", vdata);
|
||||
if (vdata) {
|
||||
char *var_array[1024] = { 0 };
|
||||
int var_count = 0;
|
||||
@@ -2552,7 +2552,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
||||
char *pnext;
|
||||
*next++ = '\0';
|
||||
|
||||
if ((pnext = strchr(next, '['))) {
|
||||
if ((pnext = switch_strchr_strict(next, '[', " "))) {
|
||||
next = pnext + 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user