Ticket #1514 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Assertion when media transport initialization fails and NULL instead DISCONNECTED is reported in the on_call_state() callback

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-2.0
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp) (diff)

There are two problems:

  1. When media transport initialization fails, it looks like PJSUA-LIB ignores this and continue with the call, causing assertion that looks like this:
    pjsua-x86_64-unknown-linux-gnu: ../src/pjmedia/endpoint.c:770: 
    pjmedia_endpt_create_base_sdp: Assertion `!"Invalid address family"' failed.
    
  2. When the above is fixed, the call gets disconnected as expected. But during disconnection callback via on_call_state() callback, call state is reported as NULL instead of DISCONNECTED.

Change History

comment:1 Changed 5 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 5 years ago by bennylp

In r4134: fixed the first problem

comment:3 Changed 5 years ago by bennylp

In r4135: fixed second problem

comment:4 Changed 5 years ago by bennylp

In r4136: fixed the incoming call scenario, and changed disconnection code from Precondition Failure to Temporarily Unavailable

comment:5 Changed 5 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.