Hi, we had the same issue occur almost immediately. Have not had much time to come back here because we had chaos with the system going down during busy hours (100 concurrent calls). We had to move them to their old Asterisk server which does not suffer from this issue.
Things we have tried:
Installed Asterisk 11 on brand new hardware (HP Server, Dual Xeon [32 cores total], 96GB RAM, RAID 10 10k Hard Drives). I know, overkill. This was all we had available at the time. Same issue occurs with this new server. I can successfully reproduce the issue with sipp on a simple dialplan:
[from-sip-test]
exten => 696969,1,Answer
exten => 696969,n,Musiconhold(default)
exten => 696969,4,Hangup
After about 30 calls, (10 calls per second), sipp starts receivinv transmit errors (no response from host).
command:
Shows thousands of packets queued.
Asterisk only shows about 10 calls.
See this in the error log:
res_musiconhold.c: Failed to write frame to 'SIP/sip-test-00000024': Resource temporarily unavailable
Htop shows over 80GB of RAM free, CPU spikes to almost 95% during this time (all 32 cores).
Backtrace:
pastebin.com/qY6X5mqm
Core show locks:
pastebin.com/cUdFm5mB
I tried different Asterisk versions to 11.12, 11.16, same results. This was running on 11.18. Old server which does not suffer from this issue (as far as I can tell) is running 11.12 x64 on debian. This test was done on Ubuntu 14, 64 bit.
Not sure what else to try.