Merged revisions 126735 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Tue, 1 Jul 2008 09:51:22 +0000 (09:51 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 1 Jul 2008 09:51:22 +0000 (09:51 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r126735 | oej | 2008-07-01 09:49:15 +0200 (Tis, 01 Jul 2008) | 7 lines

Fix bad XML for hold notification.
Reported by: gowen72
Patches:
      hold.patch uploaded by gowen72 (license 432)
(closes issue #12942)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126755 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7223e19..64c9e9e 100644 (file)
@@ -9437,7 +9437,7 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim
                ast_str_append(&tmp, 0, "<state>%s</state>\n", statestring);
                if (state == AST_EXTENSION_ONHOLD) {
                        ast_str_append(&tmp, 0, "<local>\n<target uri=\"%s\">\n"
-                                                       "<param pname=\"+sip.rendering\" pvalue=\"no\">\n"
+                                                       "<param pname=\"+sip.rendering\" pvalue=\"no\"/>\n"
                                                        "</target>\n</local>\n", mto);
                }
                ast_str_append(&tmp, 0, "</dialog>\n</dialog-info>\n");