How to Disable Background Support

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

 



I saw "pj_activesock_enable_iphone_os_bg(PJ_FALSE);" after I was looking at 
ticket#1145 and #3336 but is it accessible from <pjsua-lib/pjsua.h> in my 
iphone app?

Thanks

-----Original Message----- 
From: s.marek@xxxxxx
Sent: Friday, May 11, 2012 3:58 AM
To: pjsip list
Subject: Re: How to Disable Background Support

| I am trying to figure out how to disable background support in PJSIP
| 1.12 .. I read that I can do this at runtime or at compile time.

Why don't you just remove the UIBackgroundModes Keys (voip and audio) from
your info.plist?

This way you don't have to fiddle around with PJSIP options. When you want
to turn on background support in the future, you just add the info.plist
keys and you're done.

| For the runtime way.. I could not find and PJSUA API that allow me to
disable BG?? am I missing something..

Maybe this is what you're looking for:

        pj_activesock_enable_iphone_os_bg(PJ_FALSE);

It is declared in activesock.h.

Good luck,
Sebastian.


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org 




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux