Had a 727 flight to Barranquila Columbia and both destination and alternate went below minimums with thunderstorms just over an hour out. We were unable to contact dispatch so got a reroute to Panama City and landed in VMC conditions. I don't know what the legal way to handle it was but sometimes you have to do what makes sense to keep everybody safe.