From: Alec L Davis Date: Thu, 26 Jan 2012 06:33:11 +0000 (+0000) Subject: Merged revisions 352704 via svnmerge from X-Git-Tag: 10.2.0-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=048a00bbaf785257405f71077e9c9bb4d0de46d3;p=thirdparty%2Fasterisk.git Merged revisions 352704 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r352704 | alecdavis | 2012-01-26 19:27:07 +1300 (Thu, 26 Jan 2012) | 20 lines 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/10@352705 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7b7988a25d..a64f7ea5b3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12875,8 +12875,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); @@ -12929,7 +12929,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) {