Crash in Endpoint::on_mwi_info (pjsip 2.2)

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

 



Hello,

I have tried to use pjsip 2.2 and faced the memory access violation error.
I used the first sample from
http://www.pjsip.org/docs/book-latest/html/intro_pjsua2.html.
Please find details below:

unsolicited_mwi_on_rx_request (src\pjsua-lib\pjsua_pres.c, line 2264) has
the following instructions (line 2303):
    ...
pj_bzero(&mwi_info, sizeof(mwi_info));
mwi_info.rdata = rdata; // emwi_info.vsub remains null

(*pjsua_var.ua_cfg.cb.on_mwi_info)(acc_id, &mwi_info); // in my case it
calls Endpoint::on_mwi_info
}

void Endpoint::on_mwi_info(pjsua_acc_id acc_id,
                           pjsua_mwi_info *mwi_info) // mwi_info with null
evsub
{
    OnMwiInfoParam prm;
    prm.state = pjsip_evsub_get_state(mwi_info->evsub); // passes null
pointer to pjsip_evsub_get_state
    ...
}

PJ_DEF(pjsip_evsub_state) pjsip_evsub_get_state(pjsip_evsub *sub)
{
    return sub->state; // memory access violation
}

I am a newbie in pjsip usage, could you please let me know whether there is
anything missed?
This was sample copied from the site and compiled. Should I use any
specific settings to not fall into this scenario?

Thanks in advance,
Slava
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140401/251de88f/attachment-0001.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