[sr-dev] git:master: uac: use transaction to propagate uac_auth() flag

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 3 18:42:46 CET 2014


Module: sip-router
Branch: master
Commit: 952227ef749da464c7990fa7f056764daf4bda0d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=952227ef749da464c7990fa7f056764daf4bda0d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Nov  3 18:41:01 2014 +0100

uac: use transaction to propagate uac_auth() flag

- needed by dialog to increase the cseq
- local request is no longer accessible at forwarding callback

---

 modules/uac/auth.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/uac/auth.c b/modules/uac/auth.c
index 1717cc7..3bdee90 100644
--- a/modules/uac/auth.c
+++ b/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:




More information about the sr-dev mailing list