mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
Merge remote-tracking branch 'public/master' into belle-sip
This commit is contained in:
commit
059d6af4d5
4 changed files with 16 additions and 15 deletions
|
|
@ -351,7 +351,8 @@ static void call_accepted(SalOp *op){
|
|||
#endif //BUILD_UPNP
|
||||
|
||||
md=sal_call_get_final_media_description(op);
|
||||
call->params.has_video &= linphone_core_media_description_contains_video_stream(md);
|
||||
if (md)
|
||||
call->params.has_video &= linphone_core_media_description_contains_video_stream(md);
|
||||
|
||||
if (call->state==LinphoneCallOutgoingProgress ||
|
||||
call->state==LinphoneCallOutgoingRinging ||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ static void ecc_init_filters(EcCalibrator *ecc){
|
|||
params.prio=MS_TICKER_PRIO_HIGH;
|
||||
ecc->ticker=ms_ticker_new_with_params(¶ms);
|
||||
|
||||
ecc->sndread=ms_snd_card_create_reader(ecc->play_card);
|
||||
ecc->sndread=ms_snd_card_create_reader(ecc->capt_card);
|
||||
ms_filter_call_method(ecc->sndread,MS_FILTER_SET_SAMPLE_RATE,&ecc->rate);
|
||||
ms_filter_call_method(ecc->sndread,MS_FILTER_GET_SAMPLE_RATE,&rate);
|
||||
ms_filter_call_method(ecc->sndread,MS_FILTER_SET_NCHANNELS,&ecc_channels);
|
||||
|
|
@ -50,7 +50,7 @@ static void ecc_init_filters(EcCalibrator *ecc){
|
|||
|
||||
ecc->det=ms_filter_new(MS_TONE_DETECTOR_ID);
|
||||
ms_filter_call_method(ecc->det,MS_FILTER_SET_SAMPLE_RATE,&ecc->rate);
|
||||
ecc->rec=ms_filter_new(MS_FILE_REC_ID);
|
||||
ecc->rec=ms_filter_new(MS_VOID_SINK_ID);
|
||||
|
||||
ms_filter_link(ecc->sndread,0,ecc->read_resampler,0);
|
||||
ms_filter_link(ecc->read_resampler,0,ecc->det,0);
|
||||
|
|
@ -60,7 +60,7 @@ static void ecc_init_filters(EcCalibrator *ecc){
|
|||
ecc->gen=ms_filter_new(MS_DTMF_GEN_ID);
|
||||
ms_filter_call_method(ecc->gen,MS_FILTER_SET_SAMPLE_RATE,&ecc->rate);
|
||||
ecc->write_resampler=ms_filter_new(MS_RESAMPLE_ID);
|
||||
ecc->sndwrite=ms_snd_card_create_writer(ecc->capt_card);
|
||||
ecc->sndwrite=ms_snd_card_create_writer(ecc->play_card);
|
||||
|
||||
ms_filter_call_method(ecc->sndwrite,MS_FILTER_SET_SAMPLE_RATE,&ecc->rate);
|
||||
ms_filter_call_method(ecc->sndwrite,MS_FILTER_GET_SAMPLE_RATE,&rate);
|
||||
|
|
|
|||
|
|
@ -85,19 +85,19 @@ static const char *days[]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
|
|||
static const char *months[]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
|
||||
|
||||
static void msg_add_current_date(osip_message_t *msg){
|
||||
char tmp[64]={0};
|
||||
time_t curtime=time(NULL);
|
||||
struct tm *ret;
|
||||
char tmp[64]={0};
|
||||
time_t curtime=time(NULL);
|
||||
struct tm *ret;
|
||||
#ifndef WIN32
|
||||
struct tm gmt;
|
||||
ret=gmtime_r(&curtime,&gmt);
|
||||
struct tm gmt;
|
||||
ret=gmtime_r(&curtime,&gmt);
|
||||
#else
|
||||
ret=gmtime(&curtime);
|
||||
ret=gmtime(&curtime);
|
||||
#endif
|
||||
/*cannot use strftime because it is locale dependant*/
|
||||
snprintf(tmp,sizeof(tmp)-1,"%s, %i %s %i %02i:%02i:%02i GMT",
|
||||
days[ret->tm_wday],ret->tm_mday,months[ret->tm_mon],1900+ret->tm_year,ret->tm_hour,ret->tm_min,ret->tm_sec);
|
||||
osip_message_replace_header(msg,"Date",tmp);
|
||||
/*cannot use strftime because it is locale dependant*/
|
||||
snprintf(tmp,sizeof(tmp)-1,"%s, %i %s %i %02i:%02i:%02i GMT",
|
||||
days[ret->tm_wday],ret->tm_mday,months[ret->tm_mon],1900+ret->tm_year,ret->tm_hour,ret->tm_min,ret->tm_sec);
|
||||
osip_message_replace_header(msg,"Date",tmp);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 3acaa7372423ffb0d18923e9e41e1076cec51905
|
||||
Subproject commit 4ad5b7becb57b10775d024f89140c8c462c9de57
|
||||
Loading…
Add table
Reference in a new issue