Conditional REFER transfer
I'm trying to setup a call flow where a refer transfer is consumde (INvite created) for some refer-to destinations and passed through to the originator for all others.
Example 1: Call comes from the PSTN to the ACME and routes to an internal contact center. The contact center determines the call needs to an international external destination (prefix 011), sends a refer to the ACME. In this cal flow the ACME needs to terminate the refer and route the call to a different PSTN carrier for the international call.
(PSTN > ACME > Contact Center > REFER To -ACME > INternational dialing PSTN)
Example 2: Call comes from the PSTN carrier to the ACME and routes to an internal contact center. The contact center determines the call needs to a national external destination (prefix 1), sends a refer to the ACME. In this call flow the ACME needs to pass the REFER back to the originating carrier.