mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 10:19:23 +00:00
Add the send_ringback_without_playback option so that in early media, we can send the ringback tone without playing the return sound.
This commit is contained in:
parent
282a4cb88d
commit
ce0391ac6d
1 changed files with 6 additions and 0 deletions
|
|
@ -1882,6 +1882,7 @@ static void configure_rtp_session_for_rtcp_xr(LinphoneCore *lc, LinphoneCall *ca
|
|||
|
||||
static void linphone_call_start_audio_stream(LinphoneCall *call, const char *cname, bool_t muted, bool_t send_ringbacktone, bool_t use_arc){
|
||||
LinphoneCore *lc=call->core;
|
||||
LpConfig* conf;
|
||||
int used_pt=-1;
|
||||
char rtcp_tool[128]={0};
|
||||
const SalStreamDescription *stream;
|
||||
|
|
@ -1926,8 +1927,13 @@ static void linphone_call_start_audio_stream(LinphoneCall *call, const char *cna
|
|||
/*playfile=NULL;*/
|
||||
}
|
||||
if (send_ringbacktone){
|
||||
conf = linphone_core_get_config(lc);
|
||||
captcard=NULL;
|
||||
playfile=NULL;/* it is setup later*/
|
||||
if( conf && lp_config_get_int(conf,"sound","send_ringback_without_playback", 0) == 1){
|
||||
playcard = NULL;
|
||||
recfile = NULL;
|
||||
}
|
||||
}
|
||||
/*if playfile are supplied don't use soundcards*/
|
||||
if (lc->use_files) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue