on_call_replace_request2 property

Pointer<NativeFunction<Void Function(pjsua_call_id call_id, Pointer<pjsip_rx_data> rdata, Pointer<Int> st_code, Pointer<pj_str_t> st_text, Pointer<pjsua_call_setting> opt)>> on_call_replace_request2
getter/setter pair

Notify application about incoming INVITE with Replaces header. Application may reject the request by setting non-2xx code.

@param call_id The call ID to be replaced. @param rdata The incoming INVITE request to replace the call. @param st_code Status code to be set by application. Application should only return a final status (200-699). @param st_text Optional status text to be set by application. @param opt The current call setting, application can update this setting for the call being replaced.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Void Function(
            pjsua_call_id call_id,
            ffi.Pointer<pjsip_rx_data> rdata,
            ffi.Pointer<ffi.Int> st_code,
            ffi.Pointer<pj_str_t> st_text,
            ffi.Pointer<pjsua_call_setting> opt)>> on_call_replace_request2;