# Call hanging after 32 seconds

**URL:** <https://community.asterisk.org/t/call-hanging-after-32-seconds/79040>\
**Category:** Asterisk SIP\
**Created:** [March 21, 2019, 11:02am UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040 "2019-03-21T11:02:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![stratoss](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@stratoss](https://community.asterisk.org/u/stratoss)\
**Post date:** [March 21, 2019, 11:02am UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/1 "2019-03-21T11:02:37Z")

</div>

Hello. I’m trying to do a call between 2 soft phones - 101 (192.168.168.106 - marti) and 100 (192.168.168.104 - stan).

In order to get the NAT out of the equation, the calls are done locally. The asterisk IP is 192.168.169.20. The hostname is replaced with **MY\_ASTERISK\_DOMAIN**.

I’m able to hear both directions just fine, but after 31-32 seconds the call just drops. Complete SIP trace of the communications can be seen [here](https://pastebin.com/raw/me2TpRBR)

Thanks

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 21, 2019, 12:00pm UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/2 "2019-03-21T12:00:59Z")

</div>

The system is behaving as though the ACK is never reaching UDP:192.168.168.106:45313 or is not being recognised when it reaches there. You need to find out if the ACK is reaching its destination and if it is, look at logs from the destination to work out why it is being ignored…

---

<div class="post-metadata">

**Author:** ![stratoss](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@stratoss](https://community.asterisk.org/u/stratoss)\
**Post date:** [March 21, 2019, 12:48pm UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/3 "2019-03-21T12:48:38Z")

</div>

I’ve checked with wireshark, and it seems that 168.106 received the ACK on port 45313 and replied to the server with Ok.

 ![ACK](https://global.discourse-cdn.com/asterisk/original/2X/9/9fb6ea71468b4fb727d07fd5cd0fe0c6ad5fddb7.png)

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 21, 2019, 12:59pm UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/4 "2019-03-21T12:59:35Z")

</div>

There is no reply to an ACK. Sending OK in this context means that it has not seen the ACK. ACK stops the sending of OK.

---

<div class="post-metadata">

**Author:** ![stratoss](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@stratoss](https://community.asterisk.org/u/stratoss)\
**Post date:** [March 21, 2019, 1:06pm UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/5 "2019-03-21T13:06:54Z")

</div>

Well, according to wireshark seems that the ACK is going to the mobile phone, and the OK is coming from the same port the ACK is supposed to arrive. Linphone on android is used on both ends if that matters. What can the reason be in that case?

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 21, 2019, 1:13pm UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/6 "2019-03-21T13:13:59Z")

</div>

The 200 OK is a retransmission, so it is as David said - the ACK never got there, or is being ignored. You’d need to look on the linphone side.

---

<div class="post-metadata">

**Author:** ![stratoss](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@stratoss](https://community.asterisk.org/u/stratoss)\
**Post date:** [March 21, 2019, 6:30pm UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/7 "2019-03-21T18:30:09Z")

</div>

@david551 @jcolp thank you guys! With the asterisk aside, I tried many settings on the linphone side, and turned out that setting the server address at the “Outbound proxy” as well fixed the issue. No more 200 OK’s - only ACKs and the call isn’t dropping like earlier.

Thanks again.

---

<div class="post-metadata">

**Author:** ![ambiorixg12](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ambiorixg12/32/1887_2.png) [@ambiorixg12](https://community.asterisk.org/u/ambiorixg12)\
**Post date:** [March 23, 2019, 3:39am UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/8 "2019-03-23T03:39:11Z")

</div>

This article explain with details and it is very useful for a better understanding

> **[Troubleshooting missing ACK in SIP](https://blog.opensips.org/2017/02/22/troubleshooting-missing-ack-in-sip/)**
>
> We all experienced calls getting self disconnected after 5-10 seconds – usually disconnected by the callee side via a BYE request – but a BYE which was not triggered by the party behind…

---

<div class="post-metadata">

**Author:** ![stratoss](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@stratoss](https://community.asterisk.org/u/stratoss)\
**Post date:** [March 26, 2019, 7:53am UTC](https://community.asterisk.org/t/call-hanging-after-32-seconds/79040/9 "2019-03-26T07:53:35Z")

</div>

Really useful article. Thanks, @ambiorixg12 .
