fixes double 'Route:' in header

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@666 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 5ba73640d4
commit 6cc1aa9c0d

@ -1047,13 +1047,13 @@ static inline brpc_t *build_cancel(const AmSipRequest &amReq)
return req;
}
#define XTRA_HDRS(_xhdrs, _msg) \
string _xhdrs; \
if (_msg.route.length()) \
_xhdrs += SIP_HDR_COLSP(SIP_HDR_ROUTE) + _msg.route + CRLF; \
if (_msg.contact.length()) \
_xhdrs += _msg.contact; \
if (_msg.content_type.length()) \
#define XTRA_HDRS(_xhdrs, _msg) \
string _xhdrs; \
if (_msg.route.length()) \
_xhdrs += _msg.route; \
if (_msg.contact.length()) \
_xhdrs += _msg.contact; \
if (_msg.content_type.length()) \
_xhdrs += SIP_HDR_COLSP(SIP_HDR_CONTENT_TYPE) + _msg.content_type + CRLF;\
_xhdrs += _msg.hdrs;

Loading…
Cancel
Save