linphone-developers
[Top][All Lists]
Advanced

[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: Wed, 7 Sep 2011 10:22:31 +0200

Ok, perfect. In case of direct connection to the server without NAT, do you 
confirm that it's always necessary (from iOS 4.3+) to maintain a long run 
thread active to keep active the UDP socket?? This is my problem...

Davide



-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Gunnar Hellström
Sent: mercoledì 7 settembre 2011 10:15
To: address@hidden
Subject: Re: [Linphone-developers] R: Linphone iPhone background incoming call 
problem

Yes. With direct addressability, or a good SIP-aware network you do not
need any SIP-keep-alive.
But the environment for a terminal often varies, in some conditions you
need keep-alive, in others not.

I you want to auto-detect if you need keep-alive, then also RFC 5626
contains good advice.

/Gunnar

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

Barbieri Davide skrev 2011-09-07 09:45:
> Ok, I understand but if I don't wrong keep alive feature is useful only 
> behind a NAT.
>
> In a closed network with direct connection to the SIP server this expedient 
> is not needed and it's sufficient to keep active the receiving socket...
>
> Cheers,
>
> Davide
>
> -----Original Message-----
> From: address@hidden [mailto:address@hidden On Behalf Of Gunnar Hellström
> Sent: mercoledì 7 settembre 2011 07:44
> To: address@hidden
> Subject: Re: [Linphone-developers] R: Linphone iPhone background incoming 
> call problem
>
> For UDP, the keep-alive frequency needs to be 25 seconds, and is usually
> done with a SIP transaction of some kind.
>
> So, the device needs to do something 30 times more often than in the TCP
> case.
> The UDP keep-alive influences battery time quite a lot and can
> contribute to a resulting short battery time that makes the device less
> useful.
>
> Still, it would be better to support both UDP and TCP for SIP in the
> terminal, and leave the decision on what to use  to the service designer.
>
> Gunnar
>
> ___________________________________________________
> Gunnar Hellström
> Omnitor
> address@hidden
> +46708204288
>
>
> Barbieri Davide skrev 2011-09-07 01:48:
>> Ok, if we speak about the NAT limitation.
>> But just keep the UDP socket active to receive packets also when app is in 
>> background should not be a problem in terms of battery consuming. What's the 
>> difference compared to TCP in this case?
>>
>>
>> ________________________________________
>> Da: address@hidden address@hidden per conto di Gunnar Hellström 
>> address@hidden
>> Inviato: martedì 6 settembre 2011 22.08
>> A: address@hidden
>> Oggetto: Re: [Linphone-developers] Linphone iPhone background incoming  call 
>> problem
>>
>> Yes, TCP is good because of the lower frequency needed on the keep-alive.
>> RFC 5626 recommends 14 minutes keep-alive interval for battery operations.
>> http://tools.ietf.org/html/rfc5626#page-18    section 4.4.1.
>>
>> /Gunnar
>>
>> --------------------------------------------------------------------------------
>>
>> Simon Morlat skrev 2011-09-06 21:21:
>> I think there is a good one.
>> Most NAT routers (3g  and wifi) have timeouts>   30 minutes for TCP 
>> connections, while it is often less than a couple of minutes for UDP.
>> I don't know why this is like this, but it's a fact.
>> As a consequence there is a need for keepalive every minute for UDP to keep 
>> the connection up through the nat, while a keepalive every 30 mn is ok for 
>> TCP.
>> Thus TCP helps in preserving the battery.
>>
>> I suppose this is why Apple has interest to promote the use of TCP for its 
>> VoIP or IM applications instead of UDP.
>>
>>
>> Simon
>>
>> On 06/09/2011 10:10, Barbieri Davide 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 .
>>
>> 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).
>> 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
>>
>>
>>
>> --
>> 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
>
> --
> 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

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