iOS Background Support: Local notifications

CF
Chris Foba
Wed, Sep 8, 2010 3:50 PM

Hi!

I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).

An active call works fine in backgound, but local notifications doesn´t
works for me if App is in background or device is locked.

I tried the ipjsua.xcodeproj and my own project. Is there still any probleme
or can you give me any hints how it works?

Thanks,
Chris

Hi! I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 background feature). An active call works fine in backgound, but local notifications doesn´t works for me if App is in background or device is locked. I tried the ipjsua.xcodeproj and my own project. Is there still any probleme or can you give me any hints how it works? Thanks, Chris
SM
Sauw Ming
Wed, Sep 8, 2010 4:19 PM

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba chris3736@googlemail.com wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications doesn´t
works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any probleme
or can you give me any hints how it works?
Thanks,
Chris


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

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

Hi Chris, 1. Please check that the value of PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in pjlib/include/pj/compat/os_auto.h 2. Please check whether TCP transport can work successfully in the background, i.e. there is no message saying that: "Failed to configure TCP transport for VoIP usage. Background mode will not be supported." in the log. Best regards, Ming On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com> wrote: > Hi! > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 > background feature). > An active call works fine in backgound, but local notifications doesn´t > works for me if App is in background or device is locked. > I tried the ipjsua.xcodeproj and my own project. Is there still any probleme > or can you give me any hints how it works? > Thanks, > Chris > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
CF
Chris Foba
Wed, Sep 8, 2010 5:35 PM

Hi Ming,

this values are defined and I there is no error message in the log. I added
some lines in activesock.c:

else
{
PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
"usage. Background mode will be supported."));
}

And it is successfully.
Can I log if the socket connection will be lost?

Thank you,
Chris

2010/9/8 Sauw Ming ming@teluu.com

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba chris3736@googlemail.com
wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications doesn´t
works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any

probleme

or can you give me any hints how it works?
Thanks,
Chris


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

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

Hi Ming, this values are defined and I there is no error message in the log. I added some lines in activesock.c: else { PJ_LOG(2,("", "Successfully configured TCP transport for VoIP " "usage. Background mode will be supported.")); } And it is successfully. Can I log if the socket connection will be lost? Thank you, Chris 2010/9/8 Sauw Ming <ming@teluu.com> > Hi Chris, > > 1. Please check that the value of > PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and > PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in > pjlib/include/pj/compat/os_auto.h > 2. Please check whether TCP transport can work successfully in the > background, i.e. there is no message saying that: "Failed to configure > TCP transport for VoIP usage. Background mode will not be supported." > in the log. > > Best regards, > Ming > > On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com> > wrote: > > Hi! > > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 > > background feature). > > An active call works fine in backgound, but local notifications doesn´t > > works for me if App is in background or device is locked. > > I tried the ipjsua.xcodeproj and my own project. Is there still any > probleme > > or can you give me any hints how it works? > > Thanks, > > Chris > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
SM
Sauw Ming
Thu, Sep 9, 2010 1:44 AM

Hi Chris,

First, could you please share the device, iOS, and the SDK version you
used for testing?

When there is an incoming call, try checking whether ipjsua's
pjsua_app.c:on_incoming_call() callback is executed. If not, then
verify whether ipjsua is still running in the background (i.e. it does
not crash).

That's all that I can think of for now.

Regards,
Ming

On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba chris3736@googlemail.com wrote:

Hi Ming,
this values are defined and I there is no error message in the log. I added
some lines in activesock.c:
else
{
   PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
     "usage. Background mode will be supported."));
}
And it is successfully.
Can I log if the socket connection will be lost?
Thank you,
Chris
2010/9/8 Sauw Ming ming@teluu.com

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba chris3736@googlemail.com
wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications doesn´t
works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any
probleme
or can you give me any hints how it works?
Thanks,
Chris


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

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

