on_call_transfer_request2 property

Pointer<NativeFunction<Void Function(pjsua_call_id call_id, Pointer<pj_str_t> dst, Pointer<Int32> code, Pointer<pjsua_call_setting> opt)>> on_call_transfer_request2
getter/setter pair

Notify application on call being transferred (i.e. REFER is received). Application can decide to accept/reject transfer request by setting the code (default is 202). When this callback is not defined, the default behavior is to accept the transfer.

@param call_id The call index. @param dst The destination where the call will be transferred to. @param code Status code to be returned for the call transfer request. On input, it contains status code 202. @param opt The current call setting, application can update this setting for the call being transferred.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Void Function(
            pjsua_call_id call_id,
            ffi.Pointer<pj_str_t> dst,
            ffi.Pointer<ffi.Int32> code,
            ffi.Pointer<pjsua_call_setting> opt)>> on_call_transfer_request2;