diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9431d6ac50..99a3d55da6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12503,8 +12503,8 @@ static void state_notify_build_xml(int state, int full, const char *exten, const ast_str_append(tmp, 0, "\n\n"); break; case DIALOG_INFO_XML: /* SNOM subscribes in this format */ - ast_str_append(tmp, 0, ""); - ast_str_append(tmp, 0, "", p->dialogver, full ? "full" : "partial", mto); + ast_str_append(tmp, 0, "\n"); + ast_str_append(tmp, 0, "\n", p->dialogver, full ? "full" : "partial", mto); if ((state & AST_EXTENSION_RINGING) && sip_cfg.notifyringing) { const char *local_display = exten; char *local_target = ast_strdupa(mto); @@ -12557,7 +12557,7 @@ static void state_notify_build_xml(int state, int full, const char *exten, const } } else { - ast_str_append(tmp, 0, "", exten); + ast_str_append(tmp, 0, "\n", exten); } ast_str_append(tmp, 0, "%s\n", statestring); if (state == AST_EXTENSION_ONHOLD) {