Browse Source

topos: no processing needed for 100 responses

Daniel-Constantin Mierla 9 years ago
parent
commit
98f927149c
2 changed files with 9 additions and 0 deletions
  1. 4 0
      modules/topos/topos_mod.c
  2. 5 0
      modules/topos/tps_msg.c

+ 4 - 0
modules/topos/topos_mod.c

@@ -292,6 +292,10 @@ int tps_msg_received(void *data)
 		}
 	} else {
 		/* reply */
+		if(msg->first_line.u.reply.statuscode==100) {
+			/* nothing to do - it should be absorbed */
+			return 0;
+		}
 		tps_response_received(&msg);
 	}
 

+ 5 - 0
modules/topos/tps_msg.c

@@ -491,6 +491,11 @@ int tps_response_received(sip_msg_t *msg)
 	tps_data_t btsd;
 	str lkey;
 
+	if(msg->first_line.u.reply.statuscode==100) {
+		/* nothing to do - it should be absorbed */
+		return 0;
+	}
+
 	memset(&mtsd, 0, sizeof(tps_data_t));
 	memset(&stsd, 0, sizeof(tps_data_t));
 	memset(&btsd, 0, sizeof(tps_data_t));