提交 50cd5c28 authored 作者: Anthony Minessale's avatar Anthony Minessale

add originated_legs and originate_causes to A leg when present in an originate…

add originated_legs and originate_causes to A leg when present in an originate to detail the B leg data
上级 3099445a
......@@ -552,7 +552,12 @@ static esl_status_t esl_event_base_add_header(esl_event_t *event, esl_stack_t st
esl_assert(hv);
header->value = hv;
esl_snprintf(header->value, len, "ARRAY::");
if (header->idx > 1) {
esl_snprintf(header->value, len, "ARRAY::");
} else {
*header->value = '\0';
}
for(j = 0; j < header->idx; j++) {
esl_snprintf(header->value + strlen(header->value), len - strlen(header->value), "%s%s", j == 0 ? "" : "|:", header->array[j]);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论