Module: kamailio
Branch: master
Commit: 1f02ee62951523f001899d12d1750046f1ba53b6
URL:
https://github.com/kamailio/kamailio/commit/1f02ee62951523f001899d12d175004…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-23T09:06:57+01:00
topos: proper condition to detect 3xx redirect for contact updates
- GH #1720
---
Modified: src/modules/topos/tps_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1f02ee62951523f001899d12d175004…
Patch:
https://github.com/kamailio/kamailio/commit/1f02ee62951523f001899d12d175004…
---
diff --git a/src/modules/topos/tps_msg.c b/src/modules/topos/tps_msg.c
index 9880650290..897f3b675e 100644
--- a/src/modules/topos/tps_msg.c
+++ b/src/modules/topos/tps_msg.c
@@ -1077,8 +1077,8 @@ int tps_response_sent(sip_msg_t *msg)
tps_remove_headers(msg, HDR_RECORDROUTE_T);
/* keep contact without updates for redirect responses sent out */
- if(msg->first_line.u.reply.statuscode<300
- || msg->first_line.u.reply.statuscode>=400) {
+ if(msg->first_line.u.reply.statuscode>=300
+ && msg->first_line.u.reply.statuscode<400) {
contact_keep = 1;
}
if(contact_keep==0 && msg->first_line.u.reply.statuscode>100