[reSIProcate] missing Max-Forwards in CANCEL
Mandatory header Max-Forwards missing in CANCEL.
/Björn
--- Helper.cxx.orig 2008-03-20 14:51:45.000000000 +0100
+++ Helper.cxx 2008-03-20 14:58:11.000000000 +0100
@@ -545,20 +545,21 @@
SipMessage*
Helper::makeCancel(const SipMessage& request)
{
assert(request.isRequest());
assert(request.header(h_RequestLine).getMethod() == INVITE);
SipMessage* cancel = new SipMessage;
RequestLine rLine(CANCEL,
request.header(h_RequestLine).getSipVersion());
rLine.uri() = request.header(h_RequestLine).uri();
cancel->header(h_RequestLine) = rLine;
+ cancel->header(h_MaxForwards).value() = 70;
cancel->header(h_To) = request.header(h_To);
cancel->header(h_From) = request.header(h_From);
cancel->header(h_CallId) = request.header(h_CallId);
if (request.exists(h_ProxyAuthorizations))
{
cancel->header(h_ProxyAuthorizations) =
request.header(h_ProxyAuthorizations);
}
if (request.exists(h_Authorizations))
{
cancel->header(h_Authorizations) = request.header(h_Authorizations);
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel