A holding session with B and calling on session with C. A transfer B to C by implementing code below. How to get info of B in C, i tried listening ua.on('newMessage', cb)
and adding ua.sendMessage(currentSession?.remote_identity.uri, 'dataOfB')
in A but ua.on('newMessage', cb)
only fired in A.
How to C detect call transfered successfully or get message from A. Thanks all!
replaces: currentSession,
mediaConstraints: { audio: true, video: false },
pcConfig: {
rtcpMuxPolicy: 'negotiate',
},
};
holdSession?.refer(currentSession?.remote_identity.uri, options);
currentSession?.terminate();
holdSession?.terminate();
As stated in their docs:
The documentation on these events can be found here.
Take a look at this other answer for a working example.