Rate announcement before connecting outgoing call

Any ideas how to add a short message announcing the rate before an outbound call is connected, e.g. “2.4 cents per minute”. My trunk provider has an API, which basically is a https requests with the destination number, which returns the rates.


This link should point you in the right direction.