Hi Chris, First, could you please share the device, iOS, and the SDK version you used for testing? When there is an incoming call, try checking whether ipjsua's pjsua_app.c:on_incoming_call() callback is executed. If not, then verify whether ipjsua is still running in the background (i.e. it does not crash). That's all that I can think of for now. Regards, Ming On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba <chris3736@googlemail.com> wrote: > Hi Ming, > this values are defined and I there is no error message in the log. I added > some lines in activesock.c: > else > { >    PJ_LOG(2,("", "Successfully configured TCP transport for VoIP " >      "usage. Background mode will be supported.")); > } > And it is successfully. > Can I log if the socket connection will be lost? > Thank you, > Chris > 2010/9/8 Sauw Ming <ming@teluu.com> >> >> Hi Chris, >> >> 1. Please check that the value of >> PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and >> PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in >> pjlib/include/pj/compat/os_auto.h >> 2. Please check whether TCP transport can work successfully in the >> background, i.e. there is no message saying that: "Failed to configure >> TCP transport for VoIP usage. Background mode will not be supported." >> in the log. >> >> Best regards, >> Ming >> >> On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com> >> wrote: >> > Hi! >> > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 >> > background feature). >> > An active call works fine in backgound, but local notifications doesn´t >> > works for me if App is in background or device is locked. >> > I tried the ipjsua.xcodeproj and my own project. Is there still any >> > probleme >> > or can you give me any hints how it works? >> > Thanks, >> > Chris >> > _______________________________________________ >> > Visit our blog: http://blog.pjsip.org >> > >> > pjsip mailing list >> > pjsip@lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
SM
Sauw Ming
Thu, Sep 9, 2010 2:00 AM

Hi Chris,

One more thing, can you test whether you can answer the call
successfully if you bring the application to the foreground? (i.e. put
the app in BG, make a call to the app, then bring the app to FG)

Regards,
Ming

On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming ming@teluu.com wrote:

Hi Chris,

First, could you please share the device, iOS, and the SDK version you
used for testing?

When there is an incoming call, try checking whether ipjsua's
pjsua_app.c:on_incoming_call() callback is executed. If not, then
verify whether ipjsua is still running in the background (i.e. it does
not crash).

That's all that I can think of for now.

Regards,
Ming

On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba chris3736@googlemail.com wrote:

Hi Ming,
this values are defined and I there is no error message in the log. I added
some lines in activesock.c:
else
{
   PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
     "usage. Background mode will be supported."));
}
And it is successfully.
Can I log if the socket connection will be lost?
Thank you,
Chris
2010/9/8 Sauw Ming ming@teluu.com

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba chris3736@googlemail.com
wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications doesn´t
works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any
probleme
or can you give me any hints how it works?
Thanks,
Chris


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

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

Hi Chris, One more thing, can you test whether you can answer the call successfully if you bring the application to the foreground? (i.e. put the app in BG, make a call to the app, then bring the app to FG) Regards, Ming On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming <ming@teluu.com> wrote: > Hi Chris, > > First, could you please share the device, iOS, and the SDK version you > used for testing? > > When there is an incoming call, try checking whether ipjsua's > pjsua_app.c:on_incoming_call() callback is executed. If not, then > verify whether ipjsua is still running in the background (i.e. it does > not crash). > > That's all that I can think of for now. > > Regards, > Ming > > On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba <chris3736@googlemail.com> wrote: >> Hi Ming, >> this values are defined and I there is no error message in the log. I added >> some lines in activesock.c: >> else >> { >>    PJ_LOG(2,("", "Successfully configured TCP transport for VoIP " >>      "usage. Background mode will be supported.")); >> } >> And it is successfully. >> Can I log if the socket connection will be lost? >> Thank you, >> Chris >> 2010/9/8 Sauw Ming <ming@teluu.com> >>> >>> Hi Chris, >>> >>> 1. Please check that the value of >>> PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and >>> PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in >>> pjlib/include/pj/compat/os_auto.h >>> 2. Please check whether TCP transport can work successfully in the >>> background, i.e. there is no message saying that: "Failed to configure >>> TCP transport for VoIP usage. Background mode will not be supported." >>> in the log. >>> >>> Best regards, >>> Ming >>> >>> On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com> >>> wrote: >>> > Hi! >>> > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 >>> > background feature). >>> > An active call works fine in backgound, but local notifications doesn´t >>> > works for me if App is in background or device is locked. >>> > I tried the ipjsua.xcodeproj and my own project. Is there still any >>> > probleme >>> > or can you give me any hints how it works? >>> > Thanks, >>> > Chris >>> > _______________________________________________ >>> > Visit our blog: http://blog.pjsip.org >>> > >>> > pjsip mailing list >>> > pjsip@lists.pjsip.org >>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> > >>> > >>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip@lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >
CF
Chris Foba
Thu, Sep 9, 2010 11:59 AM

Hi Ming,

thank you for your reply. I tested some things:

I can answer the call when I bring the app to foreground.

