linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Linphone iPhone background incoming call probl


From: Barbieri Davide
Subject: Re: [Linphone-developers] Linphone iPhone background incoming call problem
Date: Fri, 16 Sep 2011 12:19:38 +0200

They check if your app is a proper audio application (just seeing in the info.plist declaration). If it’s not you cannot have permission to play audio in background to do “something else” in the while. That’s what I read in some forums…

 

 

Currently i’m running linphone in background in debug mode since 3 hours ago and it’s still working… but why it doesn’t in release mode?? I cannot understand  that…

 

Davide

 

From: linphone-developers-bounces+address@hidden [mailto:linphone-developers-bounces+address@hidden On Behalf Of Jehan Monnier
Sent: venerdì 16 settembre 2011 12:09
To: address@hidden
Subject: Re: [Linphone-developers] Linphone iPhone background incoming call problem

 

How can Apple detect that ?

 

Jehan

 

 

 



 

Le 16 sept. 2011 à 12:05, Barbieri Davide a écrit :



It’s very unlikely because Apple rejects your app using this trick and Media5 is downloadable from the official Appstore…

 

Cheers

 

From: linphone-developers-bounces+address@hidden [mailto:linphone-developers-bounces+address@hidden On Behalf Of Jehan Monnier
Sent: venerdì 16 settembre 2011 11:37
To: address@hidden
Subject: Re: [Linphone-developers] Linphone iPhone background incoming call problem

 

Hi,

"undocumented trick": they probably play for ever a file with silence to prevent iPhone from sleeping.

 

Cheer

 

Jehan

 

 

 




 

Le 16 sept. 2011 à 11:23, Barbieri Davide a écrit :




Hi,

 

i’m investigating on the problem of keeping alive linphone while in background… as you know from iOS 4.3+ the background feature doesn’t work in the current release of Linphone.

 

Following this doc I moved  the “enter background” method in dispatch_async , so that a new parallel thread starts and effectively it works!!!

 

But another problem occurs: the background task can be kept alive for maximum 10 minutes, after that the application is suspended by iOS and UDP socket doesn’t receive packets anymore… the keepAliveHandler triggers a new REGISTER request every 600 s but  few seconds after the application goes to sleep.

I tried created another parallel thread where a timer counts till 10,000 , but nothing changed.

 

The strange behavior is that if I start  the app in debug mode from XCode, it runs forever and can still receive calls L, but not when you start the app tapping the icon on the screen.

 

Media5 declares that their developers used an “undocumented trick”  http://www.media5corp.com/en/ios-multitasking-and-battery to keep alive the background task. I tried and it works well without any time limit (also with UDP and without PUSH notification or something else).

Someone has some idea??

 

I was thinking about using local notification every 10 minutes, but you cannot execute code without user interaction. Playing a mute audio file is rejected by Apple.

 

Regards,

 

Davide

 

 

From: linphone-developers-bounces+address@hidden [mailto:linphone-developers-bounces+address@hidden On Behalf Of Stas Khirman
Sent: giovedì 8 settembre 2011 22:56
To: Simon Morlat
Cc: address@hidden
Subject: Re: [Linphone-developers] Linphone iPhone background incoming call problem

 

Simon & all,

 

Indeed it seems that typical default NAT timeouts are much longer then 5 min i mention. Please check page 7 of the http://research.nokia.com/files/tr/NRC-TR-2008-002.pdf . Also a lot of related info..

 

However, the main challenge with TCP wake-up is that while default timeouts can be quite large, it hard to predict configuration of NAT/firewall in each case. Interesting idea is described at http://www.cs.bham.ac.uk/~pxt/PAPERS/natTimeout.pdf . maybe t make sense to implement something similar... 

 

Regards

Stas 

 

On Thu, Sep 8, 2011 at 4:15 AM, Simon Morlat <address@hidden> wrote:

Hi Stas,

1. See there, at the end "Voip sockets"

2. Nothing is documented. Apple has never stated that is was supported for UDP in any version. But it apparently worked in some version of 4.x OS before being removed.

3. From our experience we have not been aware of any cases where the TCP nat timeout was so short. If it really exists I don't see  any other solution and even how the iOS push notifications could work.

Regards,

Simon




On 07/09/2011 12:24, Stas Khirman wrote:

Sorry for dumb questions, but I do appreciate clarifications on the mentioned topics:

1. Where can I find documentation on "wake up on tcp " mentioned below

2. Did I understand correctly that this feature had been disabled in 4.3 and up? Any pointers on docs very appreciated

3. IMHO firewalls are keeping TCP ports open for about 5 min or less, so even if TCP SIP enabled it will not work reliably . Am I wrong.

 

Regards

Stas

Sent from my iPad


On Sep 6, 2011, at 1:10 AM, Barbieri Davide <address@hidden> wrote:

Ok, thanks.

 

However, I can’t find a reason why Apple disabled this feature since 4.3+  L

 

From: Simon MORLAT [mailto:address@hidden] On Behalf Of Simon Morlat
Sent: lunedì 5 settembre 2011 22:36
To: address@hidden
Cc: Barbieri Davide
Subject: Re: [Linphone-developers] Linphone iPhone background incoming call problem

 

Hi,

The only way to workaround this UDP problem is to force the iphone to stay live by creating a long running background task.
The result is that the device never suspends, which drains the battery very fast.

We don't plan to implement this.
Instead we recommend the use of a TCP/UDP SIP gateway, like our flexisip server running on sip.linphone.org .

Anybody can configure its linphone android or iphone to go through sip.linphone.org to use TCP instead of UDP.
It is rather simple:
domain: your voip provider domain
server: sip.linphone.org
Outbound proxy: yes
Transport: TCP

There is no need to create a SIP account on linphone.org to benefit from this feature.

Regards,

Simon


On 05/09/2011 12:36, Barbieri Davide wrote:

Here you can read official doc for background support for TCP and UDP (as a data socket).

 

And how did Bria’s and Acrobits’ developers succeed instead ?

 

Cheers,

Davide

 

From: linphone-developers-bounces+address@hidden [mailto:linphone-developers-bounces+address@hidden] On Behalf Of Jehan Monnier
Sent: lunedì 5 settembre 2011 12:02
To: address@hidden
Subject: Re: [Linphone-developers] Linphone iPhone background incoming call problem

 

Hi,

From Apple's documentations, there is no trace of UDP support for voip socket at all. It used to work from IOS IOS 4.0 to 4.2, but from my understanding,  it has never been officially supported by Apple.

 

Cheers

 

Jehan

 

 

 





 

Le 5 sept. 2011 à 11:30, Barbieri Davide a écrit :





Hi Jehan,

 

is there an official documentation by Apple which states that?

 

Davide

 

From: linphone-developers-bounces+address@hidden [mailto:linphone-developers-bounces+address@hiddenOn Behalf Of Jehan Monnier
Sent: lunedì 5 settembre 2011 11:22
To: address@hidden
Subject: Re: [Linphone-developers] Linphone iPhone background incoming call problem

 

Hi,

 

It seams UDP background mode is no longer supported in IOS > 4.2. There is no obvious solution except using SIP TCP instead of UDP.

 

Cheers

 

Jehan

 

 

 






 

Le 31 août 2011 à 10:20, Gunnar Hellström a écrit :






Sorry,
That Swedish comment was intended as a comment directly to Ludvig that happened to go to the list.

It merely meant: Good, and good that there are others who have reported the same problem.

Gunnar




-----------------------------------------------


Gunnar Hellström skrev 2011-08-31 10:12:

Bra,
Och bra att det finns en till som rapporterat exakt samma sak.

Gunnar

----------------------------------------------------------------------------------




ludvig davidsson skrev 2011-08-31 09:57:

Hi all,

 

I ran into the very same problem myself. This functionality appears to be broken in the Linphone app 1.0.6 present on the App store. No notifications show from incoming calls when, for instance, the home screen is visible. I have only tested the app on IOS 4.3.X

Does anyone know what might have caused this?


Regards,

Ludvig Davidsson

 

2011/8/31 rex tsai <address@hidden>

Hi all,

 seems the function not worked from "iOS 4.3+"

     ref :  3/31 "It seems that background incoming calls don't work
any more, transport=UDP, backgroundMode=enabled."

 anyone have info about iOS or Linphone update ?



 With Regards,

Rex

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

 

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

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

 

 


--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

 

 


--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

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

 

 


--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

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

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

 



 

-- 
Stas Khirman

CoFounder & CTO

ChooChee Inc.

408-4803190

 

 


--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

 

 


--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

 



--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

reply via email to

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