Problem with Freepbx

Dear guys,

I have a special problem with FreePBX 2.10.0rc1.0
When user A calls user B and the use B answer the phone, two channels is build between these two users. The Problem appears when they (user A or user B) hang up the phone and finish the conversation. the Channels is not going to get free and the Channels stays allocated to the previous connection. and I can see the log of the conversation using “sip show channelstatas” that show 19:11:30 time of conversation!
If I don’t send the “request hangup” in CLI, the channel and phones stays busy and no other person will be capable of calling each of user A and B.

Could you please help me,
Thank you in advanced.

We need more info to assist you. What version of Asterisk? Is this a distro build or built by hand. What model of phones. You should upgrade to the latest 2.10 build.

version of Asterisk: 1.8.8.0
I have used FreePBX Distro 1.810.210.57-1.
this problem appear sometimes (one or two connection per day). and the phones are “Yealink T22” and “Snom 300”.

Send output of command ‘core show channels’ when the condition is occurring.

More than likely one of two things:

If SIP trunks you have a network/NAT issue and at some point are loosing RTP and don’t have the session timers set correctly.

If using analog lines you don’t have the disconnect supervision programmed correctly for your location/country.

in below command, you will find the User A (1701) and User B (1718) that are connected for around 18:00:00!. we do not have analog lines.