Function pj_bool_t showNotification(pjsua_call_id call_id) will be called,
BUT not until when the app comes back to foreground. So all handler will be
called but not in background mode!?

Do you have any ideas?

I´m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2.

Regards,
Chris

2010/9/9 Sauw Ming ming@teluu.com

Hi Chris,

One more thing, can you test whether you can answer the call
successfully if you bring the application to the foreground? (i.e. put
the app in BG, make a call to the app, then bring the app to FG)

Regards,
Ming

On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming ming@teluu.com wrote:

Hi Chris,

First, could you please share the device, iOS, and the SDK version you
used for testing?

When there is an incoming call, try checking whether ipjsua's
pjsua_app.c:on_incoming_call() callback is executed. If not, then
verify whether ipjsua is still running in the background (i.e. it does
not crash).

That's all that I can think of for now.

Regards,
Ming

On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba chris3736@googlemail.com

wrote:

Hi Ming,
this values are defined and I there is no error message in the log. I

added

some lines in activesock.c:
else
{
PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
"usage. Background mode will be supported."));
}
And it is successfully.
Can I log if the socket connection will be lost?
Thank you,
Chris
2010/9/8 Sauw Ming ming@teluu.com

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba chris3736@googlemail.com
wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications

doesn´t

works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any
probleme
or can you give me any hints how it works?
Thanks,
Chris


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

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

Hi Ming, thank you for your reply. I tested some things: I can answer the call when I bring the app to foreground. Function pj_bool_t showNotification(pjsua_call_id call_id) will be called, BUT not until when the app comes back to foreground. So all handler will be called but not in background mode!? Do you have any ideas? I´m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2. Regards, Chris 2010/9/9 Sauw Ming <ming@teluu.com> > Hi Chris, > > One more thing, can you test whether you can answer the call > successfully if you bring the application to the foreground? (i.e. put > the app in BG, make a call to the app, then bring the app to FG) > > Regards, > Ming > > On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming <ming@teluu.com> wrote: > > Hi Chris, > > > > First, could you please share the device, iOS, and the SDK version you > > used for testing? > > > > When there is an incoming call, try checking whether ipjsua's > > pjsua_app.c:on_incoming_call() callback is executed. If not, then > > verify whether ipjsua is still running in the background (i.e. it does > > not crash). > > > > That's all that I can think of for now. > > > > Regards, > > Ming > > > > On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba <chris3736@googlemail.com> > wrote: > >> Hi Ming, > >> this values are defined and I there is no error message in the log. I > added > >> some lines in activesock.c: > >> else > >> { > >> PJ_LOG(2,("", "Successfully configured TCP transport for VoIP " > >> "usage. Background mode will be supported.")); > >> } > >> And it is successfully. > >> Can I log if the socket connection will be lost? > >> Thank you, > >> Chris > >> 2010/9/8 Sauw Ming <ming@teluu.com> > >>> > >>> Hi Chris, > >>> > >>> 1. Please check that the value of > >>> PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and > >>> PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in > >>> pjlib/include/pj/compat/os_auto.h > >>> 2. Please check whether TCP transport can work successfully in the > >>> background, i.e. there is no message saying that: "Failed to configure > >>> TCP transport for VoIP usage. Background mode will not be supported." > >>> in the log. > >>> > >>> Best regards, > >>> Ming > >>> > >>> On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com> > >>> wrote: > >>> > Hi! > >>> > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 > >>> > background feature). > >>> > An active call works fine in backgound, but local notifications > doesn´t > >>> > works for me if App is in background or device is locked. > >>> > I tried the ipjsua.xcodeproj and my own project. Is there still any > >>> > probleme > >>> > or can you give me any hints how it works? > >>> > Thanks, > >>> > Chris > >>> > _______________________________________________ > >>> > Visit our blog: http://blog.pjsip.org > >>> > > >>> > pjsip mailing list > >>> > pjsip@lists.pjsip.org > >>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >>> > > >>> > > >>> > >>> _______________________________________________ > >>> Visit our blog: http://blog.pjsip.org > >>> > >>> pjsip mailing list > >>> pjsip@lists.pjsip.org > >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > >> > >> _______________________________________________ > >> Visit our blog: http://blog.pjsip.org > >> > >> pjsip mailing list > >> pjsip@lists.pjsip.org > >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > >> > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
E
eaf@oyatel.no
Thu, Sep 9, 2010 12:06 PM

Have you set the required  UIBackgroundModes properties in the Info.plist for your application?

See attached screenshot for reference.

