uses SIP messages out of calls to switch on light or open door

do not pre-render icon
This commit is contained in:
Simon Morlat 2012-04-04 16:02:07 +02:00
parent a92869d3e5
commit 855fb81d25
5 changed files with 23 additions and 8 deletions

View file

@ -28,7 +28,8 @@
-(void) touchDown:(id) sender {
if (linphone_core_get_current_call([LinphoneManager getLc])) {
LinphoneCall *call=linphone_core_get_current_call([LinphoneManager getLc]);
if (call && linphone_call_get_state(call)==LinphoneCallStreamsRunning) {
linphone_core_send_dtmf([LinphoneManager getLc],mDigit);
} else if (chatRoom) {
char msg[] = {mDigit, '\0'};

View file

@ -7,11 +7,16 @@
//
#import "UIToggleButton.h"
#include "linphonecore.h"
@interface UILightButton : UIToggleButton<UIToggleButtonDelegate> {
@public
LinphoneChatRoom* chatRoom;
}
-(void) send;
@end

View file

@ -11,12 +11,21 @@
@implementation UILightButton
-(void) send{
LinphoneCall *call=linphone_core_get_current_call([LinphoneManager getLc]);
if (call && linphone_call_get_state(call)==LinphoneCallStreamsRunning) {
linphone_core_send_dtmf([LinphoneManager getLc],'2');
} else if (chatRoom) {
linphone_chat_room_send_message(chatRoom, "2");
}
}
-(void) onOn {
linphone_core_send_dtmf([LinphoneManager getLc],'2');
[self send];
}
-(void) onOff {
linphone_core_send_dtmf([LinphoneManager getLc],'2');
[self send];
}
-(bool) isInitialStateOn {

View file

@ -23,11 +23,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1.3</string>
<string>0.1.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.1.3</string>
<string>0.1.4</string>
<key>NSMainNibFile</key>
<string>BuschJaegerMainView</string>
<key>UIApplicationExitsOnSuspend</key>

View file

@ -1685,7 +1685,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 3.1;
LIBRARY_SEARCH_PATHS = "";
LINK_WITH_STANDARD_LIBRARIES = YES;
PROVISIONING_PROFILE = "7EBE410C-11B9-4346-9977-2C3BEE43ED16";
PROVISIONING_PROFILE = "B9B5980F-5156-43AD-841D-0502B5818325";
SDKROOT = iphoneos;
};
name = DistributionAdhoc;
@ -1734,7 +1734,7 @@
ORDER_FILE = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = linphone;
PROVISIONING_PROFILE = "0FCDB3A2-9170-48DC-B1EE-58DF9948B0C7";
PROVISIONING_PROFILE = "B9B5980F-5156-43AD-841D-0502B5818325";
SDKROOT = iphoneos;
STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = dynamic;
TARGETED_DEVICE_FAMILY = 1;
@ -2030,7 +2030,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 3.1;
LIBRARY_SEARCH_PATHS = "";
LINK_WITH_STANDARD_LIBRARIES = YES;
PROVISIONING_PROFILE = "075921BC-C7D8-42E1-B864-F05FD9BF841C";
PROVISIONING_PROFILE = "B9B5980F-5156-43AD-841D-0502B5818325";
SDKROOT = iphoneos;
};
name = Distribution;