How do you gracefully end an informal phone call that's taking too long

I always initiate phone calls by giving the other person the expectation that I may be interrupted at any time, just in case of a situation like this.

Then I can tell them "hey, so and so is ready, I need to go talk to them about this thing for a minute."

Quick and polite.