Best regards,
Even André

On 9. sep. 2010, at 13.59, Chris Foba wrote:

Hi Ming,

thank you for your reply. I tested some things:

I can answer the call when I bring the app to foreground.

Function pj_bool_t showNotification(pjsua_call_id call_id) will be called, BUT not until when the app comes back to foreground. So all handler will be called but not in background mode!?

Do you have any ideas?

I´m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2.

Regards,
Chris

2010/9/9 Sauw Ming ming@teluu.com
Hi Chris,

One more thing, can you test whether you can answer the call
successfully if you bring the application to the foreground? (i.e. put
the app in BG, make a call to the app, then bring the app to FG)

Regards,
Ming

On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming ming@teluu.com wrote:

Hi Chris,

First, could you please share the device, iOS, and the SDK version you
used for testing?

When there is an incoming call, try checking whether ipjsua's
pjsua_app.c:on_incoming_call() callback is executed. If not, then
verify whether ipjsua is still running in the background (i.e. it does
not crash).

That's all that I can think of for now.

Regards,
Ming

On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba chris3736@googlemail.com wrote:

Hi Ming,
this values are defined and I there is no error message in the log. I added
some lines in activesock.c:
else
{
PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
"usage. Background mode will be supported."));
}
And it is successfully.
Can I log if the socket connection will be lost?
Thank you,
Chris
2010/9/8 Sauw Ming ming@teluu.com

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba chris3736@googlemail.com
wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications doesn´t
works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any
probleme
or can you give me any hints how it works?
Thanks,
Chris


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

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

Have you set the required UIBackgroundModes properties in the Info.plist for your application? See attached screenshot for reference. Best regards, Even André On 9. sep. 2010, at 13.59, Chris Foba wrote: > Hi Ming, > > thank you for your reply. I tested some things: > > I can answer the call when I bring the app to foreground. > > Function pj_bool_t showNotification(pjsua_call_id call_id) will be called, BUT not until when the app comes back to foreground. So all handler will be called but not in background mode!? > > Do you have any ideas? > > I´m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2. > > Regards, > Chris > > > 2010/9/9 Sauw Ming <ming@teluu.com> > Hi Chris, > > One more thing, can you test whether you can answer the call > successfully if you bring the application to the foreground? (i.e. put > the app in BG, make a call to the app, then bring the app to FG) > > Regards, > Ming > > On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming <ming@teluu.com> wrote: > > Hi Chris, > > > > First, could you please share the device, iOS, and the SDK version you > > used for testing? > > > > When there is an incoming call, try checking whether ipjsua's > > pjsua_app.c:on_incoming_call() callback is executed. If not, then > > verify whether ipjsua is still running in the background (i.e. it does > > not crash). > > > > That's all that I can think of for now. > > > > Regards, > > Ming > > > > On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba <chris3736@googlemail.com> wrote: > >> Hi Ming, > >> this values are defined and I there is no error message in the log. I added > >> some lines in activesock.c: > >> else > >> { > >> PJ_LOG(2,("", "Successfully configured TCP transport for VoIP " > >> "usage. Background mode will be supported.")); > >> } > >> And it is successfully. > >> Can I log if the socket connection will be lost? > >> Thank you, > >> Chris > >> 2010/9/8 Sauw Ming <ming@teluu.com> > >>> > >>> Hi Chris, > >>> > >>> 1. Please check that the value of > >>> PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and > >>> PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in > >>> pjlib/include/pj/compat/os_auto.h > >>> 2. Please check whether TCP transport can work successfully in the > >>> background, i.e. there is no message saying that: "Failed to configure > >>> TCP transport for VoIP usage. Background mode will not be supported." > >>> in the log. > >>> > >>> Best regards, > >>> Ming > >>> > >>> On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com> > >>> wrote: > >>> > Hi! > >>> > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 > >>> > background feature). > >>> > An active call works fine in backgound, but local notifications doesn´t > >>> > works for me if App is in background or device is locked. > >>> > I tried the ipjsua.xcodeproj and my own project. Is there still any > >>> > probleme > >>> > or can you give me any hints how it works? > >>> > Thanks, > >>> > Chris > >>> > _______________________________________________ > >>> > Visit our blog: http://blog.pjsip.org > >>> > > >>> > pjsip mailing list > >>> > pjsip@lists.pjsip.org > >>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >>> > > >>> > > >>> > >>> _______________________________________________ > >>> Visit our blog: http://blog.pjsip.org > >>> > >>> pjsip mailing list > >>> pjsip@lists.pjsip.org > >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > >> > >> _______________________________________________ > >> Visit our blog: http://blog.pjsip.org > >> > >> pjsip mailing list > >> pjsip@lists.pjsip.org > >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > >> > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
CF
Chris Foba
Thu, Sep 9, 2010 12:14 PM

