only add signature if non-empty

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@759 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 6918f634c0
commit 2ba04a283f

@ -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()) {

Loading…
Cancel
Save