b/f: User-Agent and Max-Forwards headers in authenticated requests

thanks to Jon Bonilla for reporting
sayer/1.4-spce2.6
Stefan Sayer 14 years ago
parent 1cc9816770
commit 430f78aead

@ -1008,12 +1008,6 @@ int AmSipDialog::sendRequest(const string& method,
int flags)
{
string msg,ser_cmd;
string m_hdrs = hdrs;
if(hdl)
hdl->onSendRequest(method,content_type,body,m_hdrs,flags,cseq);
rel100OnRequestOut(method, m_hdrs);
AmSipRequest req;
@ -1033,10 +1027,9 @@ int AmSipDialog::sendRequest(const string& method,
if((method!="BYE")&&(method!="CANCEL"))
req.contact = getContactHdr();
req.hdrs = hdrs;
if(!m_hdrs.empty())
req.hdrs = m_hdrs;
if (!(flags&SIP_FLAGS_VERBATIM)) {
// add Signature
if (AmConfig::Signature.length())
@ -1053,6 +1046,11 @@ int AmSipDialog::sendRequest(const string& method,
req.body = body;
}
if(hdl)
hdl->onSendRequest(method,content_type,body,req.hdrs,flags,cseq);
rel100OnRequestOut(method, req.hdrs);
if (SipCtrlInterface::send(req, next_hop_ip, next_hop_port,outbound_interface))
return -1;

Loading…
Cancel
Save