Hi André,

yes this properties are set. I´m using the ipjsua demo project. Have you
successfully implemented the local notifications into your application?

Regards,
Chris

2010/9/9 eaf@oyatel.no

Have you set the required  UIBackgroundModes properties in the Info.plist
for your application?

See attached screenshot for reference.

Best regards,
Even André

On 9. sep. 2010, at 13.59, Chris Foba wrote:

Hi Ming,

thank you for your reply. I tested some things:

I can answer the call when I bring the app to foreground.

Function pj_bool_t showNotification(pjsua_call_id call_id) will be called,
BUT not until when the app comes back to foreground. So all handler will be
called but not in background mode!?

Do you have any ideas?

I´m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2.

Regards,
Chris

2010/9/9 Sauw Ming ming@teluu.com

Hi Chris,

One more thing, can you test whether you can answer the call
successfully if you bring the application to the foreground? (i.e. put
the app in BG, make a call to the app, then bring the app to FG)

Regards,
Ming

On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming ming@teluu.com wrote:

Hi Chris,

First, could you please share the device, iOS, and the SDK version you
used for testing?

When there is an incoming call, try checking whether ipjsua's
pjsua_app.c:on_incoming_call() callback is executed. If not, then
verify whether ipjsua is still running in the background (i.e. it does
not crash).

That's all that I can think of for now.

Regards,
Ming

On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba chris3736@googlemail.com

wrote:

Hi Ming,
this values are defined and I there is no error message in the log. I

added

some lines in activesock.c:
else
{
PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
"usage. Background mode will be supported."));
}
And it is successfully.
Can I log if the socket connection will be lost?
Thank you,
Chris
2010/9/8 Sauw Ming ming@teluu.com

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com

wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications

doesn´t

works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any
probleme
or can you give me any hints how it works?
Thanks,
Chris


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

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

Hi André, yes this properties are set. I´m using the ipjsua demo project. Have you successfully implemented the local notifications into your application? Regards, Chris 2010/9/9 <eaf@oyatel.no> > Have you set the required UIBackgroundModes properties in the Info.plist > for your application? > > See attached screenshot for reference. > > > Best regards, > Even André > > On 9. sep. 2010, at 13.59, Chris Foba wrote: > > Hi Ming, > > thank you for your reply. I tested some things: > > I can answer the call when I bring the app to foreground. > > Function pj_bool_t showNotification(pjsua_call_id call_id) will be called, > BUT not until when the app comes back to foreground. So all handler will be > called but not in background mode!? > > Do you have any ideas? > > I´m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2. > > Regards, > Chris > > > 2010/9/9 Sauw Ming <ming@teluu.com> > >> Hi Chris, >> >> One more thing, can you test whether you can answer the call >> successfully if you bring the application to the foreground? (i.e. put >> the app in BG, make a call to the app, then bring the app to FG) >> >> Regards, >> Ming >> >> On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming <ming@teluu.com> wrote: >> > Hi Chris, >> > >> > First, could you please share the device, iOS, and the SDK version you >> > used for testing? >> > >> > When there is an incoming call, try checking whether ipjsua's >> > pjsua_app.c:on_incoming_call() callback is executed. If not, then >> > verify whether ipjsua is still running in the background (i.e. it does >> > not crash). >> > >> > That's all that I can think of for now. >> > >> > Regards, >> > Ming >> > >> > On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba <chris3736@googlemail.com> >> wrote: >> >> Hi Ming, >> >> this values are defined and I there is no error message in the log. I >> added >> >> some lines in activesock.c: >> >> else >> >> { >> >> PJ_LOG(2,("", "Successfully configured TCP transport for VoIP " >> >> "usage. Background mode will be supported.")); >> >> } >> >> And it is successfully. >> >> Can I log if the socket connection will be lost? >> >> Thank you, >> >> Chris >> >> 2010/9/8 Sauw Ming <ming@teluu.com> >> >>> >> >>> Hi Chris, >> >>> >> >>> 1. Please check that the value of >> >>> PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and >> >>> PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in >> >>> pjlib/include/pj/compat/os_auto.h >> >>> 2. Please check whether TCP transport can work successfully in the >> >>> background, i.e. there is no message saying that: "Failed to configure >> >>> TCP transport for VoIP usage. Background mode will not be supported." >> >>> in the log. >> >>> >> >>> Best regards, >> >>> Ming >> >>> >> >>> On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com >> > >> >>> wrote: >> >>> > Hi! >> >>> > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 >> >>> > background feature). >> >>> > An active call works fine in backgound, but local notifications >> doesn´t >> >>> > works for me if App is in background or device is locked. >> >>> > I tried the ipjsua.xcodeproj and my own project. Is there still any >> >>> > probleme >> >>> > or can you give me any hints how it works? >> >>> > Thanks, >> >>> > Chris >> >>> > _______________________________________________ >> >>> > Visit our blog: http://blog.pjsip.org >> >>> > >> >>> > pjsip mailing list >> >>> > pjsip@lists.pjsip.org >> >>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >>> > >> >>> > >> >>> >> >>> _______________________________________________ >> >>> Visit our blog: http://blog.pjsip.org >> >>> >> >>> pjsip mailing list >> >>> pjsip@lists.pjsip.org >> >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> >> >> >> _______________________________________________ >> >> Visit our blog: http://blog.pjsip.org >> >> >> >> pjsip mailing list >> >> pjsip@lists.pjsip.org >> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> >> >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
E
eaf@oyatel.no
Thu, Sep 9, 2010 12:28 PM

