diff --git a/coreapi/friend.c b/coreapi/friend.c index 6d1d830e4..36743699d 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -454,7 +454,7 @@ void linphone_core_send_initial_subscribes(LinphoneCore *lc){ for(elem=lc->friends;elem!=NULL;elem=elem->next){ LinphoneFriend *f=(LinphoneFriend*)elem->data; LinphoneProxyConfig* cfg; - if (!f->initial_subscribes_sent) { + if (f->subscribe && !f->initial_subscribes_sent) { lc->initial_subscribes_sent=FALSE; /*at least 1 was not sent */ if ((cfg=linphone_core_lookup_known_proxy(f->lc,linphone_friend_get_address(f)))) { /*check if already registered*/ diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 7741d5305..89cc397ce 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -187,7 +187,8 @@ static MSList *make_codec_list(LinphoneCore *lc, const MSList *codecs, int bandw PayloadType *pt=(PayloadType*)it->data; if (pt->flags & PAYLOAD_TYPE_ENABLED){ if (bandwidth_limit>0 && !linphone_core_is_payload_type_usable_for_bandwidth(lc,pt,bandwidth_limit)){ - ms_message("Codec %s/%i eliminated because of audio bandwidth constraint.",pt->mime_type,pt->clock_rate); + ms_message("Codec %s/%i eliminated because of audio bandwidth constraint of %i kbit/s", + pt->mime_type,pt->clock_rate,bandwidth_limit); continue; } if (linphone_core_check_payload_type_usability(lc,pt)){