# Aststerisk 1.6 is hanging up automatically after 3 seconds

**URL:** <https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558>\
**Category:** Asterisk Support\
**Created:** [September 14, 2010, 11:19am UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558 "2010-09-14T11:19:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 14, 2010, 11:19am UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/1 "2010-09-14T11:19:51Z")

</div>

Hi,

I’m new to this forum and of course new in the matter of Asterisk. My problem is that every incomming call is breaking down after 3 seconds.

On the Asterisk console appears following message:

`[Jul 27 13:48:35] WARNING[6306]: chan_sip.c:3785 retrans_pkt: Maximum retries exceeded on transmission 71bfa420-1428-122e-a9b8-001b245d6c13 for seqno 134000911 (Critical Response) -- See doc/sip-retransmit.txt.
[Jul 27 13:48:35] WARNING[6306]: chan_sip.c:3812 retrans_pkt: Hanging up call 71bfa420-1428-122e-a9b8-001b245d6c13 - no reply to our critical packet (see doc/sip-retransmit.txt).
  == Spawn extension (ankommend, 0, 1) exited non-zero on 'SIP/xpirio-00000008'`

From the SIP Debug i get following message:

```auto

```

Firstly i thought it has something to do with the ports, i forwarded port 5060 and the configured RTP Port Range in rtp.conf, but it doesn’t help.

I should say that my Router is an IPFire OS installed in a Xen DomU, and Asterisk is connected to the “Blue Zone”. (Asterisk 1.6 is installed on a Debian 5.0 DomU on the same XEN Server)

I would be grateful if you could help me to solve this problem!

lukasgo

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [September 14, 2010, 2:17pm UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/2 "2010-09-14T14:17:36Z")

</div>

This is a port 5060 routing problem. Possibly a failure to configure NAT features correctly. RTP isn’t involved yet.

A more complete trace would make it clearer which packet wasn’t getting through, but I suspect it is the OK to an incoming INVITE.

IP telephony and virtual machines don’t mix well, although the failure will be poor audio quality, rather than call setup failures. This will apply to routers used for VoIP, as well as switches.

3 seconds seems too short for a “no response to critical packet” type error.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 15, 2010, 8:09am UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/3 "2010-09-15T08:09:36Z")

</div>

Thanks for your reply!

Ok if it is a Port 5060 NAT problem, how can a make a complete trace?

My Asterisk has only 10 SIP Phones connected, and its possible to make 2 calls to the sip provider at the same time, i think the performace of my XEN Server is more than enough ( AMD Phenom X3 Black Edition 3x 2,4 GHZ, 12GB RAM (2GB Asterisk DomU))

lukasgo

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [September 15, 2010, 9:22am UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/4 "2010-09-15T09:22:42Z")

</div>

sip set debug on

The problem with virtual machines is that they receive slices of time. If there is a lot of activity, those slices can at irregular and extended intervals. That is OK if long term average power is good, but not if you need short term responsiveness.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 19, 2010, 5:43pm UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/5 "2010-09-19T17:43:11Z")

</div>

ok I’ll did the sip debug again and I got this message

`[Sep 19 19:30:51] WARNING[20127]: chan_sip.c:3831 retrans_pkt: Maximum retries exceeded on transmission 709b03d9-3eb6-122e-0ba7-001b245d6c13 for seqno 2122650 (Critical Response) -- See doc/sip-retransmit.txt.
[Sep 19 19:30:51] WARNING[20127]: chan_sip.c:3858 retrans_pkt: Hanging up call 709b03d9-3eb6-122e-0ba7-001b245d6c13 - no reply to our critical packet (see doc/sip-retransmit.txt).
Scheduling destruction of SIP dialog '55f202b17c55bc111e6d7f76375ae0a5@192.168.0.1' in 32000 ms (Method: INVITE)
set_destination: Parsing <sip:42@192.168.0.44:5060;transport=udp> for address/port to send to
set_destination: set destination to 192.168.0.44, port 5060
Reliably Transmitting (no NAT) to 192.168.0.44:5060:
BYE sip:42@192.168.0.44:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.0.1:5060;branch=z9hG4bK57271960;rport
Max-Forwards: 70
From: "<112345666>" <sip:112345666@192.168.0.1>;tag=as5f1d4e9d
To: <sip:42@192.168.0.44:5060;transport=udp>;tag=001873567fa600070deef539-4463dcb1
Call-ID: 55f202b17c55bc111e6d7f76375ae0a5@192.168.0.1
CSeq: 103 BYE
User-Agent: Asterisk PBX 1.6.2.13
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
`