I have been able to use local notifications in my project,
but with some custom patches etc. on pjsip.

I didn't know there was a reference pjsua project for XCode in trunk
before this discussion, so I will try to check how this works for me when I get some time to research it :)

Best regards,
Even André

On 9. sep. 2010, at 14.14, Chris Foba wrote:

Hi André,

yes this properties are set. I´m using the ipjsua demo project. Have you successfully implemented the local notifications into your application?

Regards,
Chris

2010/9/9 eaf@oyatel.no
Have you set the required  UIBackgroundModes properties in the Info.plist for your application?

See attached screenshot for reference.

Best regards,
Even André

On 9. sep. 2010, at 13.59, Chris Foba wrote:

Hi Ming,

thank you for your reply. I tested some things:

I can answer the call when I bring the app to foreground.

Function pj_bool_t showNotification(pjsua_call_id call_id) will be called, BUT not until when the app comes back to foreground. So all handler will be called but not in background mode!?

Do you have any ideas?

I´m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2.

Regards,
Chris

2010/9/9 Sauw Ming ming@teluu.com
Hi Chris,

One more thing, can you test whether you can answer the call
successfully if you bring the application to the foreground? (i.e. put
the app in BG, make a call to the app, then bring the app to FG)

Regards,
Ming

On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming ming@teluu.com wrote:

Hi Chris,

First, could you please share the device, iOS, and the SDK version you
used for testing?

When there is an incoming call, try checking whether ipjsua's
pjsua_app.c:on_incoming_call() callback is executed. If not, then
verify whether ipjsua is still running in the background (i.e. it does
not crash).

That's all that I can think of for now.

Regards,
Ming

On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba chris3736@googlemail.com wrote:

Hi Ming,
this values are defined and I there is no error message in the log. I added
some lines in activesock.c:
else
{
PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
"usage. Background mode will be supported."));
}
And it is successfully.
Can I log if the socket connection will be lost?
Thank you,
Chris
2010/9/8 Sauw Ming ming@teluu.com

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba chris3736@googlemail.com
wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications doesn´t
works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any
probleme
or can you give me any hints how it works?
Thanks,
Chris


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

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

