datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
272 stars 228 forks source link

HangupCall do not trigger call_terminated listener #216

Open RogerCuesta opened 3 years ago

RogerCuesta commented 3 years ago

Hi @datso ,

Im having some issues wile ending a call. When an incoming call and i don't accept it, I can decline it, but when I accept the call I can never finish it, neither the declineCall method nor the hangupCall works, and I'm unable to finish it. It ends when with time out.

The function i'm using to hang up the call is the following, the same as the demo project:

export function hangupCall(call) { return async function (dispatch, getState) { const endpoint = getState().pjsip.endpoint endpoint.hangupCall(call) } }