Opened 11 years ago

Closed 11 years ago

#1588 closed defect (fixed)

State PJSIP_INV_STATE_NULL is called after call has been disconnected

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

Description

When sending initial INVITE fails due to network failure (for example, setting iPhone iOS to AirPlane mode, or network is down), the on_call_state() callback will be called twice: first with PJSIP_INV_STATE_DISCONNECTED, then followed by PJSIP_INV_STATE_NULL.

This may cause unexpected state transition in the application. With pjsua for example, it causes the call to be set as active call when there is no other call.

Thanks Kees van der Bent for the report.

Change History (1)

comment:1 Changed 11 years ago by bennylp

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

In 4273:

Fixed #1588: State PJSIP_INV_STATE_NULL is called after call has been disconnected

Note: See TracTickets for help on using tickets.