[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] R: Linphone iPhone background incoming call pr
From: |
Barbieri Davide |
Subject: |
Re: [Linphone-developers] R: Linphone iPhone background incoming call problem |
Date: |
Tue, 20 Sep 2011 15:24:36 +0200 |
No one has some idea about this trick which is able to keep active the
application while in background, and consequently the receiving UDP socket??
I tried creating parallel threads or setting a timer while in background. If I
run in debug mode (starting on XCode) it's all ok (sends REGISTERs every 600
s), otherwise it stops working after 10 minutes... I've no more ideas at the
moment.
Regards,
Davide
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Barbieri Davide
Sent: domenica 18 settembre 2011 19:02
To: address@hidden
Subject: [Linphone-developers] R: Linphone iPhone background incoming call
problem
interesting... but as far as I know only media5 can receive incoming calls in
background with UDP and without any notification. I've also noticed that while
in background it sends REGISTERs every 90 s (without setting keep alive),
instead of 600 s as linphone does. Acrobits uses push notifications.
Do you think is that the "undocumented trick" to keep active the app without
any timeout ?
Regards,
Davide
________________________________________
Da: address@hidden address@hidden per conto di Rene Dohmen address@hidden
Inviato: sabato 17 settembre 2011 12.36
A: address@hidden
Oggetto: Re: [Linphone-developers] Linphone iPhone background incoming call
problem
Hi,
on a old (<4.3) sdk background mode with UDP works, if you have a decent
router. (which keeps the UDP return socket open)
on 4.3+ the call for background mode fails with an error, the <4.3 sdk just
doesn't return a error.
I mailed apple about this behaviour, they say they solved a bug in the 4.3 SDK
-> returning an error.
So that's why it appears to work on a older version.
I'm still wondering how acrobit and counterpath's bria manage to do the trick.
Kind Regards
Rene
On Fri, Sep 16, 2011 at 12:19 PM, Barbieri Davide
<address@hidden<mailto:address@hidden>> wrote:
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: address@hidden<mailto:address@hidden>
[mailto:linphone-developers-bounces+d.barbieri<mailto:linphone-developers-bounces%2Bd.barbieri>address@hidden<mailto:address@hidden>]
On Behalf Of Jehan Monnier
Sent: venerdì 16 settembre 2011 12:09
To: address@hidden<mailto:address@hidden>
Subject: Re: [Linphone-developers] Linphone iPhone background incoming call
problem
How can Apple detect that ?
Jehan
www.linphone.org<http://www.linphone.org>
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: address@hidden<mailto:address@hidden>
[mailto:linphone-developers-bounces+d.barbieri<mailto:linphone-developers-bounces%2Bd.barbieri>address@hidden<mailto:address@hidden>]
On Behalf Of Jehan Monnier
Sent: venerdì 16 settembre 2011 11:37
To: address@hidden<mailto: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
www.linphone.org<http://www.linphone.org>
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.
This is an official doc about executing code in background
-->http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html
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 ☹, 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: address@hidden<mailto:address@hidden>
[mailto:linphone-developers-bounces+d.barbieri<mailto:linphone-developers-bounces%2Bd.barbieri>address@hidden<mailto:address@hidden>]
On Behalf Of Stas Khirman
Sent: giovedì 8 settembre 2011 22:56
To: Simon Morlat
Cc: address@hidden<mailto: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<mailto:address@hidden>> wrote:
Hi Stas,
1. See there, at the end "Voip sockets"
http://developer.apple.com/library/ios/#technotes/tn2277/_index.html
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<mailto:address@hidden>> wrote:
Ok, thanks.
However, I can’t find a reason why Apple disabled this feature since 4.3+ ☹
From: Simon MORLAT [mailto:address@hidden On Behalf Of Simon Morlat
Sent: lunedì 5 settembre 2011 22:36
To: address@hidden<mailto: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<http://sip.linphone.org> .
Anybody can configure its linphone android or iphone to go through
sip.linphone.org<http://sip.linphone.org> to use TCP instead of UDP.
It is rather simple:
domain: your voip provider domain
server: sip.linphone.org<http://sip.linphone.org>
Outbound proxy: yes
Transport: TCP
There is no need to create a SIP account on linphone.org<http://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).
http://developer.apple.com/library/ios/#technotes/tn2277/_index.html
And how did Bria’s and Acrobits’ developers succeed instead ?
Cheers,
Davide
From: address@hidden<mailto:address@hidden> [mailto:address@hidden On Behalf Of
Jehan Monnier
Sent: lunedì 5 settembre 2011 12:02
To: address@hidden<mailto: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
www.linphone.org<http://www.linphone.org>
Le 5 sept. 2011 à 11:30, Barbieri Davide a écrit :
Hi Jehan,
is there an official documentation by Apple which states that?
Davide
From: address@hidden<mailto:address@hidden> [mailto:address@hidden On Behalf Of
Jehan Monnier
Sent: lunedì 5 settembre 2011 11:22
To: address@hidden<mailto: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
www.linphone.org<http://www.linphone.org>
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<mailto: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<mailto:address@hidden>
https://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden<mailto:address@hidden>
https://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden<mailto:address@hidden>
https://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden<mailto: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<mailto: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<mailto: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<mailto:address@hidden>
https://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden<mailto:address@hidden>
https://lists.nongnu.org/mailman/listinfo/linphone-developers
--
Stas Khirman
CoFounder & CTO
ChooChee Inc.
408-4803190<tel: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<mailto: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<mailto: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<mailto: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.
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, (continued)
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Stas Khirman, 2011/09/07
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Simon Morlat, 2011/09/08
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Stas Khirman, 2011/09/08
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Barbieri Davide, 2011/09/16
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Jehan Monnier, 2011/09/16
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Barbieri Davide, 2011/09/16
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Jehan Monnier, 2011/09/16
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Barbieri Davide, 2011/09/16
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Rene Dohmen, 2011/09/17
- [Linphone-developers] R: Linphone iPhone background incoming call problem, Barbieri Davide, 2011/09/18
- Re: [Linphone-developers] R: Linphone iPhone background incoming call problem,
Barbieri Davide <=
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Gunnar Hellström, 2011/09/17
- Re: [Linphone-developers] Linphone iPhone background incoming call problem, Simon Morlat, 2011/09/18