Now I installed Asterisk on a completely new computer without xen, but it makes no difference ☹

lukasgo

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 19, 2010, 8:33pm UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/6 "2010-09-19T20:33:43Z")

</div>

It is definitely a NAT issue.

Check that these things are setup:

Sip.conf:  
externip = {your statis ip}  
localnet = 192.168.0.0/255.255.255.0 (assuming that is your network and netmask)

then make sure you have this set for all of your extensions in Sip.conf or realtime db

nat=no  
directmedia=no

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 20, 2010, 1:05pm UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/7 "2010-09-20T13:05:18Z")

</div>

```auto

is a fixed ip address mandatory? because i don't have one :frowning:
```

is a fixed ip address mandatory? because i don’t have one ☹

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [September 20, 2010, 1:08pm UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/8 "2010-09-20T13:08:19Z")

</div>

You have to configure a stun server if you don’t have a fixed address.

At the very least you need a stable address, i.e. one that won’t keep changing within a single session.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 20, 2010, 1:52pm UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/9 "2010-09-20T13:52:38Z")

</div>

Can you try and define DMZ on your router? What kind of router do you have?

Instead of externip you may use externhost, but you have to use dyndns then.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 21, 2010, 8:09am UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/10 "2010-09-21T08:09:30Z")

</div>

I use the IP Fire Router Software in a separate Xen Domain ([http://www.ipfire.org/en/index](http://www.ipfire.org/en/index))  
At IP Fire the DMZ is called orange zone. (my Asterisk is connected to the orange zone). I’m using IPFire because its free, and it supports QoS.

I already have DynDNS, but how can i use it in my configuration?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 21, 2010, 9:16am UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/11 "2010-09-21T09:16:37Z")

</div>

I’ve found something on the Internet about Asterisk and DynDNS, are these settings correct?

`externhost=<your_dyndns.com>                                                   
externrefresh=10                                                                
nat=yes                                                                         
localnet=192.168.0.0/255.255.255.0`

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [October 2, 2010, 10:05am UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/12 "2010-10-02T10:05:30Z")

</div>

i’ve now added these settings from my last post to my sip.conf but it makes no difference, i’ve got the following message after few seconds and the call is terminated

`[Oct 2 11:57:15] WARNING[3251]: chan_sip.c:3831 retrans_pkt: Maximum retries exceeded on transmission 1b8d827c-48ae-122e-4c81-001b245d6c13 for seqno 2670617 (Critical Response) -- See doc/sip-retransmit.txt.
[Oct 2 11:57:15] WARNING[3251]: chan_sip.c:3858 retrans_pkt: Hanging up call 1b8d827c-48ae-122e-4c81-001b245d6c13 - no reply to our critical packet (see doc/sip-retransmit.txt).
  == Spawn extension (ankommend, 0, 1) exited non-zero on 'SIP/xpirio-00000000'
`

it drives me insane now!!!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [October 24, 2010, 4:13pm UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/13 "2010-10-24T16:13:16Z")

</div>

It works!!!

i’ve added the external ip and the localnet to the sip provider settings in the sip.conf. I now added it to the general settings and it works.

thanks for your help!  
lukasgo

---

<div class="post-metadata">

**Author:** ![aas](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/aas/32/262_2.png) [@aas](https://community.asterisk.org/u/aas)\
**Post date:** [December 11, 2013, 8:51am UTC](https://community.asterisk.org/t/aststerisk-1-6-is-hanging-up-automatically-after-3-seconds/32558/14 "2013-12-11T08:51:08Z")

</div>

It works for me too! 😃

Althought I had slight different problem.  
Asterisk wouldn’t register to sip provider with the same message as mentioned above:

2013-12-11 08:55:14 WARNING[140382713419520]: chan\_sip.c:1682 retrans\_pkt: Maximum retries exceeded on transmission [175de7187b064fcc391626850ac681d1@mypbx.mydomain.sk](mailto:175de7187b064fcc391626850ac681d1@mypbx.mydomain.sk) for seqno 125 (Critical Request) SIP Timer T1 : 500  
2013-12-11 08:55:14 NOTICE[140382713419520]: chan\_sip.c:8292 sip\_reg\_timeout: – Registration for 'myusername@sip.voi.t-com.sk’ timed out, trying again (Attempt #24)

Adding externip and localnet to sip.conf solved this. 😆  
I thought I’ll share my experience, when somebody faces same issue like me.  
Thank you.

Your newest member,  
Aas. 😉
