libzrtp  1.2.0
ZRTP VoIP security
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
zrtp_pbx.h
Go to the documentation of this file.
1 /*
2  * libZRTP SDK library, implements the ZRTP secure VoIP protocol.
3  * Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.
4  * Contact: http://philzimmermann.com
5  * For licensing and other legal details, see the file zrtp_legal.c.
6  *
7  * Viktor Krykun <v.krikun at zfoneproject.com>
8  */
9 
10 
16 #ifndef __ZRTP_PBX_H__
17 #define __ZRTP_PBX_H__
18 
19 #include "zrtp_config.h"
20 #include "zrtp_types.h"
21 
22 #if defined(__cplusplus)
23 extern "C"
24 {
25 #endif
26 
48 zrtp_status_t zrtp_stream_registration_start(zrtp_stream_t* stream, uint32_t ssrc);
49 
59 zrtp_status_t zrtp_stream_registration_secure(zrtp_stream_t* stream);
60 
71 zrtp_status_t zrtp_register_with_trusted_mitm(zrtp_stream_t* stream);
72 
93 zrtp_status_t zrtp_resolve_mitm_call(zrtp_stream_t* stream1, zrtp_stream_t* stream2);
94 
106 zrtp_status_t zrtp_link_mitm_calls(zrtp_stream_t* stream1, zrtp_stream_t* stream2);
107 
125 zrtp_status_t zrtp_update_remote_options( zrtp_stream_t* stream,
126  zrtp_sas_id_t transf_sas_scheme,
127  zrtp_string32_t* transf_sas_value,
128  uint8_t transf_ac_flag,
129  uint8_t transf_d_flag );
130 
136 uint8_t zrtp_is_user_enrolled(zrtp_stream_t* stream);
137 
144 zrtp_stream_t* zrtp_choose_one_enrolled(zrtp_stream_t* stream1, zrtp_stream_t* stream2);
145 
146 /* \} */
147 
148 #if defined(__cplusplus)
149 }
150 #endif
151 
152 #endif