I have similar error too, but its happening only on three locations. Here is the output of patch command on my debian 605.
patching file resip/dum/dum_9_0.vcproj
patching file resip/stack/Connection.cxx
patching file resip/stack/ConnectionBase.cxx
patching file resip/stack/ConnectionBase.hxx
patching file resip/stack/DnsInterface.cxx
patching file resip/stack/DnsResult.cxx
patching file resip/stack/EnableFlowTimer.hxx
patching file resip/stack/HeaderHash.cxx
patching file resip/stack/HeaderHash.gperf
patching file resip/stack/HeaderTypes.hxx
patching file resip/stack/Headers.cxx
patching file resip/stack/Headers.hxx
patching file resip/stack/KeepAlivePong.hxx
patching file resip/stack/Makefile
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 165.
Hunk #3 FAILED at 218.
3 out of 3 hunks FAILED -- saving rejects to file resip/stack/Makefile.rej
patching file resip/stack/Makefile.am
patching file resip/stack/MessageFilterRule.cxx
patching file resip/stack/MethodHash.cxx
patching file resip/stack/ParameterHash.cxx
patching file resip/stack/ParameterHash.gperf
patching file resip/stack/ParameterTypeEnums.hxx
patching file resip/stack/ParameterTypes.cxx
patching file resip/stack/ParameterTypes.hxx
patching file resip/stack/SipMessage.cxx
patching file resip/stack/SipMessage.hxx
patching file resip/stack/SipStack.cxx
patching file resip/stack/Symbols.cxx
patching file resip/stack/Symbols.hxx
patching file resip/stack/TerminateFlow.hxx
patching file resip/stack/TransactionState.cxx
patching file resip/stack/TransportSelector.cxx
patching file resip/stack/Uri.cxx
patching file resip/stack/Uri.hxx
patching file resip/stack/WsDecorator.cxx
patching file resip/stack/WsDecorator.hxx
patching file resip/stack/WsTransport.cxx
patching file resip/stack/WsTransport.hxx
patching file resip/stack/gperf_w32.bat
patching file resip/stack/resiprocate_10_0.vcxproj
patching file resip/stack/resiprocate_10_0.vcxproj.filters
patching file resip/stack/resiprocate_8_0.vcproj
patching file resip/stack/resiprocate_9_0.vcproj
patching file rutil/TransportType.cxx
patching file rutil/TransportType.hxx
patching file rutil/dns/RRCache.cxx
patching file rutil/rutil_9_0.vcproj
Thank you.