49
49
* Try to connect to DBus services
50
50
* @return TRUE if connection succeeded, FALSE otherwise
52
gboolean dbus_connect (GError **error);
52
gboolean dbus_connect(GError **error);
55
55
* Unreferences the proxies
60
60
* CallManager - Hold a call
61
61
* @param c The call to hold
63
void dbus_hold (const callable_obj_t * c);
63
void dbus_hold(const callable_obj_t *c);
66
66
* CallManager - Unhold a call
67
67
* @param c The call to unhold
69
void dbus_unhold (const callable_obj_t * c);
69
void dbus_unhold(const callable_obj_t *c);
72
72
* CallManager - Hang up a call
73
73
* @param c The call to hang up
75
void dbus_hang_up (const callable_obj_t * c);
75
void dbus_hang_up(const callable_obj_t *c);
78
78
* CallManager - Transfer a call
79
79
* @param c The call to transfer
81
void dbus_transfer (const callable_obj_t * c);
81
void dbus_transfer(const callable_obj_t *c);
84
84
* CallManager - Perform an attended transfer on two calls
91
91
* CallManager - Accept a call
92
92
* @param c The call to accept
94
void dbus_accept (const callable_obj_t * c);
94
void dbus_accept(const callable_obj_t *c);
97
97
* CallManager - Refuse a call
98
98
* @param c The call to refuse
100
void dbus_refuse (const callable_obj_t * c);
100
void dbus_refuse(const callable_obj_t *c);
103
103
* CallManager - Place a call
104
104
* @param c The call to place
106
void dbus_place_call (const callable_obj_t * c);
106
void dbus_place_call(const callable_obj_t *c);
110
110
* ConfigurationManager - Get the list of the setup accounts
111
111
* @return gchar** The list of accounts
113
gchar ** dbus_account_list();
113
gchar **dbus_account_list();
116
116
* ConfigurationManager - Get the details of a specific account
117
117
* @param accountID The unique of the account
118
118
* @return GHashTable* The details of the account
120
GHashTable * dbus_get_account_details (gchar * accountID);
120
GHashTable *dbus_get_account_details(const gchar *accountID);
123
123
* ConfigurationManager - Set the details of a specific account
124
124
* @param a The account to update
126
void dbus_set_account_details (account_t *a);
129
* ConfigurationManager - Set the additional credential information
130
* of a specific account.
131
* This function will add the new section on the server side
132
* if it cannot be found.
133
* @param a The account to update
135
void dbus_set_credentials (account_t *a);
138
* ConfigurationManager - Set the additional credential information
139
* of a specific account.
140
* This function will add the new section on the server side
141
* if it cannot be found.
142
* @param a The account to update
144
void dbus_get_credentials (account_t *a);
126
void dbus_set_account_details(account_t *a);
129
* ConfigurationManager - Set the additional credential information
130
* of a specific account.
131
* This function will add the new section on the server side
132
* if it cannot be found.
133
* @param a The account to update
135
void dbus_set_credentials(account_t *a);
138
* ConfigurationManager - Set the additional credential information
139
* of a specific account.
140
* This function will add the new section on the server side
141
* if it cannot be found.
142
* @param a The account to update
144
void dbus_get_credentials(account_t *a);
147
147
* ConfigurationManager - Get the details for the ip2ip profile
149
GHashTable * dbus_get_ip2_ip_details (void);
149
GHashTable *dbus_get_ip2_ip_details(void);
152
152
* ConfigurationManager - Send registration request
155
155
* 0 for unregistration request
156
156
* 1 for registration request
158
void dbus_send_register (gchar* accountID , const guint enable);
158
void dbus_send_register(const gchar *accountID, gboolean enable);
161
161
* ConfigurationManager - Add an account to the list
162
162
* @param a The account to add
164
void dbus_add_account (account_t *a);
164
void dbus_add_account(account_t *a);
167
167
* ConfigurationManager - Remove an account from the list
168
168
* @param accountID The account to remove
170
void dbus_remove_account (gchar * accountID);
170
void dbus_remove_account(const gchar *accountID);
173
173
* ConfigurationManager - Set volume for speaker/mic
174
174
* @param device The speaker or the mic
175
175
* @param value The new value
177
void dbus_set_volume (const gchar * device, gdouble value);
177
void dbus_set_volume(const gchar *device, gdouble value);
180
180
* ConfigurationManager - Get the volume of a device
181
181
* @param device The speaker or the mic
183
gdouble dbus_get_volume (const gchar * device);
183
gdouble dbus_get_volume(const gchar *device);
186
186
* ConfigurationManager - Play DTMF
187
187
* @param key The DTMF to send
189
void dbus_play_dtmf (const gchar * key);
189
void dbus_play_dtmf(const gchar *key);
192
192
* ConfigurationManager - Get the audio codecs list
199
199
* @param payload The payload of the audio codec
200
200
* @return gchar** The audio codec details
202
gchar** dbus_audio_codec_details (int payload);
202
gchar **dbus_audio_codec_details(int payload);
205
205
* ConfigurationManager - Get the default audio codec list
206
206
* The default audio codec list are the audio codecs selected by the server if the user hasn't made any changes
207
207
* @return gchar** The default audio codec list
209
gchar** dbus_default_audio_codec_list();
209
gchar **dbus_default_audio_codec_list();
212
212
* ConfigurationManager - Get the list of the audio codecs used for media negotiation
213
213
* @return The list of audio codecs
215
GArray *dbus_get_active_audio_codec_list (gchar *accountID);
215
GArray *dbus_get_active_audio_codec_list(const gchar *accountID);
218
218
* ConfigurationManager - Set the list of audio codecs used for media negociation
219
219
* @param list The list of audio codecs
221
void dbus_set_active_audio_codec_list (const gchar** list, const gchar*);
221
void dbus_set_active_audio_codec_list(const gchar **list, const gchar *);
224
224
* CallManager - return the audio codec name
225
225
* @param callable_obj_t* current call
227
gchar* dbus_get_current_audio_codec_name (const callable_obj_t * c);
227
gchar *dbus_get_current_audio_codec_name(const callable_obj_t *c);
230
230
* ConfigurationManager - Get the list of available output audio plugins
231
231
* @return gchar** The list of plugins
233
gchar** dbus_get_audio_plugin_list();
233
gchar **dbus_get_audio_plugin_list();
237
237
* ConfigurationManager - Select an input audio plugin
238
238
* @param audioPlugin The string description of the plugin
240
void dbus_set_audio_plugin (gchar* audioPlugin);
240
void dbus_set_audio_plugin(const gchar *audioPlugin);
243
243
* ConfigurationManager - Get the list of available output audio devices
244
244
* @return gchar** The list of devices
246
gchar** dbus_get_audio_output_device_list();
246
gchar **dbus_get_audio_output_device_list();
249
249
* ConfigurationManager - Select an output audio device
250
250
* @param index The index of the soundcard
252
void dbus_set_audio_output_device (const int index);
252
void dbus_set_audio_output_device(int index);
255
255
* ConfigurationManager - Get the list of available input audio devices
256
256
* @return gchar** The list of devices
258
gchar** dbus_get_audio_input_device_list();
258
gchar **dbus_get_audio_input_device_list();
261
261
* ConfigurationManager - Select an input audio device
262
262
* @param index The index of the soundcard
264
void dbus_set_audio_input_device (const int index);
264
void dbus_set_audio_input_device(int index);
267
267
* ConfigurationManager - Get the current audio devices
268
268
* @return gchar** The index of the current soundcard
270
gchar** dbus_get_current_audio_devices_index();
270
gchar **dbus_get_current_audio_devices_index();
273
273
* ConfigurationManager - Get the index of the specified audio device
274
274
* @param name The string description of the audio device
275
275
* @return int The index of the device
277
int dbus_get_audio_device_index (const gchar* name);
277
int dbus_get_audio_device_index(const gchar *name);
280
280
* ConfigurationManager - Get the current output audio plugin
322
322
* @return int 1 if IAX2 is enabled
325
int dbus_is_iax2_enabled (void);
325
int dbus_is_iax2_enabled(void);
328
328
* ConfigurationManager - Gives the maximum number of days the user wants to have in the history
329
329
* @return double The maximum number of days
331
guint dbus_get_history_limit (void);
331
guint dbus_get_history_limit(void);
334
334
* ConfigurationManager - Gives the maximum number of days the user wants to have in the history
336
void dbus_set_history_limit (const guint days);
336
void dbus_set_history_limit(guint days);
339
339
* ConfigurationManager - Returns the selected audio manager
341
341
* or "pulseaudio"
343
gchar *dbus_get_audio_manager (void);
343
gchar *dbus_get_audio_manager(void);
346
346
* ConfigurationManager - Set the audio manager
347
347
* @param api "alsa"
350
void dbus_set_audio_manager (const gchar *api);
350
void dbus_set_audio_manager(const gchar *api);
353
353
* ConfigurationManager - Start a tone when a new call is open and no numbers have been dialed
365
365
* @param name The string description of the client. Here : GTK+ Client
366
366
* @param error return location for a GError or NULL
368
gboolean dbus_register (int pid, gchar * name, GError **error);
368
gboolean dbus_register(int pid, const gchar *name, GError **error);
371
371
* Instance - Send unregistration request to dbus services
372
372
* @param pid The pid of the processus
374
void dbus_unregister (int pid);
376
void dbus_set_sip_address (const gchar* address);
378
gint dbus_get_sip_address (void);
374
void dbus_unregister(int pid);
376
void dbus_set_sip_address(const gchar *address);
378
gint dbus_get_sip_address(void);
382
382
* Add a participant (callID) to this conference (confID)
384
void dbus_add_participant (const gchar* callID, const gchar* confID);
384
void dbus_add_participant(const gchar *callID, const gchar *confID);
387
387
* Return a list of participant for this conference (confID)
389
gchar** dbus_get_participant_list (const gchar *confID);
389
gchar **dbus_get_participant_list(const gchar *confID);
392
392
* Toggle recording for this instance, may be call or conference
394
void dbus_set_record (const gchar * id);
394
void dbus_set_record(const gchar *id);
397
397
* Set the path where the recorded audio files will be stored
399
void dbus_set_record_path (const gchar *path);
399
void dbus_set_record_path(const gchar *path);
402
402
* Get the path where the recorded audio files are stored
404
gchar* dbus_get_record_path (void);
404
gchar *dbus_get_record_path(void);
407
407
* Set the always recording functionality, once true all call
419
419
* Encapsulate all the address book-related configuration
420
420
* Get the configuration
422
GHashTable* dbus_get_addressbook_settings (void);
422
GHashTable* dbus_get_addressbook_settings(void);
425
425
* Encapsulate all the address book-related configuration
426
426
* Set the configuration
428
void dbus_set_addressbook_settings (GHashTable *);
430
gchar** dbus_get_addressbook_list (void);
432
void dbus_set_addressbook_list (const gchar** list);
428
void dbus_set_addressbook_settings(GHashTable *);
430
gchar **dbus_get_addressbook_list(void);
432
void dbus_set_addressbook_list(const gchar **list);
435
435
* Resolve the local address given an interface name
437
gchar * dbus_get_address_from_interface_name (gchar* interface);
437
gchar * dbus_get_address_from_interface_name(const gchar *interface);
440
440
* Query the daemon to return a list of network interface (described as there IP address)
442
gchar** dbus_get_all_ip_interface (void);
442
gchar **dbus_get_all_ip_interface(void);
445
445
* Query the daemon to return a list of network interface (described as there name)
447
gchar** dbus_get_all_ip_interface_by_name (void);
447
gchar **dbus_get_all_ip_interface_by_name(void);
450
450
* Encapsulate all the url hook-related configuration
451
451
* Get the configuration
453
GHashTable* dbus_get_hook_settings (void);
453
GHashTable* dbus_get_hook_settings(void);
456
456
* Encapsulate all the url hook-related configuration
457
457
* Set the configuration
459
void dbus_set_hook_settings (GHashTable *);
462
gboolean dbus_get_is_recording (const callable_obj_t *);
464
GHashTable* dbus_get_call_details (const gchar* callID);
466
gchar** dbus_get_call_list (void);
468
GHashTable* dbus_get_conference_details (const gchar* confID);
470
gchar** dbus_get_conference_list (void);
472
void dbus_set_accounts_order (const gchar* order);
475
* Get a list of serialized hisotry entries
476
* @return The list of history entries
478
gchar **dbus_get_history (void);
481
* Set the history entries into the daemon. The daemon then write teh content
482
* of this list into the history file
483
* @param A list of serialized history entries
485
void dbus_set_history (gchar **);
487
void sflphone_display_transfer_status (const gchar* message);
459
void dbus_set_hook_settings(GHashTable *);
462
gboolean dbus_get_is_recording(const callable_obj_t *);
464
GHashTable *dbus_get_call_details(const gchar *callID);
466
gchar **dbus_get_call_list(void);
468
GHashTable* dbus_get_conference_details(const gchar *confID);
470
gchar **dbus_get_conference_list(void);
472
void dbus_set_accounts_order(const gchar *order);
476
* @return The PtrArray of history entries
478
GPtrArray *dbus_get_history(void);
480
void dbus_clear_history(void);
482
void sflphone_display_transfer_status(const gchar *message);
490
485
* CallManager - Confirm Short Authentication String
491
486
* for a given callId
492
487
* @param c The call to confirm SAS
494
void dbus_confirm_sas (const callable_obj_t * c);
489
void dbus_confirm_sas(const callable_obj_t *c);
497
492
* CallManager - Reset Short Authentication String
498
493
* for a given callId
499
494
* @param c The call to reset SAS
501
void dbus_reset_sas (const callable_obj_t * c);
496
void dbus_reset_sas(const callable_obj_t *c);
504
499
* CallManager - Request Go Clear in the ZRTP Protocol
505
500
* for a given callId
506
501
* @param c The call that we want to go clear
508
void dbus_request_go_clear (const callable_obj_t * c);
503
void dbus_request_go_clear(const callable_obj_t *c);
511
506
* CallManager - Accept Go Clear request from remote
512
507
* for a given callId
513
508
* @param c The call to confirm
515
void dbus_set_confirm_go_clear (const callable_obj_t * c);
510
void dbus_set_confirm_go_clear(const callable_obj_t *c);
518
513
* CallManager - Get the list of supported TLS methods from
519
514
* the server in textual form.
520
515
* @return an array of string representing supported methods
522
gchar** dbus_get_supported_tls_method();
524
GHashTable* dbus_get_shortcuts (void);
526
void dbus_set_shortcuts (GHashTable * shortcuts);
528
void dbus_set_audio_ringtone_device (const int index);
531
dbus_hang_up_conference (const conference_obj_t * c);
534
dbus_hold_conference (const conference_obj_t * c);
537
dbus_unhold_conference (const conference_obj_t * c);
540
dbus_detach_participant (const gchar* callID);
543
dbus_join_participant (const gchar* sel_callID, const gchar* drag_callID);
517
gchar **dbus_get_supported_tls_method();
519
GHashTable* dbus_get_shortcuts(void);
521
void dbus_set_shortcuts(GHashTable *shortcuts);
523
void dbus_set_audio_ringtone_device(int index);
526
dbus_hang_up_conference(const conference_obj_t *c);
529
dbus_hold_conference(const conference_obj_t *c);
532
dbus_unhold_conference(const conference_obj_t *c);
535
dbus_detach_participant(const gchar *callID);
538
dbus_join_participant(const gchar *sel_callID, const gchar *drag_callID);
546
541
dbus_create_conf_from_participant_list(const gchar **list);
549
dbus_join_conference (const gchar* sel_confID, const gchar* drag_confID);
544
dbus_join_conference(const gchar *sel_confID, const gchar *drag_confID);
552
dbus_add_main_participant (const gchar* confID);
547
dbus_add_main_participant(const gchar *confID);
554
549
/* Instant messaging */
555
void dbus_send_text_message (const gchar* callID, const gchar *message);
550
void dbus_send_text_message(const gchar *callID, const gchar *message);
558
553
* Start playback of a recorded