Cisco 9951 - Pain! Applying Patch

I am attempting to apply the patch from https://issues.asterisk.org/jira/browse/ASTERISK-13145?attachmentSortBy=dateTime#attachmentmodule

Which I believe is the Presence patch- For one not sure which one I need- 2 I am not to good at using linux0

But am unable to find out how to actually apply the patch-

Have the Cisco 9951 phones and have video and calls working but can not seem to get the presence working-

Also seems to be a bug with these phones when a missed call happens the line appears to stay open-
Any help would be appreciated-