pjsua_call_xfer method
Initiate call transfer to the specified address. This function will send REFER request to instruct remote call party to initiate a new INVITE session to the specified destination/target.
If application is interested to monitor the successfulness and the progress of the transfer request, it can implement \a on_call_transfer_status() callback which will report the progress of the call transfer request.
@param call_id The call id to be transferred. @param dest URI of new target to be contacted. The URI may be in name address or addr-spec format. @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(
int call_id,
ffi.Pointer<pj_str_t> dest,
ffi.Pointer<pjsua_msg_data> msg_data,
) {
return _pjsua_call_xfer(
call_id,
dest,
msg_data,
);
}