telephony*CLI> core show channels
Channel Location State Application(Data)
SIP/1321-00014e4c (None) Up AppDial((Outgoing Line))
SIP/1024-00014e5c s@macro-dial:1 Up AppDial((Outgoing Line))
SIP/1729-00014e41 (None) Up AppDial((Outgoing Line))
DAHDI/i1/02122567174 s@macro-dial-one:42 Up Dial(SIP/1729,tr)
DAHDI/i2/02188787135 s@macro-dial-one:42 Up Dial(SIP/1708,tr)
DAHDI/i1/09111570308 (None) Up AppDial((Outgoing Line))
DAHDI/i2/02166951999 s@macro-dial-one:42 Up Dial(SIP/1430,tr)
SIP/1438-00014e5e s@macro-dialout-trun Up Dial(DAHDI/g2/44331007,300,)
SIP/1711-00014e61 (None) Up AppDial((Outgoing Line))
SIP/1701-00013be4 1701@from-internal:1 Ringing AppDial((Outgoing Line))
DAHDI/i1/09351197708 (None) Up AppDial((Outgoing Line))
SIP/1520-00014e64 s@macro-dialout-trun Up Dial(DAHDI/g2/09351197708,300,
SIP/1399-00014e17 (None) Up AppDial((Outgoing Line))
SIP/1588-00014d36 (None) Up AppDial((Outgoing Line))
DAHDI/i1/02123513-9e s@macro-dial-one:42 Ring Dial(SIP/1552,tr)
DAHDI/i1/09121011561 (None) Up AppDial((Outgoing Line))
SIP/1208-00014e4b s@macro-dial-one:42 Up Dial(SIP/1321,trI)
DAHDI/i1/02123534141 s@macro-dial-one:42 Up Dial(SIP/1022,tr)
SIP/1589-00014e45 1589@from-internal:1 Ringing AppDial((Outgoing Line))
SIP/1906-00014e5f (None) Up AppDial((Outgoing Line))
SIP/1724-00014e44 s@macro-dial-one:42 Ring Dial(SIP/1589,trI)
DAHDI/i1/02188611630 s@macro-dial-one:42 Up Dial(SIP/1563,tr)
DAHDI/i1/09121115797 (None) Up AppDial((Outgoing Line))
SIP/1718-00013d1e 1718@from-internal:1 Ringing AppDial((Outgoing Line))
DAHDI/i2/07727367886 s@macro-dial-one:42 Up Dial(SIP/1437,tr)
SIP/1524-00014e6d s@macro-dial-one:42 Up Dial(SIP/1505,trI)
SIP/1430-00014ca2 (None) Up AppDial((Outgoing Line))
SIP/1448-00014e6a s@macro-dial-one:42 Up Dial(SIP/1522,trI)
SIP/1009-00014d8d s@macro-dialout-trun Up Dial(DAHDI/g2/55421822,300,)
DAHDI/i1/55421822-9e (None) Up AppDial((Outgoing Line))
DAHDI/i1/77622800-9d (None) Up AppDial((Outgoing Line))
DAHDI/i1/02188726115 s@macro-dial-one:42 Up Dial(SIP/1718,tr)
DAHDI/i1/09121127236 009121127236@from-ps Ringing AppDial((Outgoing Line))
IAX2/sydney-17584 s@macro-dial:7 Up Dial(Local/FMPR-1250@from-inte
SIP/1700-00014e6f 1700@from-internal:1 Ringing AppDial((Outgoing Line))
SIP/1229-00014e70 s@macro-dialout-trun Ring Dial(DAHDI/g2/09121127236,300,
SIP/1563-00014e15 (None) Up AppDial((Outgoing Line))
SIP/1446-00014e5b s@macro-dial:7 Up Dial(SIP/1024,22,trM(auto-blkv
SIP/1311-00014c37 s@macro-dialout-trun Up Dial(DAHDI/g2/77622800,300,)
DAHDI/i1/44331007-9e (None) Up AppDial((Outgoing Line))
DAHDI/i1/02188873467 s@macro-dial-one:42 Ring Dial(SIP/1700,tr)
SIP/1552-00014e67 1552@from-internal:1 Ringing AppDial((Outgoing Line))
DAHDI/i1/22061500-9e (None) Up AppDial((Outgoing Line))
SIP/1718-00014e3e (None) Up AppDial((Outgoing Line))
SIP/1537-00014e51 1537@from-internal:1 Ringing AppDial((Outgoing Line))
DAHDI/i1/48224341-9e (None) Up AppDial((Outgoing Line))
SIP/1522-00014e6b (None) Up AppDial((Outgoing Line))
SIP/1713-00014e59 s@macro-dialout-trun Up Dial(DAHDI/g2/09121115797,300,
DAHDI/i1/02122690889 s@macro-dial-one:42 Up Dial(SIP/1588,tr)
SIP/1505-00014e6e (None) Up AppDial((Outgoing Line))
SIP/1250-00014b9b s@macro-dial:1 Up AppDial((Outgoing Line))
DAHDI/112-1 s@macro-dial-one:42 Up Dial(SIP/1701,tr)
SIP/1437-00014de4 (None) Up AppDial((Outgoing Line))
IAX2/melbourne-12932 s@macro-dial-one:42 Up Dial(SIP/1906,tr)
SIP/1390-00014e16 s@macro-dial-one:42 Up Dial(SIP/1399,trI)
DAHDI/i1/02188684589 s@macro-dial-one:42 Up Dial(SIP/1711,tr)
DAHDI/i1/02188662318 s@macro-dial-one:42 Up Dial(SIP/1537,tr)
SIP/1740-00014e60 (None) Up AppDial((Outgoing Line))
SIP/1509-00014e69 s@macro-dialout-trun Up Dial(DAHDI/g2/22061500,300,)
DAHDI/118-1 s@macro-dial-one:42 Up Dial(SIP/1718,tr)
SIP/1708-00014e57 (None) Up AppDial((Outgoing Line))
SIP/1715-00014a69 s@macro-dialout-trun Up Dial(DAHDI/g2/09121011561,300,
SIP/1022-00014df0 (None) Up AppDial((Outgoing Line))
SIP/1457-00014e56 s@macro-dialout-trun Up Dial(DAHDI/g2/48224341,300,)
DAHDI/i1/07112320332 s@macro-dial-one:42 Up Dial(SIP/1740,tr)
SIP/1259-00014e1f s@macro-dialout-trun Up Dial(DAHDI/g2/09111570308,300,
66 active channels
33 active calls
73422 calls processed

telephony*CLI> sip show channelstats
Peer Call ID Duration Recv: Pack Lost ( %) Jitter Send: Pack Lost ( %) Jitter
16.1.1.126 1312373851d 00:20:31 0000061407 0000000000 ( 0.00%) 0.0000 0000061393 0000000000 ( 0.00%) 0.0001
16.1.0.222 3c2f8d9e255 00:00:43 0000001042 0000000000 ( 0.00%) 0.0000 0000001050 0000000001 ( 0.10%) 0.0029
16.1.1.165 3c2e62c0975 00:00:27 0000001368 0000000000 ( 0.00%) 0.0000 0000001373 0000000001 ( 0.07%) 0.0004
16.1.0.102 3c2f8d5acb8 0000004896 0000000000 ( 0.00%) 0.0000 0000004908 0000000001 ( 0.02%) 0.0003
16.1.1.12 204156321@1 00:01:55 0000005246 0000000000 ( 0.00%) 0.0000 0000005250 0000000000 ( 0.00%) 0.0002
16.1.1.151 03fb5c3609b 00:00:08 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
16.1.1.65 d958e295-6c 00:00:07 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
16.1.1.66 455f0d36228 0000008127 0000000000 ( 0.00%) 0.0000 0000008132 0000000000 ( 0.00%) 0.0002
16.1.1.128 3c2f89c1372 00:00:09 0000000325 0000000000 ( 0.00%) 0.0000 0000000330 0000000001 ( 0.30%) 0.0005
16.1.1.54 6c6163934d4 00:13:28 0000040081 0000000000 ( 0.00%) 0.0000 0000040085 0000000001 ( 0.00%) 0.0004
16.1.1.27 1cdc710a707 00:02:08 0000006305 0000000000 ( 0.00%) 0.0000 0000006305 0000000000 ( 0.00%) 0.0001
16.1.0.113 532e9f12280 00:09:25 0000028049 0000000000 ( 0.00%) 0.0000 0000028053 0000000001 ( 0.00%) 0.0003
16.1.1.182 085c842764e 00:04:20 0000012955 0000000000 ( 0.00%) 0.0000 0000012958 0000000001 ( 0.01%) 0.0001
16.1.0.120 20695ed72af 00:00:05 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
192.168.12.161 699f3d6d3cb 00:01:26 0000003507 0000000000 ( 0.00%) 0.0000 0000003497 0000000001 ( 0.03%) 0.0077
16.1.0.48 3c2f8d5d55e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
16.1.0.120 43f50b75145 00:00:43 0000001060 0000000000 ( 0.00%) 0.0000 0000001042 0000000000 ( 0.00%) 0.0001
16.1.1.27 20d05a0001e 17:58:38 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
16.1.1.162 3c2e635b870 0000001189 0000000000 ( 0.00%) 0.0000 0000001203 0000000001 ( 0.08%) 0.0013
16.1.1.53 3c2f86a2357 00:30:01 0000090065 0000000000 ( 0.00%) 0.0000 0000090075 0000000001 ( 0.00%) 0.0003
16.1.0.91 3c2f8a15036 00:15:48 0000047431 0000000000 ( 0.00%) 0.0000 0000047436 0000000001 ( 0.00%) 0.0013
16.1.1.23 3c2f8d05aff 00:02:47 0000008372 0000000000 ( 0.00%) 0.0000 0000008383 0000000001 ( 0.01%) 0.0001
16.1.2.103 02fb6aca081 00:00:18 0000000189 0000000000 ( 0.00%) 0.0000 0000000772 0000000000 ( 0.00%) 0.0004
16.1.0.111 3c288c58083 00:00:08 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
16.1.0.103 59c99c50601 00:00:07 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
16.1.0.149 3c2f8dc4b8b 00:00:02 0000000139 0000000000 ( 0.00%) 0.0000 0000000145 0000000001 ( 0.69%) 0.0003
16.1.0.76 61af603b031 00:04:47 0000013362 0000000000 ( 0.00%) 0.0000 0000013365 0000000001 ( 0.01%) 0.0003
16.1.0.225 3c2f8d794c2 00:01:01 0000002831 0000000000 ( 0.00%) 0.0000 0000002835 0000000001 ( 0.04%) 0.0002
16.1.0.193 1e5eb83b0f1 18:25:10 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
16.1.0.227 34ee4269389 00:01:55 0000005250 0000000000 ( 0.00%) 0.0000 0000005246 0000000001 ( 0.02%) 0.0002
16.1.0.122 3c2f89c8c8f 00:00:18 0000000772 0000000000 ( 0.00%) 0.0000 0000000189 0000000001 ( 0.53%) 0.0003
16.1.1.34 20efc69f40f 00:01:01 0000002835 0000000000 ( 0.00%) 0.0000 0000002831 0000000001 ( 0.04%) 0.0001
16.1.1.188 787ae3e032d 00:00:09 0000000330 0000000000 ( 0.00%) 0.0000 0000000325 0000000000 ( 0.00%) 0.0005
16.1.0.47 63411afe702 00:01:23 0000004032 0000000000 ( 0.00%) 0.0000 0000004036 0000000001 ( 0.02%) 0.0003
16.1.0.221 3c2f89b8ad7 00:00:31 0000001218 0000000000 ( 0.00%) 0.0000 0000001224 0000000001 ( 0.08%) 0.0003
16.1.0.59 1488702783@ 00:00:13 0000000035 0000000000 ( 0.00%) 0.0000 0000000654 0000000000 ( 0.00%) 0.0001
16.1.1.100 3c2f88412a4 00:06:51 0000020578 0000000000 ( 0.00%) 0.0000 0000020585 0000000001 ( 0.00%) 0.0005
16.1.0.174 2ab40637163 00:00:31 0000001233 0000000000 ( 0.00%) 0.0000 0000001218 0000000000 ( 0.00%) 0.0001
38 active SIP channels