mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
FS-6499 --resolve
This commit is contained in:
parent
d06b137abd
commit
c462ed6ae1
@ -78,6 +78,7 @@ end:
|
|||||||
void jsonapi_populate_event(switch_core_session_t *session, switch_event_t *apply_event, const char *api, const char *data) {
|
void jsonapi_populate_event(switch_core_session_t *session, switch_event_t *apply_event, const char *api, const char *data) {
|
||||||
switch_event_t *phrases_event = NULL;
|
switch_event_t *phrases_event = NULL;
|
||||||
switch_stream_handle_t stream = { 0 };
|
switch_stream_handle_t stream = { 0 };
|
||||||
|
switch_event_header_t *hp;
|
||||||
|
|
||||||
switch_assert(apply_event);
|
switch_assert(apply_event);
|
||||||
SWITCH_STANDARD_STREAM(stream);
|
SWITCH_STANDARD_STREAM(stream);
|
||||||
@ -85,7 +86,6 @@ void jsonapi_populate_event(switch_core_session_t *session, switch_event_t *appl
|
|||||||
switch_event_create_json(&phrases_event, (char *) stream.data);
|
switch_event_create_json(&phrases_event, (char *) stream.data);
|
||||||
switch_safe_free(stream.data);
|
switch_safe_free(stream.data);
|
||||||
|
|
||||||
switch_event_header_t *hp;
|
|
||||||
for (hp = phrases_event->headers; hp; hp = hp->next) {
|
for (hp = phrases_event->headers; hp; hp = hp->next) {
|
||||||
if (!strncasecmp(hp->name, "VM-", 3)) {
|
if (!strncasecmp(hp->name, "VM-", 3)) {
|
||||||
switch_event_add_header(apply_event, SWITCH_STACK_BOTTOM, hp->name, "%s", hp->value);
|
switch_event_add_header(apply_event, SWITCH_STACK_BOTTOM, hp->name, "%s", hp->value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user