Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1627 closed defect (fixed)

Callback on_tsx_state_changed() not invoked on call disconnection

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

Description (last modified by nanang)

When a call is disconnected, SIP invite module will call on_call_state(DISCONNECTED) first before on_tsx_state_changed(). However, in PJSUA, the on_call_state(DISCONNECTED) will reset PJSUA call states and the next incoming on_tsx_state_changed() will not be forwarded to the application, as it will not make sense for the application to still receive on_tsx_state_changed() after the call is disconnected (and the PJSUA call states are resetted).

An easy or low-risk workaround will be 'manually' invoking on_tsx_state_changed() from on_call_state(DISCONNECTED).

Change History (4)

comment:1 Changed 11 years ago by nanang

  • Description modified (diff)

comment:2 Changed 11 years ago by nanang

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

In 4371:

Close #1627: invoke on_tsx_state_changed() callback from on_call_state(DISCONNECTED).

comment:3 Changed 11 years ago by riza

In 4408:

Re #1627: backported to 1.x

comment:4 Changed 11 years ago by riza

  • Backported set
Note: See TracTickets for help on using tickets.