assert on pjsua_init in symbian

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

 



hi all,

i am writing a wraper on top of pjsua for use in symbian.
attach the init part.
i am running in debug mode but can't seems to do on device debuging.
i get asserted on the pjsua_init, with reference to pjsip/sip_endpoint.c,
line 232.

in function:
PJ_DEF(pj_status_t) pjsip_endpt_unregister_module( pjsip_endpoint *endpt,
                           pjsip_module *mod )


    /* Make sure the module exists in the list. */
    PJ_ASSERT_ON_FAIL(    pj_list_find_node(&endpt->module_list, mod) ==
mod,
            {status = PJ_ENOTFOUND;goto on_return;} );

any idea why is that:
i am attaching the init code.
its prety much the same as the one from symbian_gui_ua.

thanks,

void CPjSipEngine::PjInitL()
{
    if(iConfigured)
        return;


    pj_symbianos_params sym_params;
    pj_bzero(&sym_params, sizeof(sym_params));
    sym_params.rsocketserv = &iCfg.SocketServer();
    sym_params.rconnection = &iCfg.SocketConnection();
    pj_symbianos_set_params(&sym_params);

    pj_log_set_log_func(&CPjSipEngine::OnLogInfo);
    pj_log_set_level(LOG_LEVEL);

    pj_status_t status = pjsua_create();
    if(status != PJ_SUCCESS)
        User::Leave(PJ_STATUS_TO_OS(status));


    pjsua_config cfg;
    pjsua_config_default(&cfg);
    cfg.max_calls = 2;
    cfg.thread_cnt = 0;
    cfg.use_srtp = PJMEDIA_SRTP_DISABLED;
    cfg.srtp_secure_signaling = 0;


    cfg.cb.on_reg_state = &OnRegState;
    cfg.cb.on_call_state = (void (*)(int, pjsip_event *))&OnCallState;
    cfg.cb.on_incoming_call = (void (*)(int, int, pjsip_rx_data
*))&OnIncomingCall;
    cfg.cb.on_call_media_state = &OnCallMediaState;
    cfg.cb.on_stream_created = (void (*)(pjsua_call_id , pjmedia_session *,
unsigned , pjmedia_port **))&OnStreamCreated;
    cfg.cb.on_stream_destroyed = (void (*)(pjsua_call_id , pjmedia_session
*, unsigned ))&OnStreamDestroyed;

    pjsua_media_config mcfg;
    pjsua_media_config_default(&mcfg);
    mcfg.thread_cnt = 0;
    mcfg.has_ioqueue = PJ_FALSE;
    mcfg.clock_rate = 8000;
#if defined(PJMEDIA_SYM_SND_USE_APS) && PJMEDIA_SYM_SND_USE_APS == 1
    mcfg.audio_frame_ptime = 20;
#else
    mcfg.audio_frame_ptime = 40;
#endif
    mcfg.ec_tail_len = 0;
    mcfg.enable_ice = USE_ICE;
    mcfg.snd_auto_close_time = 5; // wait for 5 seconds idle before sound
dev get auto-closed

    pjsua_logging_config lcfg;
    pjsua_logging_config_default(&lcfg);
    lcfg.console_level = LOG_LEVEL;
    lcfg.cb = &CPjSipEngine::OnLogInfo;
    lcfg.decor = 0;

*************************************************************
this is where the assertion happend
*************************************************************

    status = pjsua_init(&cfg, &lcfg, &mcfg);
    if(status != PJ_SUCCESS) {
        User::Leave(PJ_STATUS_TO_OS(status));
    }

-- 
??? ??????
??: 050-3930056
nir.elkayam at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090529/53e00011/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