Sip Channels not Closing in asterisk

so for some reason my sip channels are not closing after the other end hangs up.

The carrier says that they are sending the good bye ack over rtp but the channel stays open.

Does anyone have any idea what could be causing this ?

I installed a new linux router a couple of weeks ago to do QOS shapping I removed the QOS but the problem persists.

Any help on this would be welcome

Thank you
asterisk -rx "sip show channels"
Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
x.x.x.7 12062677364 7e2b881150c 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 17576855431 136e9c053c5 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 14198822150 6c14f33107b 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 15865787208 529b574023e 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 14155500975 0160d9035b6 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 15122724547 708ca42413f 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 19102435324 5a04961a134 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 17345137500 134ecb1d159 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 13032326909 4abaff2b394 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 14024216500 294096dd49f 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 14254517382 58259b1420f 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 17572744992 7774a59d69e 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 17574395858 0b5b960c20b 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 12253889200 768b4daa4c3 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 19167848080 158c64ea641 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 14198821936 5b85ab54410 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 14102690961 37ee92e025e 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 16168183150 6d187a33338 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 19737290077 3c6c74022e6 00102/00000 0x80004 (ulaw|h No Init: INVITE
x.x.x.7 13013308303 1eb8174f592 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 19146403696 29c56b74022 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 12065955418 13e08da5586 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17575625703 24109c8008a 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 19548887207 225f040c381 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 15308799199 1486ba3a492 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 19545373800 0bd512d008a 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 13148023120 108083231e6 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 19703306786 66d2758c172 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 12063014588 4a2d331e501 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 15402231082 1e7c1ebf44f 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17034958717 7c7f60204a2 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 19513039191 758c175477d 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 12486522599 5fdf2b030b0 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 17034423333 27d29624618 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 14054649193 6b925d355d5 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 17574667041 5afdd8b32b2 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 17573408688 6e3ab8f131c 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 13014598322 15900cf5502 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 19017574448 0d10910c6de 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 14254535881 7af08cf7460 00102/00001 0x0 (nothing) No (d) Rx: BYE
x.x.x.7 14252893450 47f0cf3010b 00102/00001 0x0 (nothing) No (d) Rx: BYE
x.x.x.7 16103541206 0ba477104b5 00102/00001 0x0 (nothing) No (d) Rx: BYE
x.x.x.7 12094723500 2f998bb42e8 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 19139065200 53c9825c48c 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 17572703981 2218dd23201 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 16174341027 13733c0956d 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 13014590200 438d3490258 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 12103424141 30cd7a7328a 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 17033588800 4c38693c6b0 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 15867319300 08d7262f235 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 14058725225 0197654f19d 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 18152279788 7ef854a0410 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 18598249422 3851501d36c 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 19167745402 28cfb39c2a5 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 15108352273 2925666c415 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 18055640011 5f9eff2276e 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 19312689690 35d25454459 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17577685279 5fc7fd320e4 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 19089262960 0e088f1618c 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 12522090925 20e9175d1c0 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 16176193670 2efc96f21e3 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 15124853050 1c79f558258 00102/00001 0x0 (nothing) No (d) Rx: BYE
x.x.x.7 17578550810 730498e9555 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 13013650955 268a3cc65d3 00102/00000 0x80004 (ulaw|h No Tx: ACK
x.x.x.7 12487841112 49869d4119c 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17575376546 1bfaf85905b 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 19782080466 24469908573 00103/00000 0x0 (nothing) No (d) Tx: BYE
x.x.x.7 12143403434 596f00d5037 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17025158100 3220573c7b1 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17572773100 0fb8ec0e42a 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17573436568 06a45960173 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 19529349007 39cc90dc279 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 14435397213 3800bfc53f8 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 12026610350 4d8d07e6182 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17574355091 4e779c257a5 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 17573718095 01cfcc916f0 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 16093877800 0b8537da6b3 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 16157443730 3b65bd1824b 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 15123635840 2fa034463a7 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 12487841112 46ffc8f6002 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 16174341027 02330ee45d8 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 16174341027 1c01bc1e3f6 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 13166308228 3020c255370 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 12033524446 55a32b4214b 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 16174341027 5445bdf169e 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 16174341027 5d08f0d61b9 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 12122232825 7ac47eed043 00102/00000 0x0 (nothing) No (d) Tx: ACK
x.x.x.7 12033413215 19516d3f6df 00102/00000 0x0 (nothing) No (d) Tx: ACK
88 active SIP channels

asterisk -rx "show version"
Asterisk C.3.6.2 built by root @ celeus on a x86_64 running Linux on 2011-03-02 05:10:38 UTC
The 'show version' command is deprecated and will be removed in a future release. Please use 'core show version' instead.

No such version number. They don’t start with letters, and the latest is about 1.8.4. My guess is you have a version extensively patched by a third party.

its 1.4.3 I believe compiled from a third party vendor

That’s an ABE version. There is a 3.6.2, but it’s been superseded by the current releases 3.6.5 and 3.7.2.

Regardless could someone help me with the reason the sip channels keep growing ? or the format keeps displaying 0x0 Nothing? what does that mean ?

Most likely because of a bug that has already been fixed. 1.4.3 is so old that it is unlikely anyone remembers what bugs it has. Running sip debugging or a sip history may help, but it probably isn’t worth the while of anyone on the open source side debugging this.

Are you sure you don’t have a commercial support contract, as Asterisk Business Edition is a commercially supported version? The contract may have run out, of course.

hmm so is this a known bug? or a setting issues? I have the rtptime out option set to 15 secounds but the channels seam to be frozen. this only happens when someone hangs up on the other end.
also why does the format say 0x0 (nothing) what does that mean?

To eliminate a setting issue and work out why format is 0, you will need to provide full SIP debugging output.

so run sip set debug on ?

what would be the best way to capture the sip debuging info on a high volume call server ?

This is a version of Asterisk Business Edition. The Asterisk Support forum provides user-to-user support for open source Asterisk releases, not for Asterisk Business Edition. Please review the Asterisk Business Edition Frequently Asked Questions for information about its support and availability.

If you purchased ABE from a reseller or integrator, please contact them for assistance. If you purchased ABE from Digium, please visit digium.com/support to open a case under your subscription, or to review your options to purchase continuing support from Digium.