iphone debug/release works, but distribution stalls on pjsua_init

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

 



How does it "stall". Do you have an error log or backtrace?

Best regards,
Even Andr?

On 2. juli 2011, at 16.41, Alexey Tkachenko wrote:

> Hi!
> Now my app, that use pjsip, is in the app store. When I installed it, I did found that pjsua could not initialize and stalls on pjsua_init. And I can't to debug distribution version. But other versions, include AdHoc works fine.
> Does anyone found similar problem?
> 
> The code, I am using to initialize:
> 
> pj_status_t status;
> 
> /* Create pjsua first! */
> status = pjsua_create();
> if (status != PJ_SUCCESS) {
> 	NSLog(@"Error in pjsua_create()");
> 	return;
> }
> 
> 
> /* Init pjsua */
> pjsua_config cfg;
> pjsua_logging_config log_cfg;
> 
> pjsua_config_default(&cfg);
> cfg.cb.on_incoming_call = &on_incoming_call;
> cfg.cb.on_call_media_state = &on_call_media_state;
> cfg.cb.on_call_state = &on_call_state;
> cfg.cb.on_reg_state = &on_reg_state;
> cfg.user_agent = pj_str("AppName");
> cfg.thread_cnt=5;
> 
> /* log config */                
> pjsua_logging_config_default(&log_cfg);
> log_cfg.console_level = 0;
> log_cfg.level = 5;
> log_cfg.msg_logging = PJ_TRUE;
> log_cfg.log_filename = pj_str("logfilename");
> 
> /* media config */                
> pjsua_media_config mediacfg;
> pjsua_media_config_default(&mediacfg);
> mediacfg.enable_ice = PJ_FALSE;      
> 
> status = pjsua_init(&cfg, &log_cfg, &mediacfg);
> 
> 
> 
> 
> Thank you all!
> _______________________________________________
> 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