Skip to content

Commit

Permalink
Merged in feat/74 (pull request #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimecasero committed May 11, 2016
2 parents 3af7d9e + d974cd3 commit eb7dc26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gov/nist/javax/sip/message/SIPRequest.java
Expand Up @@ -279,8 +279,13 @@ public void checkHeaders() throws ParseException {
if (getHeader(SubscriptionStateHeader.NAME) == null)
throw new ParseException(prefix + SubscriptionStateHeader.NAME, 0);

if (getHeader(EventHeader.NAME) == null)
//https://github.com/RestComm/jain-sip/issues/74
//Event header mandatory just for in-dialog NOTIFY
if (getFromHeader().getTag()!=null &&
getToHeader().getTag() != null && getHeader(EventHeader.NAME) == null)
{
throw new ParseException(prefix + EventHeader.NAME, 0);
}

} else if (getMethod().equals(Request.PUBLISH)) {
/*
Expand Down

0 comments on commit eb7dc26

Please sign in to comment.