Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-02-2011, 04:29 PM   #1 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 140
MatthewD is on a distinguished road
Default PJSIP - Incoming Call in Background

Has anyone successfully been able to have a local notification be pushed for an incoming call with PJSIP?

I am having an issue that the network traffic seems to be blocked until the keep-alive timeout handler is called or when the app enters the foreground.

So, it takes about 10 minutes before I see the incoming call push notification.

I searched around and saw that people had this issue with the simulator.

I am using both an iPhone and an iPad running iOS 4.3.2. I have not yet tried it on the simulator.

Thanks for any suggestions!
MatthewD is offline   Reply With Quote
Old 05-03-2011, 02:47 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

there aren't warranty about instant delivery of remote push notification....

read here some details: Why are push notifications to iOS devices sometimes delayed? / Push Notifications / FAQs - Urban Airship Support
__________________
dany_dev is offline   Reply With Quote
Old 05-03-2011, 07:42 AM   #3 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 140
MatthewD is on a distinguished road
Default

I think you may have misunderstood me.

I am watching the debugger console and seeing if I get any network traffic while the app is running in the background.

I do not get any network traffic until the keep-alive timeout handler is invoked, or if the app enters the foreground.

I think this may be because there is either no TCP traffic when I have an incoming call (I need to try and Wireshark, I suppose), or the TCP socket is set up incorrectly in the PJSIP library, or I am doing something to break the PJSIP library.


EDIT: I think I found my issue. I do not believe the SIP server I am using supports TCP, and TCP is required.

If there is anyone familiar with this library or someone with knowledge of SIP and VoIP, your input will be very insightful.

Last edited by MatthewD; 05-03-2011 at 08:18 AM. Reason: TCP Required
MatthewD is offline   Reply With Quote
Old 07-22-2011, 02:18 AM   #4 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 88
gagandeepb is on a distinguished road
Default

Quote:
Originally Posted by MatthewD View Post
I think you may have misunderstood me.

I am watching the debugger console and seeing if I get any network traffic while the app is running in the background.

I do not get any network traffic until the keep-alive timeout handler is invoked, or if the app enters the foreground.

I think this may be because there is either no TCP traffic when I have an incoming call (I need to try and Wireshark, I suppose), or the TCP socket is set up incorrectly in the PJSIP library, or I am doing something to break the PJSIP library.


EDIT: I think I found my issue. I do not believe the SIP server I am using supports TCP, and TCP is required.

If there is anyone familiar with this library or someone with knowledge of SIP and VoIP, your input will be very insightful.
Hi,

Did u find solution for this ? I am doing same and every time i have to send command 'm' to make call and other side command 'a' to answer the call. Then only call establish. Is there a way so that i can receive call incoming notification on receiver side ? currently i am not getting any notification.

If you have any sample available that will be great help.

Thanks,
Gagan
gagandeepb is offline   Reply With Quote
Old 01-13-2012, 03:36 AM   #5 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 1
surban_terron is on a distinguished road
Default

you can try to take a look to

#1107 (iPhone: Add support for Apple iOS4 background feature) ? pjsip Open source SIP, media, and NAT traversal stacks/libraries for smartphones
surban_terron is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 346
11 members and 335 guests
dansparrow, iOS.Lover, lorrettaui53, MikaelBartlett, Nobbsy, oztemel, pbart, PlutoPrime, sledzeppelin, thephotographer, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:55 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0