Bläddra i källkod

topos: skip options from contact header check

- reported by Daren Crew, GH #715
Daniel-Constantin Mierla 9 år sedan
förälder
incheckning
ab27f988cf
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      modules/topos/tps_storage.c

+ 2 - 1
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;
 		}