Walk Away
If I get frustrated, or angry, or both, I sometimes just take a walk. Get away from the scene of frustration and remind yourself that you can't control the situation because you don't own the situation.
I changed my job duties and gave up my old duties to the person across the hall. It's sometimes hard not to jump in and say, "No, do it THIS way!" I just remind myself that I have to be responsible for what I'm tasked with.
If my co-worker's having an issue, I'll tell him that I overheard and that if he needs help, let me know. I'll even go get him a cup of coffee if he's stuck on the phone, which is something I don't do for just anyone. Now, he'll ask me to brainstorm an issue with him. It goes back to building that trust between us. I recognize that he's the "owner" and he recognizes that I'm a good person to bounce ideas off of.
That also goes the opposite direction. If he hears me having an issue, he'll ask what's going on, and we can hash out a possible solution.