]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix bad XML for hold notification.
authorOlle Johansson <oej@edvina.net>
Tue, 1 Jul 2008 07:49:15 +0000 (07:49 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 1 Jul 2008 07:49:15 +0000 (07:49 +0000)
Reported by: gowen72
Patches:
      hold.patch uploaded by gowen72 (license 432)
(closes issue #12942)

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

channels/chan_sip.c

index e9adaaa1803b970d3c12825a3cc08d562ff89150..96a61f7a21c97b5af15a24d01d70e4c3a0d35a23 100644 (file)
@@ -7372,7 +7372,7 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim
                ast_build_string(&t, &maxbytes, "<state>%s</state>\n", statestring);
                if (state == AST_EXTENSION_ONHOLD) {
                        ast_build_string(&t, &maxbytes, "<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_build_string(&t, &maxbytes, "</dialog>\n</dialog-info>\n");