Преглед изворни кода

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;
 		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;
 	return 0;
 error:
 error: