Bug in pjsua_acc_find_for_incoming

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

 



Hi,

I think there is a bug in pjsua_acc_find_for_incoming(), in

/* Check that there's at least one account configured */
PJ_ASSERT_RETURN(pjsua_var.acc_cnt!=0, pjsua_var.default_acc);

This function is called in on_incoming_call() and options_on_rx_request();
So when I delete my accounts, someone calls me or the SIP proxy send me
OPTIONS request, I get assertion fail !!!!

I'm using microSIP, when I close my microSIP, I call PJDestroy()

void CmicrosipDlg::PJDestroy()
{
PJAccountDelete();
pjsua_destroy();
}

I think we should not call PJAccountDelete

-- 
Khoa Pham
HCMC University of Science
Faculty of Information Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130311/50ba45e0/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