Browse Source

modules_k/uac: fix handling of empty display-part.

This re-enables the feature to strip the display name by setting
an empty string, like uac_replace_from("", "$var(from)");
Andreas Granig 13 years ago
parent
commit
40b37899aa
1 changed files with 4 additions and 7 deletions
  1. 4 7
      modules_k/uac/uac.c

+ 4 - 7
modules_k/uac/uac.c

@@ -435,14 +435,11 @@ static int fixup_replace_disp_uri(void** param, int param_no)
 			s.len += 2;
 		}
 	}
-	if(s.len!=0)
+	if(pv_parse_format(&s ,&model)<0)
 	{
-		if(pv_parse_format(&s ,&model)<0)
-		{
-			LM_ERR("wrong format [%s] for param no %d!\n", s.s, param_no);
-			pkg_free(s.s);
-			return E_UNSPEC;
-		}
+		LM_ERR("wrong format [%s] for param no %d!\n", s.s, param_no);
+		pkg_free(s.s);
+		return E_UNSPEC;
 	}
 	*param = (void*)model;