Opened 12 years ago

Last modified 12 years ago

#1627 closed defect

Callback on_tsx_state_changed() not invoked on call disconnection — at Version 1

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 (1)

comment:1 Changed 12 years ago by nanang

  • Description modified (diff)
Note: See TracTickets for help on using tickets.