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 06-16-2010, 12:29 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 1
akashthambiran is on a distinguished road
Default Background VoIP - Strange Issue - iOS 4.0

Hey guys.

I've been able to implement VoIP with multitasking, i.e., my application keeps running in the background, and notifies the user when there's an incoming call, using LocalNotifications.

The strange issue that I find is, this works only when I have my debugger running.

1. When I 'Build and Debug', with some breakpoints at the incoming voip call notification handlers in my app., it reaches there, and then goes on fine.
2. When I 'Build and Run' (disabled breakpoints), this point is not reached (I found out through the console logs).
Strangely, when I 'Enable' and then 'Disable' breakpoints, then the application is waken up by the system, and I get the notifications.
After this, notifications keep coming even in the background.
3. When I run the app stand-alone on the device, nothing works, but the application is not suspended, and when I switch back to my application, the notifications come.


I've tried this on all the beta releases, and the final GM release. Its the same.

I've done the voip and audio property setting in the plist and sockets configurations for voip.

The documentation says,

"When you configure a stream for VoIP, the system takes over management of the underlying socket. If new data arrives, the system wakes up your applicationl".

This happens for me, only with that debugger stuff.
Not when its running standalone on the device.

Any ideas.
akashthambiran is offline   Reply With Quote
Old 07-23-2010, 02:00 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 10
SourceAshish is on a distinguished road
Default

Quote:
Originally Posted by akashthambiran View Post
Hey guys.

I've been able to implement VoIP with multitasking, i.e., my application keeps running in the background, and notifies the user when there's an incoming call, using LocalNotifications.

The strange issue that I find is, this works only when I have my debugger running.

1. When I 'Build and Debug', with some breakpoints at the incoming voip call notification handlers in my app., it reaches there, and then goes on fine.
2. When I 'Build and Run' (disabled breakpoints), this point is not reached (I found out through the console logs).
Strangely, when I 'Enable' and then 'Disable' breakpoints, then the application is waken up by the system, and I get the notifications.
After this, notifications keep coming even in the background.
3. When I run the app stand-alone on the device, nothing works, but the application is not suspended, and when I switch back to my application, the notifications come.


I've tried this on all the beta releases, and the final GM release. Its the same.

I've done the voip and audio property setting in the plist and sockets configurations for voip.

The documentation says,

"When you configure a stream for VoIP, the system takes over management of the underlying socket. If new data arrives, the system wakes up your applicationl".

This happens for me, only with that debugger stuff.
Not when its running standalone on the device.

Any ideas.
Hi akashthambiran,

I would like to ask you that which SDK you have used for VOIP development for iPhone. I want to develop VOIP application for iPhone but I am worried which SDK to use.

Please guide me.
SourceAshish is offline   Reply With Quote
Old 08-31-2011, 12:36 PM   #3 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 3
Dmytro.Bogovych is on a distinguished road
Default

I have the same issue...
SDK 4.3, xcode 3.2

May anyone to help?

Quote:
Originally Posted by akashthambiran View Post
Hey guys.

I've been able to implement VoIP with multitasking, i.e., my application keeps running in the background, and notifies the user when there's an incoming call, using LocalNotifications.

The strange issue that I find is, this works only when I have my debugger running.

1. When I 'Build and Debug', with some breakpoints at the incoming voip call notification handlers in my app., it reaches there, and then goes on fine.
2. When I 'Build and Run' (disabled breakpoints), this point is not reached (I found out through the console logs).
Strangely, when I 'Enable' and then 'Disable' breakpoints, then the application is waken up by the system, and I get the notifications.
After this, notifications keep coming even in the background.
3. When I run the app stand-alone on the device, nothing works, but the application is not suspended, and when I switch back to my application, the notifications come.


I've tried this on all the beta releases, and the final GM release. Its the same.

I've done the voip and audio property setting in the plist and sockets configurations for voip.

The documentation says,

"When you configure a stream for VoIP, the system takes over management of the underlying socket. If new data arrives, the system wakes up your applicationl".

This happens for me, only with that debugger stuff.
Not when its running standalone on the device.

Any ideas.
Dmytro.Bogovych is offline   Reply With Quote
Old 12-01-2011, 02:47 AM   #4 (permalink)
Registered Member
 
Join Date: Dec 2011
Posts: 1
charlieluc1968 is on a distinguished road
Default

Quote:
Originally Posted by akashthambiran View Post
Hey guys.

I've been able to implement VoIP with multitasking, i.e., my application keeps running in the background, and notifies the user when there's an incoming call, using LocalNotifications.

The strange issue that I find is, this works only when I have my debugger running.

1. When I 'Build and Debug', with some breakpoints at the incoming voip call notification handlers in my app., it reaches there, and then goes on fine.
2. When I 'Build and Run' (disabled breakpoints), this point is not reached (I found out through the console logs).
Strangely, when I 'Enable' and then 'Disable' breakpoints, then the application is waken up by the system, and I get the notifications.
After this, notifications keep coming even in the background.
3. When I run the app stand-alone on the device, nothing works, but the application is not suspended, and when I switch back to my application, the notifications come.


I've tried this on all the beta releases, and the final GM release. Its the same.

I've done the voip and audio property setting in the plist and sockets configurations for voip.

The documentation says,

"When you configure a stream for VoIP, the system takes over management of the underlying socket. If new data arrives, the system wakes up your applicationl".

This happens for me, only with that debugger stuff.
Not when its running standalone on the device.

Any ideas.
I have also been trying to run voip on my iphone and I am running into some of the same issues. Any information on Business PBX or Voip Phones would be very helpful. Thanks in advance.
-Charlie

Last edited by charlieluc1968; 01-16-2012 at 07:54 PM.
charlieluc1968 is offline   Reply With Quote
Old 12-07-2011, 08:30 AM   #5 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 3
Dmytro.Bogovych is on a distinguished road
Default

Quote:
Originally Posted by charlieluc1968 View Post
I have also been trying to run voip on my iphone and I am running into some of the same issues. Any information would be very helpful. Thanks in advance.
-Charlie
It was my mistake in fact.
I tried to get voip running in background on good old iphone 3g.
It was jailbroken and patched to support background execution.
But it did not help - application did not wake up for incoming data anyway.
I suppose it is hardware limitation of iphone 3g.

New 3gs / 4 / 4s works good.

Check this document - it is the best article that I discovered.
Loading…
Dmytro.Bogovych is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, background, multitasking, sip, voip

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: 324
9 members and 315 guests
Absentia, Domele, fiftysixty, givensur, heshiming, linkmx, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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