diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 3b3b22d79..33832b435 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -27,13 +27,6 @@ #include "LinphoneManager.h" #include "linphonecore.h" -#if __clang__ && __arm__ -extern int __divsi3(int a, int b); -int __aeabi_idiv(int a, int b) { - return __divsi3(a,b); -} -#endif - @implementation UILinphoneWindow @end diff --git a/Classes/LinphoneUI/UIVideoButton.h b/Classes/LinphoneUI/UIVideoButton.h index 759911f00..a7b4be5db 100644 --- a/Classes/LinphoneUI/UIVideoButton.h +++ b/Classes/LinphoneUI/UIVideoButton.h @@ -24,9 +24,6 @@ @interface UIVideoButton : UIToggleButton { } -@property (assign) BOOL locked; -@property (assign) BOOL unlockVideoState; - @property (nonatomic, retain) IBOutlet UIActivityIndicatorView* waitView; @end diff --git a/Classes/LinphoneUI/UIVideoButton.m b/Classes/LinphoneUI/UIVideoButton.m index 2368b9bfa..6100bc7da 100644 --- a/Classes/LinphoneUI/UIVideoButton.m +++ b/Classes/LinphoneUI/UIVideoButton.m @@ -22,13 +22,9 @@ @implementation UIVideoButton -@synthesize locked; -@synthesize unlockVideoState; @synthesize waitView; - (void)initUIVideoButton { - locked = FALSE; - unlockVideoState = FALSE; } - (id)init{ @@ -68,8 +64,6 @@ [self setEnabled: FALSE]; [waitView startAnimating]; - [self setLocked: TRUE]; - [self setUnlockVideoState: TRUE]; LinphoneCall* call = linphone_core_get_current_call([LinphoneManager getLc]); if (call) { @@ -95,8 +89,6 @@ [self setEnabled: FALSE]; [waitView startAnimating]; - [self setLocked: TRUE]; - [self setUnlockVideoState: FALSE]; LinphoneCall* call = linphone_core_get_current_call([LinphoneManager getLc]); if (call) { @@ -116,26 +108,28 @@ LinphoneCall* currentCall = linphone_core_get_current_call([LinphoneManager getLc]); if (currentCall) { LinphoneCallState state = linphone_call_get_state(currentCall); - if (state == LinphoneCallStreamsRunning || state == LinphoneCallUpdated || state == LinphoneCallUpdatedByRemote) { - if (linphone_call_params_video_enabled(linphone_call_get_current_params(currentCall))) { - val = true; - if(locked && unlockVideoState) { - locked = FALSE; - [waitView stopAnimating]; - } - } else { - if(locked && !unlockVideoState) { - locked = FALSE; - [waitView stopAnimating]; - } + switch (state) { + case LinphoneCallUpdated: + { + [waitView stopAnimating]; } - if(!locked) { + case LinphoneCallStreamsRunning: + { [self setEnabled:TRUE]; + if (linphone_call_params_video_enabled(linphone_call_get_current_params(currentCall))) { + val = true; + } + break; } - } else { - // Disable button if the call is not running - [self setEnabled:FALSE]; - [waitView stopAnimating]; + + default: + { + // Disable button if the call is not running + [self setEnabled:FALSE]; + [waitView stopAnimating]; + break; + } + } } else { // Disable button if there is no call diff --git a/linphonerc b/linphonerc index 543d5f376..0cb29e0e9 100644 --- a/linphonerc +++ b/linphonerc @@ -35,6 +35,7 @@ playback_dev_id=AU: Audio Unit Receiver ringer_dev_id=AQ: Audio Queue Device capture_dev_id=AU: Audio Unit Receiver echocancellation=0 +dtmf_player_amp=0.007 [misc] history_max_size=30 diff --git a/linphonerc-ipad b/linphonerc-ipad index 98ddaeba2..fcc5736c0 100644 --- a/linphonerc-ipad +++ b/linphonerc-ipad @@ -33,6 +33,7 @@ playback_dev_id=AU: Audio Unit Receiver ringer_dev_id=AQ: Audio Queue Device capture_dev_id=AU: Audio Unit Receiver echocancellation=0 +dtmf_player_amp=0.007 [misc] history_max_size=30 diff --git a/submodules/linphone b/submodules/linphone index 0a12fa9ce..75040297c 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 0a12fa9ce7af5c795722ce1f7ebad9bc85314d3b +Subproject commit 75040297c12e118cea0ec87d2bc3980c290f8e86 diff --git a/submodules/mssilk b/submodules/mssilk index 391b6d6b0..d3a6a0a13 160000 --- a/submodules/mssilk +++ b/submodules/mssilk @@ -1 +1 @@ -Subproject commit 391b6d6b0fdf6854e5a25f287c4d8461730a1d40 +Subproject commit d3a6a0a130730c0eaf9a0b6ed2fc466432852684