A stateful proxy is not a B2BUA.  Stateful proxies are very limited in what they can do - in particular, they can't change dialog identifiers while proxying.  B2BUAs are not - they accept a SIP message on one side and generate another, possibly completely different, SIP message on the other.