mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
send username in contacts of publish
send unSUBSCRIBE when friend subscription is toggled off.
This commit is contained in:
parent
e48d96c638
commit
16da9c1b3b
4 changed files with 6 additions and 4 deletions
|
|
@ -406,6 +406,8 @@ void linphone_friend_apply(LinphoneFriend *fr, LinphoneCore *lc){
|
|||
if (fr->subscribe && fr->subscribe_active==FALSE){
|
||||
ms_message("Sending a new SUBSCRIBE");
|
||||
__linphone_friend_do_subscribe(fr);
|
||||
}else if (fr->subscribe_active && !fr->subscribe){
|
||||
linphone_friend_unsubscribe(fr);
|
||||
}
|
||||
ms_message("linphone_friend_apply() done.");
|
||||
lc->bl_refresh=TRUE;
|
||||
|
|
|
|||
|
|
@ -5017,7 +5017,9 @@ static MSVideoSizeDef supported_resolutions[]={
|
|||
{ {MS_VIDEO_SIZE_SVGA_W,MS_VIDEO_SIZE_SVGA_H} , "svga" },
|
||||
{ {MS_VIDEO_SIZE_4CIF_W,MS_VIDEO_SIZE_4CIF_H} , "4cif" },
|
||||
{ {MS_VIDEO_SIZE_VGA_W,MS_VIDEO_SIZE_VGA_H} , "vga" },
|
||||
#ifdef __ios
|
||||
{ {MS_VIDEO_SIZE_IOS_MEDIUM_H,MS_VIDEO_SIZE_IOS_MEDIUM_W} , "ios-medium" },
|
||||
#endif
|
||||
{ {MS_VIDEO_SIZE_CIF_W,MS_VIDEO_SIZE_CIF_H} , "cif" },
|
||||
{ {MS_VIDEO_SIZE_QVGA_W,MS_VIDEO_SIZE_QVGA_H} , "qvga" },
|
||||
{ {MS_VIDEO_SIZE_QCIF_W,MS_VIDEO_SIZE_QCIF_H} , "qcif" },
|
||||
|
|
|
|||
|
|
@ -849,7 +849,7 @@ int linphone_proxy_config_send_publish(LinphoneProxyConfig *proxy, LinphonePrese
|
|||
sal_op_set_from(proxy->publish_op,linphone_proxy_config_get_identity(proxy));
|
||||
sal_op_set_to(proxy->publish_op,linphone_proxy_config_get_identity(proxy));
|
||||
if (lp_config_get_int(proxy->lc->config,"sip","publish_msg_with_contact",0)){
|
||||
SalAddress *addr=sal_address_new(NULL);
|
||||
SalAddress *addr=sal_address_new(linphone_proxy_config_get_identity(proxy));
|
||||
sal_op_set_contact(proxy->publish_op,addr);
|
||||
sal_address_unref(addr);
|
||||
}
|
||||
|
|
@ -1182,14 +1182,12 @@ void linphone_proxy_config_update(LinphoneProxyConfig *cfg){
|
|||
}
|
||||
if (can_register(cfg)){
|
||||
linphone_proxy_config_register(cfg);
|
||||
ms_message("***Registering...(%p)",cfg);
|
||||
cfg->commit=FALSE;
|
||||
if (cfg->publish) cfg->send_publish=TRUE;
|
||||
}
|
||||
}
|
||||
if (cfg->send_publish && (cfg->state==LinphoneRegistrationOk || cfg->state==LinphoneRegistrationCleared)){
|
||||
linphone_proxy_config_send_publish(cfg,lc->presence_model);
|
||||
ms_message("***Publishing...");
|
||||
cfg->send_publish=FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit ec2d04150521197905bf5812991b54bab97fbdf8
|
||||
Subproject commit 7c4bfcb0baf9ebc0e6edd94fc46b7a512fb733bf
|
||||
Loading…
Add table
Reference in a new issue