I have been able to use local notifications in my project, but with some custom patches etc. on pjsip. I didn't know there was a reference pjsua project for XCode in trunk before this discussion, so I will try to check how this works for me when I get some time to research it :) Best regards, Even André On 9. sep. 2010, at 14.14, Chris Foba wrote: > Hi André, > > yes this properties are set. I´m using the ipjsua demo project. Have you successfully implemented the local notifications into your application? > > Regards, > Chris > > 2010/9/9 <eaf@oyatel.no> > Have you set the required UIBackgroundModes properties in the Info.plist for your application? > > See attached screenshot for reference. > > > Best regards, > Even André > > On 9. sep. 2010, at 13.59, Chris Foba wrote: > >> Hi Ming, >> >> thank you for your reply. I tested some things: >> >> I can answer the call when I bring the app to foreground. >> >> Function pj_bool_t showNotification(pjsua_call_id call_id) will be called, BUT not until when the app comes back to foreground. So all handler will be called but not in background mode!? >> >> Do you have any ideas? >> >> I´m running iOS 4.1 on iPhone 4 with the same SDK. Yesterday I used 4.0.2. >> >> Regards, >> Chris >> >> >> 2010/9/9 Sauw Ming <ming@teluu.com> >> Hi Chris, >> >> One more thing, can you test whether you can answer the call >> successfully if you bring the application to the foreground? (i.e. put >> the app in BG, make a call to the app, then bring the app to FG) >> >> Regards, >> Ming >> >> On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming <ming@teluu.com> wrote: >> > Hi Chris, >> > >> > First, could you please share the device, iOS, and the SDK version you >> > used for testing? >> > >> > When there is an incoming call, try checking whether ipjsua's >> > pjsua_app.c:on_incoming_call() callback is executed. If not, then >> > verify whether ipjsua is still running in the background (i.e. it does >> > not crash). >> > >> > That's all that I can think of for now. >> > >> > Regards, >> > Ming >> > >> > On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba <chris3736@googlemail.com> wrote: >> >> Hi Ming, >> >> this values are defined and I there is no error message in the log. I added >> >> some lines in activesock.c: >> >> else >> >> { >> >> PJ_LOG(2,("", "Successfully configured TCP transport for VoIP " >> >> "usage. Background mode will be supported.")); >> >> } >> >> And it is successfully. >> >> Can I log if the socket connection will be lost? >> >> Thank you, >> >> Chris >> >> 2010/9/8 Sauw Ming <ming@teluu.com> >> >>> >> >>> Hi Chris, >> >>> >> >>> 1. Please check that the value of >> >>> PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and >> >>> PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in >> >>> pjlib/include/pj/compat/os_auto.h >> >>> 2. Please check whether TCP transport can work successfully in the >> >>> background, i.e. there is no message saying that: "Failed to configure >> >>> TCP transport for VoIP usage. Background mode will not be supported." >> >>> in the log. >> >>> >> >>> Best regards, >> >>> Ming >> >>> >> >>> On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com> >> >>> wrote: >> >>> > Hi! >> >>> > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 >> >>> > background feature). >> >>> > An active call works fine in backgound, but local notifications doesn´t >> >>> > works for me if App is in background or device is locked. >> >>> > I tried the ipjsua.xcodeproj and my own project. Is there still any >> >>> > probleme >> >>> > or can you give me any hints how it works? >> >>> > Thanks, >> >>> > Chris >> >>> > _______________________________________________ >> >>> > Visit our blog: http://blog.pjsip.org >> >>> > >> >>> > pjsip mailing list >> >>> > pjsip@lists.pjsip.org >> >>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >>> > >> >>> > >> >>> >> >>> _______________________________________________ >> >>> Visit our blog: http://blog.pjsip.org >> >>> >> >>> pjsip mailing list >> >>> pjsip@lists.pjsip.org >> >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> >> >> >> _______________________________________________ >> >> Visit our blog: http://blog.pjsip.org >> >> >> >> pjsip mailing list >> >> pjsip@lists.pjsip.org >> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> >> >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
CF
Chris Foba
Thu, Sep 9, 2010 1:31 PM

I found out something new:

After 10 minutes (600 seconds) I get the local notification!
I tried this some times. 600 seconds are the minimum acceptable timeout
value of the - (BOOL)setKeepAliveTimeout:(NSTimeInterval)timeout
handler:(void(^)(void))keepAliveHandler method.

This is really strange, but 600 seconds are definitly to long.
It seems the app will doesn´t wake up. Any ideas?

Regards,
Chris

2010/9/9 Sauw Ming ming@teluu.com

Hi Chris,

One more thing, can you test whether you can answer the call
successfully if you bring the application to the foreground? (i.e. put
the app in BG, make a call to the app, then bring the app to FG)

Regards,
Ming

On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming ming@teluu.com wrote:

Hi Chris,

First, could you please share the device, iOS, and the SDK version you
used for testing?

When there is an incoming call, try checking whether ipjsua's
pjsua_app.c:on_incoming_call() callback is executed. If not, then
verify whether ipjsua is still running in the background (i.e. it does
not crash).

That's all that I can think of for now.

Regards,
Ming

On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba chris3736@googlemail.com

wrote:

Hi Ming,
this values are defined and I there is no error message in the log. I

added

