Browse Source

bug fix: t_shold_reply should not refer to UAS->request which possibly does
not exists with local transactions

Jiri Kuthan 23 years ago
parent
commit
306a4fda27
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modules/tm/t_reply.c

+ 3 - 0
modules/tm/t_reply.c

@@ -640,7 +640,10 @@ enum rps t_should_relay_response( struct cell *Trans , int new_code,
 	/* if final response sent out, allow only INVITE 2xx  */
 	if ( Trans->uas.status >= 200 ) {
 		if (new_code>=200 && new_code < 300  && 
+#ifdef _BUG_FIX /* t may be local, in which case there is no request */
 			Trans->uas.request->REQ_METHOD==METHOD_INVITE) {
+#endif
+			Trans->is_invite ) {
 			DBG("DBG: t_should_relay: 200 INV after final sent\n");
 			*should_store=0;
 			Trans->uac[branch].last_received=new_code;