Opened 2 weeks ago

Closed 2 weeks 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 2 weeks ago by ming

  • Owner set to ming
  • Resolution set to fixed
  • Status changed from new to closed

In 5978:

Fixed #2196: Assertion due to unset sip error code when media initialization fails during incoming call

Note: See TracTickets for help on using tickets.