浏览代码

uac: use transaction to propagate uac_auth() flag

- needed by dialog to increase the cseq
- local request is no longer accessible at forwarding callback
Daniel-Constantin Mierla 11 年之前
父节点
当前提交
952227ef74
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      modules/uac/auth.c

+ 4 - 2
modules/uac/auth.c

@@ -469,8 +469,10 @@ int uac_auth( struct sip_msg *msg)
 		goto error;
 	}
 
-	/* mark msg wit uac auth for increase of cseq via dialog */
-	msg->msg_flags |= FL_UAC_AUTH;
+	/* mark request in T with uac auth for increase of cseq via dialog
+	 * - this function is executed in failure route, msg_flags will be
+	 *   reset afterwards by tm fake env */
+	if(t->uas.request) t->uas.request->msg_flags |= FL_UAC_AUTH;
 
 	return 0;
 error: