Ticket #2173 (closed defect: fixed)

Opened 12 days ago

Last modified 11 days ago

On PJSUA2, application will not be notified when when SDP nego fails due to unsupported codec.

Reported by: riza Owned by: bennylp
Priority: normal Milestone: release-2.9
Component: pjsua2 Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description (last modified by nanang) (diff)

Ticket #1916 enables on_incoming_call() called from on_create_media_transport() for PJSUA2.

However, after the on_incoming_call() invocation, there is a chance that the call is disconnected by the library (e.g: due to unsupported codec or unsupported SIP capability requirement). Unfortunately, there is a bug in the library that application will not be informed about the call disconnection in such scenario.

The patch will add check for codec and capability support from the SDP before calling on_incoming_call(). In this case, when the check fails then on_incoming_call() will not be called.

However, actually there is still a chance of failure in further step of call verification, so the call may get rejected by the library after incoming call callback is invoked. In this case, call state callback on_call_state() will be invoked to notify application about call disconnection.

Thanks to Ryan Wallach for the report.

Change History

comment:1 Changed 12 days ago by riza

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

In r5928:

Close #2173: On PJSUA2, application will not be notified when when SDP nego fails due to unsupported codec.

comment:2 Changed 11 days ago by nanang

  • Component changed from pjsip to pjsua2
  • Description modified (diff)
Note: See TracTickets for help on using tickets.