From 2ba04a283f55178d1d334f153787d3d3114b7a6d Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Sun, 2 Mar 2008 23:53:48 +0000 Subject: [PATCH] only add signature if non-empty git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@759 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/plug-in/sipctrl/SipCtrlInterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/plug-in/sipctrl/SipCtrlInterface.cpp b/core/plug-in/sipctrl/SipCtrlInterface.cpp index 9763c38f..63f5de1f 100644 --- a/core/plug-in/sipctrl/SipCtrlInterface.cpp +++ b/core/plug-in/sipctrl/SipCtrlInterface.cpp @@ -199,8 +199,9 @@ int SipCtrlInterface::send(const AmSipRequest &req, string &serKey) } } - msg->hdrs.push_back(new sip_header(0,"User-Agent", - stl2cstr(AmConfig::Signature))); + if (AmConfig::Signature.length()) + msg->hdrs.push_back(new sip_header(0,"User-Agent", + stl2cstr(AmConfig::Signature))); if(!req.hdrs.empty()) {