[sr-dev] git:master:98f92714: topos: no processing needed for 100 responses

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 18 18:25:24 CET 2016


Module: kamailio
Branch: master
Commit: 98f927149c2f6865dd6b709f4a3bb7be77e57f5c
URL: https://github.com/kamailio/kamailio/commit/98f927149c2f6865dd6b709f4a3bb7be77e57f5c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-03-18T16:05:18+01:00

topos: no processing needed for 100 responses

---

Modified: modules/topos/topos_mod.c
Modified: modules/topos/tps_msg.c

---

Diff:  https://github.com/kamailio/kamailio/commit/98f927149c2f6865dd6b709f4a3bb7be77e57f5c.diff
Patch: https://github.com/kamailio/kamailio/commit/98f927149c2f6865dd6b709f4a3bb7be77e57f5c.patch

---

diff --git a/modules/topos/topos_mod.c b/modules/topos/topos_mod.c
index 99267a1..4bdcbcf 100644
--- a/modules/topos/topos_mod.c
+++ b/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);
 	}
 
diff --git a/modules/topos/tps_msg.c b/modules/topos/tps_msg.c
index eee546d..e6d02ce 100644
--- a/modules/topos/tps_msg.c
+++ b/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));




More information about the sr-dev mailing list