linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Background incoming calls not working after up


From: Rene Dohmen
Subject: Re: [Linphone-developers] Background incoming calls not working after upgrading to xCode4 and ios4.3
Date: Mon, 28 Mar 2011 11:41:42 +0200



On Mon, Mar 28, 2011 at 10:00 AM, Jehan Monnier <address@hidden> wrote:
Hi Rene,

I've upgraded my 3GS to 4.3.1 this morning. I confirm BG mode is in a degraded mode as only BG mode for TCP seams to work. However, I don't feel this is really a big issue, as background mode for UDP is only theoretical due to the NAT associating issue.


The VOIP providers in NL (sipnl.net) only support UDP for VOIP. So it's kind of a big issue for us. I don't even know where to look to solve this.

 
Regarding your changes on the proximity sensor behavior, would you mind to provide us with a patch file that I can apply/review using GIT ?


Yeah sure, but I don't know how to make a patch.
Is there some git command for it?


 
Cheers
 



Le 25 mars 2011 à 15:37, Rene Dohmen a écrit :

Jehan,

Just tested it with the app store linphone on a 3GS, with iOS4.3 : background calls don't work.

iOS < 4.3 all works OK 

When the app is running in foreground is works perfect.
Any idea?

Rene

p.s.
The iphone native phone app itself only does proximity check when you are in a call, I implemented the same behaviour in our version:
I disabled the proximity stuff in LinphoneAppDelegate.m

PhoneViewController.m

-(void) displayIncalViewforUser:(NSString*) username withDisplayName:(NSString*) displayName {

    UIDevice *device = [UIDevice currentDevice];

    device.proximityMonitoringEnabled = YES;

    if (device.proximityMonitoringEnabled == YES) {

        NSLog(@"Ok this device support proximity, and I just enabled it");

    }


    [hangup setEnabled:true];

if (displayName && [displayName length]>0) {

[peerLabel setText:displayName];

} else {

[peerLabel setText:username?username:@""];

}

[address setHidden:true];

[incallView setHidden:false];

}



-(void) displayDialerFromUI:(UIViewController*) viewCtrl forUser:(NSString*) username withDisplayName:(NSString*) displayName {

//cancel local notification, just in case

if ([[UIDevice currentDevice] respondsToSelector:@selector(isMultitaskingSupported)]  

&& [UIApplication sharedApplication].applicationState ==  UIApplicationStateBackground ) {

// cancel local notif if needed

[[UIApplication sharedApplication] cancelAllLocalNotifications];

} else {

if (mIncomingCallActionSheet) {

[mIncomingCallActionSheet dismissWithClickedButtonIndex:1 animated:true];

mIncomingCallActionSheet=nil;

}

}


[address setHidden:false];

if (username) {

[address setText:username];

} //else keep previous


[mDisplayName setText:displayName];

[incallView setHidden:true];

[call setEnabled:true];



    [callDuration stop];

    UIDevice *device = [UIDevice currentDevice];

    device.proximityMonitoringEnabled = NO;

    NSLog(@"Ok this device support proximity, and I just disabled it");

    

[peerLabel setText:@""];

if ([[NSUserDefaults standardUserDefaults] boolForKey:@"firstlogindone_preference" ] == true) {

//first login case, dismmis first login view  

[self dismissModalViewControllerAnimated:true];

}; 

[myTabBarController setSelectedIndex:DIALER_TAB_INDEX];


}










On Fri, Mar 25, 2011 at 1:31 PM, Jehan Monnier <address@hidden> wrote:
Hi,

IOS 4.2.1 for me.


Le 25 mars 2011 à 12:24, Rene Dohmen a écrit :

Hi,


@Jehan: which ios version did you use?


I tried it with a 3GS iOS4.01-> work s like a charm

Iphone 4, with iOS 4.3; doens't work

(tested with my own version and tested it with the latest linphone from the app store)

I'll try it on another iphone 4 with ios 4.3 this afternoon, to rule out other problems..


Grtz R


On Fri, Mar 25, 2011 at 12:18 PM, Jehan Monnier <address@hidden> wrote:
Hi,

I performed some test this morning on my iphone 3GS.
BG mode is working like a charm.

Cheers


Le 24 mars 2011 à 20:24, Rene Dohmen a écrit :

Hi,

i'm working on a rebranded linphone for the iphone. After upgrading my macs to xCode4 and my phones to ios4.3 I had some small problems; a warning that armv7 is not supported was resolved by removing it in the build settings.
I used an git checkout from almost a month ago to build the linphone-sdk.

It seems that background incoming calls don't work any more, transport=UDP, backgroundMode=enabled.
Calls come in just fine when the app is running in foreground mode.

The version from the app store has the same problem; when I test my rebranded version or your app store version on an older iphone ( iOS 4.02) background calls work flawless. (with the same settings as I used on the other phones).

Is this a know problem? Is there a fix already?

Any help is appreciated.

Kind regards,

Rene Dohmen
www.formatics.nl

_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]