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

not work call_terminated #250

Open utsav0098 opened 2 years ago

utsav0098 commented 2 years ago

same WiFi connect to work this code endpoint.on("call_terminated", (call) => { console.log('Connectivity call_terminated: ', call); dispatch(onCallTerminated(call)) }) but problem is my phone is connect with mobile data and another mobile connect with WiFi so app working fine with WiFi connection. but not work with mobile data when i receiving call and make call in hold then not work call_terminated listener. otherwise everything is working fine

utsav0098 commented 2 years ago

location: => /node_modules/react-native-pjsip/android/src/main/java/com/carusto/ReactNativePjSip/PjSipService.java

  1. i connect call with lte network.but not work this code while i set call hold. i am not able to detect terminate status while end user call disconnect. but work with wifi connection

TransportConfig transportConfig = new TransportConfig(); transportConfig.setQosType(pj_qos_type.PJ_QOS_TYPE_VOICE); mTcpTransportId = mEndpoint.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_TCP, transportConfig); mTrash.add(transportConfig);

  1. user accept call but i am not able to detect status with this code. but work for lte connection. but not work with wifi connection TransportConfig transportConfig = new TransportConfig(); transportConfig.setQosType(pj_qos_type.PJ_QOS_TYPE_VOICE); mEndpoint.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_TCP, transportConfig); mTrash.add(transportConfig);

  2. i just remove "mTcpTransportId = " then work for lte connection. but not work with wifi. but i don't remove this line then work for wifi. but not work lte connection.

  3. i don't know why create this issue.

Anyone can help me please? Thanks