75
static const char * const TIMESTAMP_START_KEY = "timestamp_start";
76
static const char * const MISSED_STRING = "missed";
77
static const char * const INCOMING_STRING = "incoming";
78
static const char * const OUTGOING_STRING = "outgoing";
87
81
SRTP_STATE_UNLOCKED = 0,
88
82
SRTP_STATE_SDES_SUCCESS,
103
97
gchar* _state_code_description; // A textual description of _state_code
104
98
gchar* _callID; // The call ID
105
99
gchar* _confID; // The conference ID (NULL if don't participate to a conference)
106
gchar* _historyConfID; // Persistent conf id to be stored in history
100
gchar* _historyConfID; // Persistent conf id to be stored in history
107
101
gchar* _accountID; // The account the call is made with
108
102
time_t _time_start; // The timestamp the call was initiating
109
103
time_t _time_stop; // The timestamp the call was over
110
history_state_t _history_state; // The history state if necessary
104
gchar *_history_state; // The history state if necessary
111
105
srtp_state_t _srtp_state; // The state of security on the call
112
106
gchar* _srtp_cipher; // Cipher used for the srtp session
113
107
gchar* _sas; // The Short Authentication String that should be displayed
159
153
/* Associated IM widget */
160
154
GtkWidget *_im_widget;
163
155
} callable_obj_t;
165
callable_obj_t *create_new_call (callable_type_t, call_state_t, const gchar* const, const gchar* const, const gchar* const, const gchar* const);
167
callable_obj_t *create_new_call_from_details (const gchar *, GHashTable *);
169
callable_obj_t *create_history_entry_from_serialized_form (const gchar *);
171
void call_add_error (callable_obj_t * call, gpointer dialog);
173
void call_remove_error (callable_obj_t * call, gpointer dialog);
175
void call_remove_all_errors (callable_obj_t * call);
157
callable_obj_t *create_new_call(callable_type_t, call_state_t, const gchar* const, const gchar* const, const gchar* const, const gchar* const);
159
callable_obj_t *create_new_call_from_details(const gchar *, GHashTable *);
161
callable_obj_t *create_history_entry_from_hashtable(GHashTable *entry);
163
GHashTable* create_hashtable_from_history_entry(callable_obj_t *entry);
165
void call_add_error(callable_obj_t * call, gpointer dialog);
167
void call_remove_error(callable_obj_t * call, gpointer dialog);
169
void call_remove_all_errors(callable_obj_t * call);
178
172
* GCompareFunc to compare a callID (gchar* and a callable_obj_t)
183
177
* GCompareFunc to get current call (gchar* and a callable_obj_t)
185
gint get_state_callstruct (gconstpointer, gconstpointer);
179
gint get_state_callstruct(gconstpointer, gconstpointer);
188
182
* This function parse the callable_obj_t.from field to return the name
189
183
* @param c The call
190
184
* @return The full name of the caller or an empty string
192
gchar* call_get_peer_name (const gchar*);
186
gchar* call_get_display_name(const gchar*);
195
189
* This function parse the callable_obj_t.from field to return the number
196
190
* @param c The call
197
191
* @return The number of the caller
199
gchar* call_get_peer_number (const gchar*);
201
void free_callable_obj_t (callable_obj_t *c);
203
gchar* get_peer_info (const gchar* const, const gchar* const);
205
gchar* get_call_duration (callable_obj_t *obj);
207
gchar* serialize_history_call_entry(callable_obj_t *entry);
209
gchar* get_formatted_start_timestamp (time_t);
211
gchar* call_get_audio_codec (callable_obj_t *obj);
193
gchar* call_get_peer_number(const gchar*);
195
void free_callable_obj_t(callable_obj_t *c);
197
gchar* get_peer_info(const gchar* const, const gchar* const);
199
gchar* get_call_duration(callable_obj_t *obj);
201
gchar* get_formatted_start_timestamp(time_t);
203
gchar* call_get_audio_codec(callable_obj_t *obj);
205
gboolean call_was_outgoing(callable_obj_t * obj);