Added assertion in pjsua when no account is configured
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1371 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
c09f47e48b
commit
371cf0ac04
1 changed files with 3 additions and 0 deletions
|
@ -861,6 +861,9 @@ PJ_DEF(pjsua_acc_id) pjsua_acc_find_for_incoming(pjsip_rx_data *rdata)
|
|||
pjsip_sip_uri *sip_uri;
|
||||
unsigned i;
|
||||
|
||||
/* Check that there's at least one account configured */
|
||||
PJ_ASSERT_RETURN(pjsua_var.acc_cnt!=0, pjsua_var.default_acc);
|
||||
|
||||
uri = rdata->msg_info.to->uri;
|
||||
|
||||
/* Just return default account if To URI is not SIP: */
|
||||
|
|
Loading…
Reference in a new issue