on_call_sdp_created property

Pointer<NativeFunction<Void Function(pjsua_call_id call_id, Pointer<pjmedia_sdp_session> sdp, Pointer<pj_pool_t> pool, Pointer<pjmedia_sdp_session> rem_sdp)>> on_call_sdp_created
getter/setter pair

Notify application when a call has just created a local SDP (for initial or subsequent SDP offer/answer). Application can implement this callback to modify the SDP, before it is being sent and/or negotiated with remote SDP, for example to apply per account/call basis codecs priority or to add custom/proprietary SDP attributes.

@param call_id The call index. @param sdp The SDP has just been created. @param pool The pool instance, application should use this pool to modify the SDP. @param rem_sdp The remote SDP, will be NULL if local is SDP offerer.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Void Function(
            pjsua_call_id call_id,
            ffi.Pointer<pjmedia_sdp_session> sdp,
            ffi.Pointer<pj_pool_t> pool,
            ffi.Pointer<pjmedia_sdp_session> rem_sdp)>> on_call_sdp_created;