AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
3 stars 2 forks source link

IAX Continuous JB Resyncing #288

Open tsawyer opened 4 months ago

tsawyer commented 4 months ago

This host (N7LF) has been up for 86 days. It has no connections other than one to another node on the same server. It seems very unlikely there is a network issue on the 127.0.0.1 network, yet the jitter buffer is continuously resyncing.

Here's a /var/lib/asterisk/scripts/ast_coredumper --running core-asterisk-running-2024-02-23T15-04-39Z-full.txt

Allstar-N7LF*CLI> iax2 show netstats
                                -------- LOCAL ---------------------  -------- REMOTE --------------------
Channel                    RTT  Jit  Del  Lost   %  Drop  OOO  Kpkts  Jit  Del  Lost   %  Drop  OOO  Kpkts FirstMsg    LastMsg
IAX2/127.0.0.1:4569-1520    3 4507  787 -1303546   2 21134 592389   7514 1084   64 16500470   0  3733 8771   1028 Tx:NEW      Tx:ACK
IAX2/127.0.0.1:4569-4958    3 1084   64 -276746   0  3733 8771   5089 4507  787 15473670   2 21134 592389   3451 Rx:NEW      Rx:ACK
2 active IAX channels
[2024-02-23 15:02:39.486] WARNING[1850213][C-00000012]: chan_iax2.c:1237 jb_warning_output: Resyncing the jb. last_delay 0, this delay 10529, threshold 3168, new offset -3215463240
[2024-02-23 15:02:45.302] WARNING[1850217]: chan_iax2.c:1237 jb_warning_output: Resyncing the jb. last_delay 0, this delay 10327, threshold 10014, new offset -3215469082
[2024-02-23 15:02:50.006] WARNING[1850216][C-00000012]: chan_iax2.c:1237 jb_warning_output: Resyncing the jb. last_delay 0, this delay 10511, threshold 3168, new offset -3215473751
[2024-02-23 15:02:55.646] WARNING[1850215]: chan_iax2.c:1237 jb_warning_output: Resyncing the jb. last_delay 0, this delay 10506, threshold 10014, new offset -3215479588
[2024-02-23 15:03:00.542] WARNING[1850209][C-00000012]: chan_iax2.c:1237 jb_warning_output: Resyncing the jb. last_delay 0, this delay 10695, threshold 3168, new offset -3215484446
InterLinked1 commented 4 months ago

Why is a jitter buffer needed for loopback connections, exactly? Is there a problem with an audio, aside from these warnings? What happens if the jitter buffer is disabled for these calls?

tsawyer commented 4 months ago

There has been no user complaints but they don't use it much.

A loopback JB seems unnecessary. There was some discussion of the matter on issue #288 and issue #209. I attempted turn off the JB for loopback back then but was unsuccessful. Could you provide some examples of how turn off the JB for these calls?

tsawyer commented 4 months ago

This problem happens everywhere, not just on localhost. This is from another server. Clearly this is something that should be fixed.

[2024-02-29 10:19:20.981] WARNING[1803293]: chan_iax2.c:1237 jb_warning_output: Resyncing the jb. last_delay 0, this delay 10305, threshold 4288, new offset -2213980430
[2024-02-29 10:19:31.277] WARNING[1803296]: chan_iax2.c:1237 jb_warning_output: Resyncing the jb. last_delay 0, this delay 10287, threshold 4288, new offset -2213990717