Browse Source

topos: remove check of th_param_mask_callid() for api callid masking

- functions are not for topoh internal usage, but for intermodule API
- reported as part of GH #3606
Daniel-Constantin Mierla 1 year ago
parent
commit
e5ecb666ab
1 changed files with 0 additions and 9 deletions
  1. 0 9
      src/modules/topoh/th_msg.c

+ 0 - 9
src/modules/topoh/th_msg.c

@@ -508,12 +508,6 @@ int th_mask_callid_str(str *icallid, str *ocallid)
 {
 	str out;
 
-	if(th_param_mask_callid == 0)
-		return 0;
-
-	if(th_param_mask_callid == 0)
-		return 0;
-
 	if(icallid->s == NULL) {
 		LM_ERR("invalid call-id value\n");
 		return -1;
@@ -535,9 +529,6 @@ int th_unmask_callid_str(str *icallid, str *ocallid)
 {
 	str out;
 
-	if(th_param_mask_callid == 0)
-		return 0;
-
 	if(icallid->s == NULL) {
 		LM_ERR("invalid Call-Id value\n");
 		return -1;