simplify logic in iax2_bridge()