on_call_rx_offer property

Pointer<NativeFunction<Void Function(pjsua_call_id call_id, Pointer<pjmedia_sdp_session> offer, Pointer<Void> reserved, Pointer<Int32> code, Pointer<pjsua_call_setting> opt)>> on_call_rx_offer
getter/setter pair

Notify application when call has received new offer from remote (i.e. re-INVITE/UPDATE with SDP is received, or from the INVITE response in the case that the initial outgoing INVITE has no SDP). Application can decide to accept/reject the offer by setting the code (default is 200). If the offer is accepted, application can update the call setting to be applied in the answer. When this callback is not defined, the default behavior is to accept the offer using current call setting.

Note: this callback may not be called if \a on_call_rx_reinvite() is implemented.

@param call_id The call index. @param offer The new offer received. @param reserved Reserved param, currently not used. @param code Status code to be returned for answering the offer. On input, it contains status code 200. Currently, valid values are only 200 and 488. @param opt The current call setting, application can update this setting for answering the offer.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Void Function(
            pjsua_call_id call_id,
            ffi.Pointer<pjmedia_sdp_session> offer,
            ffi.Pointer<ffi.Void> reserved,
            ffi.Pointer<ffi.Int32> code,
            ffi.Pointer<pjsua_call_setting> opt)>> on_call_rx_offer;