Opened 6 years ago
Closed 6 years ago
#2196 closed defect (fixed)
Assertion due to unset sip error code when media initialization fails during incoming call
Reported by: | ming | Owned by: | ming |
---|---|---|---|
Priority: | normal | Milestone: | release-2.9 |
Component: | pjsip | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description
Stack trace:
pjsua_call_on_incoming() pjsip_dlg_respond(dlg, rdata, sip_err_code, NULL, NULL, NULL); pjsip_dlg_create_response() pjsip_endpt_create_response()
There is a possibility, when media initialization fails, that sip_err_code is never set (the value is still zero), hence resulting in the assertion in pjsip_endpt_create_response():
PJ_ASSERT_RETURN(st_code >= 100 && st_code <= 699, PJ_EINVAL);
Change History (1)
comment:1 Changed 6 years ago by ming
- Owner set to ming
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 5978: