r3gis3r / CSipSimple

CSipSimple Mirror (no pull-requests here)
http://www.csipsimple.com
GNU Lesser General Public License v3.0
302 stars 227 forks source link

InCallActivity closed 30-40 secons later when using mobile network #53

Open safa-akbulut opened 7 years ago

safa-akbulut commented 7 years ago

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

zipcom commented 7 years ago

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

safa-akbulut commented 7 years ago

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

zipcom commented 7 years ago

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.

safa-akbulut commented 7 years ago

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.

zipcom commented 7 years ago

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.

tushar-patil-android commented 6 years ago

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,