Module: kamailio
Branch: master
Commit: ab27f988cffcbd060ca84abd118050cb3c5c923f
URL:
https://github.com/kamailio/kamailio/commit/ab27f988cffcbd060ca84abd118050c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/ab27f988cffcbd060ca84abd118050c…
Patch:
https://github.com/kamailio/kamailio/commit/ab27f988cffcbd060ca84abd118050c…
---
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;
}