Running Asterisk 11.7
I have a situation where I need to issue a SIP REFER, using the Transfer() command to a provider after the call has been bridged to an internal extension. This REFER will be utilized to redirect the incoming call channel to a conference bridge at the provider and conference in a 3rd party. So after the REFER is issued, the two channels need to remain bridged together. The bridge server sits in the cloud and Asterisk does not have access to make outbound calls through this provider so we don’t have the option of having Asterisk conference the 3 endpoints together.
More detail:
-Provider (channel A) initiates call to Asterisk
-Call is sent to Channel B and the two channels are bridged together
-The two parties converse
-Extension requests Asterisk to issue the Transfer command on Channel A (method tbd)
-Asterisk issues REFER to provider on Channel A
-Provider Reinvites Channel A to the conference bridge and conferences in a 3rd party
-Channel A and Channel B either remain bridged or are re-bridged after the REFER is completed (regardless of result).
The issue I’m running into is how to get Channel A to execute the Transfer() command while it is bridged to Channel B? I’ve contemplated issuing a dual redirect through AMI. Channel B will just execute a “wait” command. Channel A will execute the Transfer() command and, on completion, execute a Bridge command to bridge it back to Channel B. However, I’m wondering if there is a better/easier/cleaner way to accomplish this.
Any help is appreciated.