pjsua_call_answer_with_sdp method

int pjsua_call_answer_with_sdp(
  1. int call_id,
  2. Pointer<pjmedia_sdp_session> sdp,
  3. Pointer<pjsua_call_setting> opt,
  4. int code,
  5. Pointer<pj_str_t> reason,
  6. Pointer<pjsua_msg_data> msg_data,
)

Same as #pjsua_call_answer2() but this function will set the SDP answer first before sending the response.

@param call_id Incoming call identification. @param sdp SDP answer. @param opt Optional call setting. @param code Status code, (100-699). @param reason Optional reason phrase. If NULL, default text will be used. @param msg_data Optional list of headers etc to be added to outgoing response message. Note that this message data will be persistent in all next answers/responses for this INVITE request.

@return PJ_SUCCESS on success, or the appropriate error code.

Implementation

int pjsua_call_answer_with_sdp(
  int call_id,
  ffi.Pointer<pjmedia_sdp_session> sdp,
  ffi.Pointer<pjsua_call_setting> opt,
  int code,
  ffi.Pointer<pj_str_t> reason,
  ffi.Pointer<pjsua_msg_data> msg_data,
) {
  return _pjsua_call_answer_with_sdp(
    call_id,
    sdp,
    opt,
    code,
    reason,
    msg_data,
  );
}