Skip to content

Commit

Permalink
Align the node names of t_uac_dlg MI with 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed Apr 8, 2019
1 parent c123ba8 commit ce3f3b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/tm/mi.c
Expand Up @@ -279,7 +279,7 @@ static inline int mi_print_uris(mi_item_t *resp_obj, struct sip_msg* reply)
return -1;

if (dlg->hooks.next_hop->s)
if (add_mi_string(resp_obj, MI_SSTR("next hop"),
if (add_mi_string(resp_obj, MI_SSTR("Next-hop"),
dlg->hooks.next_hop->s, dlg->hooks.next_hop->len) < 0)
return -1;

Expand Down Expand Up @@ -315,13 +315,13 @@ static void mi_uac_dlg_hdl( struct cell *t, int type, struct tmcb_params *ps )
LM_ERR("get_reply_status failed\n");
goto error;
}
if (add_mi_string(resp_obj, MI_SSTR("reply status"),
if (add_mi_string(resp_obj, MI_SSTR("Status"),
text.s, text.len) < 0) {
goto error;
}
pkg_free(text.s);
} else {
if (add_mi_string_fmt(resp_obj, MI_SSTR("reply status"), "%d %.*s",
if (add_mi_string_fmt(resp_obj, MI_SSTR("Status"), "%d %.*s",
ps->rpl->first_line.u.reply.statuscode,
ps->rpl->first_line.u.reply.reason.len,
ps->rpl->first_line.u.reply.reason.s) < 0) {
Expand All @@ -331,7 +331,7 @@ static void mi_uac_dlg_hdl( struct cell *t, int type, struct tmcb_params *ps )
if (mi_print_uris(resp_obj, ps->rpl) < 0)
goto error;

if (add_mi_string(resp_obj, MI_SSTR("headers"),
if (add_mi_string(resp_obj, MI_SSTR("Message"),
ps->rpl->headers->name.s,
ps->rpl->len-(ps->rpl->headers->name.s - ps->rpl->buf)) < 0)
goto error;
Expand Down Expand Up @@ -761,4 +761,4 @@ mi_response_t *mi_tm_reply_4(const mi_params_t *params,
return init_mi_param_error();

return mi_tm_reply(params, &new_headers, &body);
}
}

0 comments on commit ce3f3b7

Please sign in to comment.