linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Cannot Receive Call in Background mode


From: Barbieri Davide
Subject: Re: [Linphone-developers] Cannot Receive Call in Background mode
Date: Thu, 18 Oct 2012 16:00:38 +0000

The key concept is maintaining the main thread of the application alive. Once you do that, every action is possible.

 

 

 



Davide Barbieri

Concept Reply
Via Cardinal Massaia, 83
10147 - Torino - ITALY
phone: +39 011 29100
address@hidden
www.reply.it


 Concept Reply
 

From: linphone-developers-bounces+address@hidden [mailto:linphone-developers-bounces+address@hidden On Behalf Of Wei Eric
Sent: giovedì 18 ottobre 2012 11:50
To: address@hidden
Subject: Re: [Linphone-developers] Cannot Receive Call in Background mode

 

Thank you for your information. 

 

I also found that LinPhone v1.3 does not tag app as VOIP service type in iOS according iOS

official document, so when app runs in background mode, it cannot receive any call. 

 

I guess if the Linphone must work normally, not only VOIP service type should be defined in source code,

but also playing a short silence function needs to be added. Is it correct ?

 

Any better solution for this issue will be appreciated. 

 

ref:

 

 

 

On Thu, Oct 18, 2012 at 6:04 PM, Barbieri Davide <address@hidden> wrote:

Play a silent audio streams in silent mode is an optimal solution to maintain UDP socket alive in background. Create a parallel audio session and set property “mixwithothers” and launch play every few seconds with a timer.

 

Other method is logging GPS position but in this context Apple will not permit you if it’s not necessary.

 

 

Davide Barbieri

Concept Reply
Via Cardinal Massaia, 83
10147 - Torino - ITALY
phone: +39 011 29100
address@hidden
www.reply.it


 Concept Reply
 

From: linphone-developers-bounces+d.barbieri=address@hidden [mailto:linphone-developers-bounces+d.barbieri=address@hidden] On Behalf Of Wei Eric
Sent: giovedì 18 ottobre 2012 06:39
To: address@hidden
Subject: Re: [Linphone-developers] Cannot Receive Call in Background mode

 

Dear Cheers, 

 

Thank you for your reply. What if UDP is a must, is there any solution for this ?  

 

I found some possible solutions shown as follows.

1. Client periodically registers to SIP Proxy within 3 mins.

2. Play audio streams when an app runs in background mode.

 

Any comments for this ?  

 

Eric.W 

 

On Wed, Oct 17, 2012 at 11:13 PM, Dario Fiumicello <address@hidden> wrote:

Il 17/10/2012 16:06, Wei Eric ha scritto:

 

Dear all,

I tested the Linphone with iPhone4 iOS 5.0 and iPad2 iOS5.1.
When LinPhone runs in background mode, it cannot receive any VOIP call.

Has this issue been solved or no solutions ?

 

Hi, in iOS, as far as I know, UDP sockets are closed when phone goes to background. If you want to receive calls in background you should use SIP over TCP.

Cheers

--
Dario Fiumicello

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