2
0
Эх сурвалжийг харах

- fix adding Route headers for CANCEL (closes #1964515, reported by axlh)

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4593 689a6050-402a-0410-94f2-e92a70836424
Daniel-Constantin Mierla 17 жил өмнө
parent
commit
fa1e99f7e8

+ 2 - 1
modules_k/tm/t_msgbuilder.c

@@ -278,7 +278,8 @@ char *build_local(struct cell *Trans,unsigned int branch,
 	*len+=from.len+Trans->callid.len+to.len+cseq_n.len+1+method_len+CRLF_LEN;
 
 	/* copy'n'paste Route headers that were sent out */
-	if (!is_local(Trans) && req && req->route) {
+	/* dcm: todo - investigate why not applies to local requests?!? */
+	if (!is_local(Trans)) {
 		buf_hdrs = extract_parsed_hdrs(Trans->uac[branch].request.buffer.s,
 			Trans->uac[branch].request.buffer.len );
 		if (buf_hdrs==NULL) {