[sr-dev] git:master:ab27f988: topos: skip options from contact header check

Daniel-Constantin Mierla miconda at gmail.com
Tue Jul 19 15:43:54 CEST 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-07-19T15:36:43+02:00

topos: skip options from contact header check

- reported by Daren Crew, GH #715

---

Modified: modules/topos/tps_storage.c

---

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

---

diff --git a/modules/topos/tps_storage.c b/modules/topos/tps_storage.c
index 8951ee1..9d59e5a 100644
--- a/modules/topos/tps_storage.c
+++ b/modules/topos/tps_storage.c
@@ -298,7 +298,8 @@ int tps_storage_link_msg(sip_msg_t *msg, tps_data_t *td, int dir)
 
 	/* extract the contact address */
 	if(parse_headers(msg, HDR_CONTACT_F, 0)<0 || msg->contact==NULL) {
-		if(td->s_method_id == METHOD_MESSAGE) {
+		if(td->s_method_id == METHOD_MESSAGE
+				|| td->s_method_id == METHOD_OPTIONS) {
 			/* no contact required for MESSAGE - done */
 			return 0;
 		}




More information about the sr-dev mailing list