From: Alec L Davis Date: Thu, 26 Jan 2012 06:27:07 +0000 (+0000) Subject: Cleanup dialog-info+xml Notify dialog X-Git-Tag: 1.8.10.0-rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd8d057dee9d024bdda39864fcaa133593caa8b1;p=thirdparty%2Fasterisk.git Cleanup dialog-info+xml Notify dialog Make similar to other Notify messages. sample output: terminated Tested with Asterisk 1.8.8.2 with Grandstream phones. alecdavis (license 585) Tested by: alecdavis Review: https://reviewboard.asterisk.org/r/1693/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@352704 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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) {