on_pager property

Pointer<NativeFunction<Void Function(pjsua_call_id call_id, Pointer<pj_str_t> from, Pointer<pj_str_t> to, Pointer<pj_str_t> contact, Pointer<pj_str_t> mime_type, Pointer<pj_str_t> body)>> on_pager
getter/setter pair

Notify application on incoming pager (i.e. MESSAGE request). Argument call_id will be -1 if MESSAGE request is not related to an existing call.

See also \a on_pager2() callback for the version with \a pjsip_rx_data passed as one of the argument.

@param call_id Containts the ID of the call where the IM was sent, or PJSUA_INVALID_ID if the IM was sent outside call context. @param from URI of the sender. @param to URI of the destination message. @param contact The Contact URI of the sender, if present. @param mime_type MIME type of the message. @param body The message content.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Void Function(
            pjsua_call_id call_id,
            ffi.Pointer<pj_str_t> from,
            ffi.Pointer<pj_str_t> to,
            ffi.Pointer<pj_str_t> contact,
            ffi.Pointer<pj_str_t> mime_type,
            ffi.Pointer<pj_str_t> body)>> on_pager;