CSipSimple icon indicating copy to clipboard operation
CSipSimple copied to clipboard

InCallActivity closed 30-40 secons later when using mobile network

Open safa-akbulut opened this issue 8 years ago • 6 comments

When I press the end call button using a mobile network call ends, but the InCallActivity close after 30 seconds. There is no problem on wireless. What could be the solution,

Thank's

safa-akbulut avatar Oct 08 '16 16:10 safa-akbulut

Are you sure of your experiments? Did all calls with mobile network behave the same?

zipcom avatar Oct 20 '16 01:10 zipcom

Only missed calls. It happens if I press the hang up button before the answer.

safa-akbulut avatar Oct 20 '16 12:10 safa-akbulut

If you make calls to non-existing addresses, the same thing may happen: it takes a long time to hangup calls. It might not have anything to do with the mobile networks.

zipcom avatar Oct 21 '16 04:10 zipcom

Thank's for advices. This problem appeared only on mobile network for me. My scenario is below;

1- My wifi is connected. 2- I called number (a real gsm number in use) 3- Ringing.. 4- Pressed hang up button 5- Call ended and InCallActivity closed normally. 6- Turn off wifi, Mobile network is connected. 7- I called number (same as previous number) 8- Ringing.. 9- Pressed hang up button 10- Call ended but InCallActivity closed about 30-40 seconds later.

  • on_call_state() method in UAStateReceiver called too late.

safa-akbulut avatar Oct 21 '16 14:10 safa-akbulut

So, there are something really different between Mobile and WiFi. The most suspicious one may be with NAT/Firewall. Many mobiles adopt symmetric NAT, causing a lot of issues such as calls not being able to go through; one-way-audio; and slow disconnection. Check with your mobile operator for details. Or, put a Wireshock to trace the SIP packets.

zipcom avatar Oct 24 '16 07:10 zipcom

Hi @zipcom,

Can you please help to setup PJSIP with an android studio, facing some issues.

Do you have any document related with this please share with me.

Thanks,

tushar-patil-android avatar Aug 06 '18 10:08 tushar-patil-android