some lines in activesock.c:
else
{
PJ_LOG(2,("", "Successfully configured TCP transport for VoIP "
"usage. Background mode will be supported."));
}
And it is successfully.
Can I log if the socket connection will be lost?
Thank you,
Chris
2010/9/8 Sauw Ming ming@teluu.com

Hi Chris,

  1. Please check that the value of
    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and
    PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in
    pjlib/include/pj/compat/os_auto.h
  2. Please check whether TCP transport can work successfully in the
    background, i.e. there is no message saying that: "Failed to configure
    TCP transport for VoIP usage. Background mode will not be supported."
    in the log.

Best regards,
Ming

On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba chris3736@googlemail.com
wrote:

Hi!
I have checked out revision 1433 to verify fix for ticket 1107 (iOS4
background feature).
An active call works fine in backgound, but local notifications

doesn´t

works for me if App is in background or device is locked.
I tried the ipjsua.xcodeproj and my own project. Is there still any
probleme
or can you give me any hints how it works?
Thanks,
Chris


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

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

I found out something new: After 10 minutes (600 seconds) I get the local notification! I tried this some times. 600 seconds are the minimum acceptable timeout value of the - (BOOL)setKeepAliveTimeout:(NSTimeInterval)timeout handler:(void(^)(void))keepAliveHandler method. This is really strange, but 600 seconds are definitly to long. It seems the app will doesn´t wake up. Any ideas? Regards, Chris 2010/9/9 Sauw Ming <ming@teluu.com> > Hi Chris, > > One more thing, can you test whether you can answer the call > successfully if you bring the application to the foreground? (i.e. put > the app in BG, make a call to the app, then bring the app to FG) > > Regards, > Ming > > On Thu, Sep 9, 2010 at 9:44 AM, Sauw Ming <ming@teluu.com> wrote: > > Hi Chris, > > > > First, could you please share the device, iOS, and the SDK version you > > used for testing? > > > > When there is an incoming call, try checking whether ipjsua's > > pjsua_app.c:on_incoming_call() callback is executed. If not, then > > verify whether ipjsua is still running in the background (i.e. it does > > not crash). > > > > That's all that I can think of for now. > > > > Regards, > > Ming > > > > On Thu, Sep 9, 2010 at 1:35 AM, Chris Foba <chris3736@googlemail.com> > wrote: > >> Hi Ming, > >> this values are defined and I there is no error message in the log. I > added > >> some lines in activesock.c: > >> else > >> { > >> PJ_LOG(2,("", "Successfully configured TCP transport for VoIP " > >> "usage. Background mode will be supported.")); > >> } > >> And it is successfully. > >> Can I log if the socket connection will be lost? > >> Thank you, > >> Chris > >> 2010/9/8 Sauw Ming <ming@teluu.com> > >>> > >>> Hi Chris, > >>> > >>> 1. Please check that the value of > >>> PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT and > >>> PJ_ACTIVESOCK_TCP_IPHONE_OS_BG are defined as 1 in > >>> pjlib/include/pj/compat/os_auto.h > >>> 2. Please check whether TCP transport can work successfully in the > >>> background, i.e. there is no message saying that: "Failed to configure > >>> TCP transport for VoIP usage. Background mode will not be supported." > >>> in the log. > >>> > >>> Best regards, > >>> Ming > >>> > >>> On Wed, Sep 8, 2010 at 11:50 PM, Chris Foba <chris3736@googlemail.com> > >>> wrote: > >>> > Hi! > >>> > I have checked out revision 1433 to verify fix for ticket 1107 (iOS4 > >>> > background feature). > >>> > An active call works fine in backgound, but local notifications > doesn´t > >>> > works for me if App is in background or device is locked. > >>> > I tried the ipjsua.xcodeproj and my own project. Is there still any > >>> > probleme > >>> > or can you give me any hints how it works? > >>> > Thanks, > >>> > Chris > >>> > _______________________________________________ > >>> > Visit our blog: http://blog.pjsip.org > >>> > > >>> > pjsip mailing list > >>> > pjsip@lists.pjsip.org > >>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >>> > > >>> > > >>> > >>> _______________________________________________ > >>> Visit our blog: http://blog.pjsip.org > >>> > >>> pjsip mailing list > >>> pjsip@lists.pjsip.org > >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > >> > >> _______________________________________________ > >> Visit our blog: http://blog.pjsip.org > >> > >> pjsip mailing list > >> pjsip@lists.pjsip.org > >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > >> > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >