No Outbound Audio After 10min

Hi All

I am new to Asterisks, I inherited the PABX when i started at a new company. Hoping that anyone can shed some light on the problem I am facing.

Problem

When making external outbound calls, the audio gets lost after 10min. Within that 10min the calls are brilliant. With inbound calls everything is perfect and the calls can run longer then 10min. Internal calls also can run longer then 10min.

I have been in contact with the service provider and unfortunately they not much of a help.

Have anyone ever run into this problem before. I can share the Trunk config if required. Hope someone can point me into the right direction.

Thanks and Regards

You need to turn up the logging until you see details of why the call is being dropped.

Reading between the lines, you are using SIP, and if you inherited, you are probably using chan_sip. If simply turning up the logging verbosity doesn’t indicate a cause, you may need to use “sip set debug on” to get protocol logging.

The two causes I can think of are dynamic NAT/firewall rules timing out. and something going wrong with session timers.

Also an rtp trace could help you to diagnose the issue , rtp set debug on

Thanks David, I did set the core verbosity to 9, i then ran the debug for a specific peer for 11min to hopefully capture the problem. Do you know what i should be looking for if it is a NAT/session timer issue, or is there away that I can share the results with you. Still a newbie on Asterisks, so any advise is greatly appreciated.

@ambiorixg12 thanks for the advise i did run the rtp debug as well. i unfortunately ran the two debugs separately.

Actually, I would forget the session timer option, as the call isn’t actually ending. “set rtp debug on” is probably the most useful command. However, if it is outbound audio that is stopping, it will probably not stop sending, and therefore only prove the fault is outside of Asterisk.

If it shows there is no outbound RTP earlier in the call, that would indicate that you had direct media enable, and it is possible that would be the cause of a dynamic rule.

Please correct me if i am wrong. If i look at the capture below, this would indicate that there is a dynamic nat rule on the firewall. As the asterisks server get the RTP packets from the phone but not returning any packets to the phone.

“Sent RTP packet to 10.128.106.162:10000 (type 08, seq 014174, ts 4763360, len 000160)
Sent RTP packet to 10.128.106.162:10000 (type 08, seq 014175, ts 4763520, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012001, ts 3026475974, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012002, ts 3026476134, len 000160)
Sent RTP packet to 10.128.106.162:10000 (type 08, seq 014176, ts 4763680, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012003, ts 3026476294, len 000160)
Sent RTP packet to 10.128.106.162:10000 (type 08, seq 014177, ts 4763840, len 000160)
Sent RTP packet to 10.128.106.162:10000 (type 08, seq 014178, ts 4764000, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012004, ts 3026476454, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012005, ts 3026476614, len 000160)
Sent RTP packet to 10.128.106.162:10000 (type 08, seq 014179, ts 4764160, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012006, ts 3026476774, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012007, ts 3026476934, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012008, ts 3026477094, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012009, ts 3026477254, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012010, ts 3026477414, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012011, ts 3026477574, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012012, ts 3026477734, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012013, ts 3026477894, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012014, ts 3026478054, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012015, ts 3026478214, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012016, ts 3026478374, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012017, ts 3026478534, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012018, ts 3026478694, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012019, ts 3026478854, len 000160)
Got RTP packet from 10.128.106.162:10000 (type 08, seq 012020, ts 3026479014, len 000160)”

I would consider that to be inbound RTP, so you need to be more precise about the directon in which it is not flowing.

It does look like a NAT or firewall rule has expired.