00001 /* 00002 * libZRTP SDK library, implements the ZRTP secure VoIP protocol. 00003 * Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved. 00004 * Contact: http://philzimmermann.com 00005 * For licensing and other legal details, see the file zrtp_legal.c. 00006 * 00007 * Viktor Krykun <v.krikun at zfoneproject.com> 00008 */ 00009 00010 00016 #ifndef __ZRTP_PBX_H__ 00017 #define __ZRTP_PBX_H__ 00018 00019 #include "zrtp_config.h" 00020 #include "zrtp_types.h" 00021 00022 #if defined(__cplusplus) 00023 extern "C" 00024 { 00025 #endif 00026 00048 zrtp_status_t zrtp_stream_registration_start(zrtp_stream_t* stream, uint32_t ssrc); 00049 00059 zrtp_status_t zrtp_stream_registration_secure(zrtp_stream_t* stream); 00060 00071 zrtp_status_t zrtp_register_with_trusted_mitm(zrtp_stream_t* stream); 00072 00093 zrtp_status_t zrtp_resolve_mitm_call(zrtp_stream_t* stream1, zrtp_stream_t* stream2); 00094 00112 zrtp_status_t zrtp_update_remote_options( zrtp_stream_t* stream, 00113 zrtp_sas_id_t transf_sas_scheme, 00114 zrtp_string32_t* transf_sas_value, 00115 uint8_t transf_ac_flag, 00116 uint8_t transf_d_flag ); 00117 00123 uint8_t zrtp_is_user_enrolled(zrtp_stream_t* stream); 00124 00131 zrtp_stream_t* zrtp_choose_one_enrolled(zrtp_stream_t* stream1, zrtp_stream_t* stream2); 00132 00133 /* \} */ 00134 00135 #if defined(__cplusplus) 00136 } 00137 #endif 00138 00139 #endif