pjsua_buddy_add method
Add new buddy to the buddy list. If presence subscription is enabled for this buddy, this function will also start the presence subscription session immediately.
@param buddy_cfg Buddy configuration. @param p_buddy_id Pointer to receive buddy ID.
@return PJ_SUCCESS on success, or the appropriate error code.
Implementation
int pjsua_buddy_add(
ffi.Pointer<pjsua_buddy_config> buddy_cfg,
ffi.Pointer<pjsua_buddy_id> p_buddy_id,
) {
return _pjsua_buddy_add(
buddy_cfg,
p_buddy_id,
);
}