I’m trying to perform a remote SIP transfer using PJSIP ari.channel().redirect. According to the documentation, in order to perform the transfer, 3 things are needed from the originating call:
Using CHANNEL(pjsip,call-id) it is possible to get the call ID; however, I don’t seem to be able to obtain the from and to tags on the outbound channel.
The question is: how does one obtain the from and to tags on the outbound channel after a call has been established?
Background on the project:
- Alice calls IVR
- Alice selects option that requires an outbound call
- The outbound call is placed to Bob
- Bob receives a pre-recorded announcement based on IVR selection
- Alice is connected to Bob without joining a bridge. <=== This is where the redirect is needed.