diff --git a/Classes/BuschJaegerCallView.m b/Classes/BuschJaegerCallView.m index cba0a8433..beac1d495 100644 --- a/Classes/BuschJaegerCallView.m +++ b/Classes/BuschJaegerCallView.m @@ -94,8 +94,12 @@ - (void)viewDidLoad { [super viewDidLoad]; + [openDoorButton setPlay:FALSE]; [openDoorButton setDigit:'1']; + + [lightsButton setPlay:FALSE]; [lightsButton setDigit:'2']; + [microButton setImage:[UIImage imageNamed:@"bj_mute_off.png"] forState:UIControlStateHighlighted | UIControlStateSelected]; /* init gradients */ diff --git a/Classes/BuschJaegerHistoryView.m b/Classes/BuschJaegerHistoryView.m index c037a763b..256598fa1 100644 --- a/Classes/BuschJaegerHistoryView.m +++ b/Classes/BuschJaegerHistoryView.m @@ -78,7 +78,7 @@ } - (void)update { - NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:NO]; + NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"date" ascending:NO]; NSArray *sortDescriptors = [NSArray arrayWithObjects:sortDescriptor, nil]; [tableController setHistory:[[LinphoneManager instance].configuration.history sortedArrayUsingDescriptors:sortDescriptors]]; diff --git a/Classes/LinphoneUI/UIDigitButton.h b/Classes/LinphoneUI/UIDigitButton.h index 526240275..21e9572e5 100644 --- a/Classes/LinphoneUI/UIDigitButton.h +++ b/Classes/LinphoneUI/UIDigitButton.h @@ -30,5 +30,6 @@ @property (nonatomic, retain) IBOutlet UITextField* addressField; @property char digit; @property bool dtmf; +@property bool play; @end diff --git a/Classes/LinphoneUI/UIDigitButton.m b/Classes/LinphoneUI/UIDigitButton.m index 8d96e89e9..96f410d41 100644 --- a/Classes/LinphoneUI/UIDigitButton.m +++ b/Classes/LinphoneUI/UIDigitButton.m @@ -24,6 +24,7 @@ @implementation UIDigitButton @synthesize dtmf; +@synthesize play; @synthesize digit; @synthesize addressField; @synthesize chatRoom; @@ -33,6 +34,7 @@ - (void)initUIDigitButton { dtmf = FALSE; + play = TRUE; chatRoom = NULL; [self addTarget:self action:@selector(touchDown:) forControlEvents:UIControlEventTouchDown]; [self addTarget:self action:@selector(touchUp:) forControlEvents:UIControlEventTouchUpInside|UIControlEventTouchUpOutside]; @@ -85,7 +87,9 @@ } else { linphone_chat_room_send_message(chatRoom, [[NSString stringWithFormat:@"%c", digit] UTF8String]); } - linphone_core_play_dtmf([LinphoneManager getLc], digit, 100); + if(play) { + linphone_core_play_dtmf([LinphoneManager getLc], digit, 100); + } } }