pjsua_call_xfer_replaces method
int
pjsua_call_xfer_replaces(
- int call_id,
- int dest_call_id,
- int options,
- Pointer<
pjsua_msg_data> msg_data,
Initiate attended call transfer. This function will send REFER request to instruct remote call party to initiate new INVITE session to the URL of \a dest_call_id. The party at \a dest_call_id then should "replace" the call with us with the new call from the REFER recipient.
@param call_id The call id to be transferred. @param dest_call_id The call id to be replaced. @param options Application may specify PJSUA_XFER_NO_REQUIRE_REPLACES to suppress the inclusion of "Require: replaces" in the outgoing INVITE request created by the REFER request. @param msg_data Optional message components to be sent with the request.
@return PJ_SUCCESS on success, or the appropriate error code.
Implementation
int pjsua_call_xfer_replaces(
int call_id,
int dest_call_id,
int options,
ffi.Pointer<pjsua_msg_data> msg_data,
) {
return _pjsua_call_xfer_replaces(
call_id,
dest_call_id,
options,
msg_data,
);
}