Browse code

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 authored on 03/11/2014 17:41:01
Showing 1 changed files
... ...
@@ -469,8 +469,10 @@ int uac_auth( struct sip_msg *msg)
469 469
 		goto error;
470 470
 	}
471 471
 
472
-	/* mark msg wit uac auth for increase of cseq via dialog */
473
-	msg->msg_flags |= FL_UAC_AUTH;
472
+	/* mark request in T with uac auth for increase of cseq via dialog
473
+	 * - this function is executed in failure route, msg_flags will be
474
+	 *   reset afterwards by tm fake env */
475
+	if(t->uas.request) t->uas.request->msg_flags |= FL_UAC_AUTH;
474 476
 
475 477
 	return 0;
476 478
 error: