From 9ece20100ffb2a3482a3a00700ed4b02ae1990ca Mon Sep 17 00:00:00 2001 From: marian Date: Tue, 17 Jan 2012 16:26:46 +0000 Subject: [PATCH] Don't quote the qop and nc parameters in Authorization response. Patch suggested by billsimon in Mantis issue #285. git-svn-id: http://voip.null.ro/svn/yate@4807 acf43c95-373e-0410-b603-e72c3f656dc1 --- libs/ysip/message.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libs/ysip/message.cpp b/libs/ysip/message.cpp index 70960e44..e1db9942 100644 --- a/libs/ysip/message.cpp +++ b/libs/ysip/message.cpp @@ -692,10 +692,14 @@ MimeAuthLine* SIPMessage::buildAuth(const String& username, const String& passwo if (opaque) auth->setParam(opaque->name(),*opaque); if (qop) { - auth->setParam("qop",MimeHeaderLine::quote(qop)); + auth->setParam("qop",qop); NamedIterator iter(qop); - for (const NamedString* ns = 0; 0 != (ns = iter.get());) - auth->setParam(ns->name(),MimeHeaderLine::quote(*ns)); + for (const NamedString* ns = 0; 0 != (ns = iter.get());) { + if (ns->name() == YSTRING("nc")) + auth->setParam(ns->name(),*ns); + else + auth->setParam(ns->name(),MimeHeaderLine::quote(*ns)); + } } return auth; }