Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6653197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:14:21+00:00 2026-05-26T01:14:21+00:00

I think i have all the requirements to have an alive socket while the

  • 0

I think i have all the requirements to have an “alive” socket while the app is in background. That is to say:

  • My application has voip and audio as its background modes.
  • I’m using PJSIP as the SIP library, which is supposed to use CFReadStreams with the “Run in Background” property enabled
  • The app is using TCP to establish the connection with the SIP server.

When the application is sent to background, it adds a background handler which sends a “keepAlive” message each period of time.

That keepAlive seems to be working. If I check the logs in the server I can see how messages arrive even when the application is not in foreground.

The problem ( and the question ) is, I’m not receiving calls while the application is in background.

It seems that the socket is still alive, if I make a call to the cell phone while the app is no in the foreground, nothing happens, but if I launch the app by myself, the call is automatically detected.

Thanks 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:14:22+00:00Added an answer on May 26, 2026 at 1:14 am

    We found the problem.

    Given the current configuration, the Server used a different connection to send the INVITE request from the initial TCP socket used from the phone to send the intial REGISTER request.

    As the two sockets were different, the Operating System didn’t wake the application.

    If you configure the server (Kamailio in our case) to reuse the initial socket which the phone used to send the first REGISTER it works seamlessly.

    By default, it seems that the SIP servers create new sockets for each INVITE request they want to send to the phone. This situation IS a problem to iphone background model.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following requirements for an application that many people will be using
We have a data model that has some requirements. I would like to find
I have an AppEngine application that currently has about 15GB of data, and it
I have all the dependancies installed (or I think I do). I definitely have
I think the question says it all. I have several monthly processes in stored
Dear all,Now i have this question in my java program,I think it should be
I have a form with 2 text boxes that all do the same thing.
We have a web application which has been developed over the past 7 months.
We are a team of developers that because of business requirements have to develop
We have a base product that has bespoke development for each client that extends

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.