datso / react-native-pjsip

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

hangupCall #23

Closed haki9 closed 6 years ago

haki9 commented 7 years ago

hi, I have the problem.When I called hangupCall(call), the log is hangup success but it also tries to call. how can I fix that?

haki9 commented 7 years ago

I found that the problem happened when transport is "UDP"

datso commented 7 years ago

Hi, on Android or iOS ?

haki9 commented 7 years ago

on iOS

murugancmi commented 7 years ago

Facing same issue is there any way i can fix this issue in android?

datso commented 7 years ago

This issue caused by retransmits on UDP protocol. Please attach a tcpdump from server/client for further investigation.

devxgaming commented 6 years ago

try { CallOpParam prm = new CallOpParam(true); prm.setStatusCode(pjsip_status_code.PJSIP_SC_BUSY_HERE); call.hangup(prm); prm.delete(); } catch (Exception e) { e.printStackTrace(); }

datso commented 6 years ago

@omar-othmann thanks or the try-catch example, but it doesn't solve the bug, it just hides the error.

devxgaming commented 6 years ago

@datso Sorry. I thought it was for Android

liu1083947028 commented 6 years ago

image

it is ok.

datso commented 6 years ago

Please re-open the ticket once you have a reproduce with the latest version (2.7.4).