]> sjero.net Git - linphone/blobdiff - coreapi/private.h
Add callbacks for audio (un)initialization in the echo canceller calibrator.
[linphone] / coreapi / private.h
index 13087dc0497efac9e6f9d8acabe60b1b644ccdea..b5312bd60c27634b4f927266c690ef9506a41f91 100644 (file)
@@ -211,6 +211,7 @@ struct _LinphoneCall
        bool_t was_automatically_paused;
        bool_t ping_replied;
        bool_t record_active;
+       bool_t paused_by_app;
 };
 
 
@@ -437,8 +438,6 @@ typedef struct sip_config
        int delayed_timeout;    /*timeout after a delayed call is resumed */
        unsigned int keepalive_period; /* interval in ms between keep alive messages sent to the proxy server*/
        LCSipTransports transports;
-       bool_t use_info;
-       bool_t use_rfc2833;     /*force RFC2833 to be sent*/
        bool_t guess_hostname;
        bool_t loopback_only;
        bool_t ipv6_enabled;
@@ -663,6 +662,8 @@ struct _EcCalibrator{
        MSTicker *ticker;
        LinphoneEcCalibrationCallback cb;
        void *cb_data;
+       LinphoneEcCalibrationAudioInit audio_init_cb;
+       LinphoneEcCalibrationAudioUninit audio_uninit_cb;
        int64_t acc;
        int delay;
        unsigned int rate;
@@ -678,6 +679,8 @@ void ec_calibrator_destroy(EcCalibrator *ecc);
 
 void linphone_call_background_tasks(LinphoneCall *call, bool_t one_second_elapsed);
 void linphone_core_preempt_sound_resources(LinphoneCore *lc);
+int _linphone_core_pause_call(LinphoneCore *lc, LinphoneCall *call);
+
 /*conferencing subsystem*/
 void _post_configure_audio_stream(AudioStream *st, LinphoneCore *lc, bool_t muted);
 /* When a conference participant pause the conference he may send a music.
@@ -718,6 +721,15 @@ void linphone_chat_message_store_state(LinphoneChatMessage *msg);
 void linphone_core_message_storage_init(LinphoneCore *lc);
 void linphone_core_message_storage_close(LinphoneCore *lc);
 
+typedef enum _LinphoneToneID{
+       LinphoneToneBusy,
+       LinphoneToneCallWaiting,
+       LinphoneToneCallOnHold,
+       LinphoneToneCallFailed
+}LinphoneToneID;
+void linphone_core_play_named_tone(LinphoneCore *lc, LinphoneToneID id);
+bool_t linphone_core_tone_indications_enabled(LinphoneCore*lc);
+
 #ifdef __cplusplus
 }
 #endif