pjsua_call_answer method
Send response to incoming INVITE request. Depending on the status code specified as parameter, this function may send provisional response, establish the call, or terminate the call. See also #pjsua_call_answer2().
@param call_id Incoming call identification. @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(
int call_id,
int code,
ffi.Pointer<pj_str_t> reason,
ffi.Pointer<pjsua_msg_data> msg_data,
) {
return _pjsua_call_answer(
call_id,
code,
reason,
msg_data,
);
}