Skip to content

Commit

Permalink
Merge branch 'feature/sip-message-not-anonymized-VIALA-793' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy.norman committed Mar 22, 2018
2 parents feb8ed1 + c56022d commit 1964b83
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class SipLogAnonymizer implements Formatter {
@Override
public String format(String tag, String message) {

message = Pattern.compile("sip:\\+?\\d+").matcher(message).replaceAll("sip:SIP_USER_ID");
message = Pattern.compile("\"caller_id\" = (.+?);").matcher(message).replaceAll("<CALLER_ID>");
message = Pattern.compile("To:(.+?)>").matcher(message).replaceAll("To: <SIP_ANONYMIZED>");
Expand All @@ -23,6 +22,6 @@ public String format(String tag, String message) {

@Override
public boolean shouldFormat(String tag, String message) {
return tag.contains(SipService.class.getSimpleName());
return tag.contains(SipService.class.getSimpleName()) || tag.contains("Pjsip");
}
}

0 comments on commit 1964b83

Please sign in to comment.