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 17:27:06 +0200

Jehan,

thanx for your quick answer. As far as i can see; bria doesn't use push notification and like I said TCP SIP is not possible with the NL VOIP providers.
So the app dies when siwtiching to another app, and you have to kill it to get it working again.

In the Bria settings I find:

UDP Keep Alive
Wifi Interval (30)
Cell Interval (9)

That's why i was thinking they use some background thread to keep UDP alive.
If I can help you with solving the problem, let me know; i've some spare time available.

Kind Regards Rene








On Mon, Mar 28, 2011 at 4:42 PM, Jehan Monnier <address@hidden> wrote:
Hi Rene,

I don't know how Bria is handling UDP and background mode. The point is that keep alive does not work with IOS. So if you are behind an IP router with low association period (I.E below 600 s). There is only 2 alternatives, SIP TCP or push notification.
Regarding Linphone, I observed the following traces after upgrading to IOS 4.3

Mar 28 16:33:51 unknown spd[261] <Error>: spd:spd_vet_socket:687 Unable to get interface name for client socket [FD=4]
Mar 28 16:33:51 unknown spd[261] <Error>: spd:spd_checkin_socket:954 Unable to check-in unsupported socket for client [PID=260]
Mar 28 16:33:51 unknown SpringBoard[27] <Debug>: spd:___libspd_initialize_notify_block_invoke_1:214 spd woke up!
Mar 28 16:33:51 unknown SpringBoard[27] <Debug>: spd:_libspd_initialize_protocol:142 Registered notification port with spd [PID=261]
Mar 28 16:33:55 unknown kernel[0] <Debug>: i2s0: transmitter underrun (0)
Mar 28 16:34:11 unknown SpringBoard[27] <Debug>: spd:___libspd_initialize_protocol_block_invoke_2:172 spd [PID=261] went bye-bye
 
It looks like the UDP socket failed to be configured as voip. I don't know why, but it used to work on previous IOS versions. 




Le 28 mars 2011 à 16:11, Rene Dohmen a écrit :

Jehan,

I just downloaded Bria sofphone; there solution works with backgrounding and UDP on iOS 4.3.1

When searching/googling for UDP backgrounding it seems that lot of people have problems with it.
I think some timerconstruction is needed to keep the connection alive. I included a screenshot of the bria app; to show you their settings.

I think most VOIP providers use UDP instead of TCP. I can't even make a call when selecting TCP. I've tried it with the 2 biggest VOIP providers in the Netherlands.

Kind Regards,

Rene





On Mon, Mar 28, 2011 at 11:41 AM, Rene Dohmen <address@hidden> wrote:


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



<foto(2).PNG>_______________________________________________


_______________________________________________
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]