=?gb18030?b?u9i4tKO6IGlPUyBWb0lQIGNhbGwgZG9lcyBub3Qgd29y?==?gb18030?q?k_in_background?=

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

 



try to add voip in your info.plist




------------------ ???? ------------------
???: "sales"<sales at startelelogic.com>; 
????: 2014?9?4?(???) ??2:56
???: "pjsip list"<pjsip at lists.pjsip.org>; 
??: [pjsip] iOS VoIP call does not work in background



Hi,


 We are using Pjsip in TCP mode and already configured keep alive. Application running smoothly in background But after some time when App is trying to re register with SIP server registration message has been sent and app is not getting response,App is getting stuck at the time and then it won't work any more in background. After killing it works OK. can anyone advise what we are missing ?
 
Some time its work for 3-4 hours and some time it stop even in 5 minutes.even we are ready to pay for this issue if it gets fix-up.
 
 
  

 Running This code when app is background :

  
KEEP_ALIVE_INTERVAL is 600s.

  
- (void)applicationDidEnterBackground:(UIApplication *)application {      [self performSelectorOnMainThread:@selector(keepAlive) withObject:nil waitUntilDone:YES];     [application setKeepAliveTimeout:KEEP_ALIVE_INTERVAL handler: ^{          [self performSelectorOnMainThread:@selector(keepAlive) withObject:nil waitUntilDone:YES];     }]; }  - (void)keepAlive {     int i;     if (!pj_thread_is_registered()) {         pj_thread_register("ipjsua", a_thread_desc, &a_thread);     }     /* Since iOS requires that the minimum keep alive interval is 600s,      * application needs to make sure that the account's registration      * timeout is long enough.      */     for (i = 0; i < (int)pjsua_acc_get_count(); ++i) {         if (pjsua_acc_is_valid(i)) {             pjsua_acc_set_registration(i, PJ_TRUE);         }     }     pj_thread_sleep(15000); }

Sent from my iPhone
 

Umesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140904/0ca5e2d9/attachment.html>


[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