2.0.1 with CoreAudio on iPhone

JY
Jack Ying
Sun, Aug 11, 2013 2:53 AM

Dear All,
I have added:
#define PJMEDIA_AUDIO_DEV_HAS_COREAUDIO 1
in config_site.h
and then I configured iPhone, and I run my program, it was OK for initialisation, but after I add the account, it got the error:

Assertion failed: (pjsua_var.tpdata[0].data.ptr != ((void *)0)), function pjsua_acc_add, file ../src/pjsua-lib/pjsua_acc.c, line 400.

I checked the line 400:
/* Must have a transport */
PJ_ASSERT_RETURN(pjsua_var.tpdata[0].data.ptr != NULL, PJ_EINVALIDOP);

PJ_LOG(4,(THIS_FILE, "Adding account: id=%.*s",
      //(int)cfg->id.slen, cfg->id.ptr));
pj_log_push_indent();

Therefore, how can I change the code to use the iLBC CoreAudio with iPhone.

Cheers,
Jack

Dear All, I have added: #define PJMEDIA_AUDIO_DEV_HAS_COREAUDIO 1 in config_site.h and then I configured iPhone, and I run my program, it was OK for initialisation, but after I add the account, it got the error: Assertion failed: (pjsua_var.tpdata[0].data.ptr != ((void *)0)), function pjsua_acc_add, file ../src/pjsua-lib/pjsua_acc.c, line 400. I checked the line 400: /* Must have a transport */ PJ_ASSERT_RETURN(pjsua_var.tpdata[0].data.ptr != NULL, PJ_EINVALIDOP); PJ_LOG(4,(THIS_FILE, "Adding account: id=%.*s", //(int)cfg->id.slen, cfg->id.ptr)); pj_log_push_indent(); Therefore, how can I change the code to use the iLBC CoreAudio with iPhone. Cheers, Jack