Fix regression from r370636
authorKinsey Moore <kmoore@digium.com>
Thu, 2 Aug 2012 15:51:17 +0000 (15:51 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 2 Aug 2012 15:51:17 +0000 (15:51 +0000)
When the chan_sip cleanup went in, a typo was included that caused some
subscriptions of non-Polycom phones to be limited to the same
capabilities as Polycom phones. This resolves the failures in the test
suite resulting from this regression.

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

channels/chan_sip.c

index c56c553..ac1a0e0 100644 (file)
@@ -26604,7 +26604,7 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req,
                                if (strstr(p->useragent, "Polycom")) {
                                        subscribed = XPIDF_XML; /* Older versions of Polycom firmware will claim pidf+xml, but really they only support xpidf+xml */
                                } else {
-                                       subscribed = XPIDF_XML; /* RFC 3863 format */
+                                       subscribed = PIDF_XML; /* RFC 3863 format */
                                }
                        } else if (strstr(accept, "application/dialog-info+xml")) {
                                subscribed = DIALOG_INFO_XML;