# Asterisk on Virtual Box audio

**URL:** <https://community.asterisk.org/t/asterisk-on-virtual-box-audio/45180>\
**Category:** Asterisk Support\
**Created:** [February 6, 2014, 3:57am UTC](https://community.asterisk.org/t/asterisk-on-virtual-box-audio/45180 "2014-02-06T03:57:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhansen](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@jhansen](https://community.asterisk.org/u/jhansen)\
**Post date:** [February 6, 2014, 3:57am UTC](https://community.asterisk.org/t/asterisk-on-virtual-box-audio/45180/1 "2014-02-06T03:57:54Z")

</div>

Hi all,  
I have a small asterisk server set up in VirtualBox. I can call extensions inside my network with no audio problems what so ever. But, when I call an outside line say, a cell phone, the audio that the cell phone receives is super choppy and the audio lags about 1 second behind. The audio that the asterisk extension receives is crystal clear but also lags. It is almost like it is having trouble sending the packets. I have forwarded ports 10000-20000 on my router and I have forwarded 5060 so its not like the packets should have trouble getting through. Also, my asterisk server is behind a NAT.

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [February 6, 2014, 8:03am UTC](https://community.asterisk.org/t/asterisk-on-virtual-box-audio/45180/2 "2014-02-06T08:03:17Z")

</div>

What maximum scheduling latency does Virtual Box guarantee?

---

<div class="post-metadata">

**Author:** ![jhansen](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@jhansen](https://community.asterisk.org/u/jhansen)\
**Post date:** [February 6, 2014, 12:55pm UTC](https://community.asterisk.org/t/asterisk-on-virtual-box-audio/45180/3 "2014-02-06T12:55:12Z")

</div>

What do you mean?

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [February 6, 2014, 1:02pm UTC](https://community.asterisk.org/t/asterisk-on-virtual-box-audio/45180/4 "2014-02-06T13:02:35Z")

</div>

What is the longest time from a packet arriving on an ethernet interface until code starts running in an application to handle that packet. For VoIP, it should really be less than 20ms. Virtual machines can have much larger values, unless specifically configured for real time use.

---

<div class="post-metadata">

**Author:** ![jhansen](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@jhansen](https://community.asterisk.org/u/jhansen)\
**Post date:** [February 9, 2014, 5:13am UTC](https://community.asterisk.org/t/asterisk-on-virtual-box-audio/45180/5 "2014-02-09T05:13:18Z")

</div>

Sorry it took me a while to respond. I did end up fixing the problem. I decided that running Asterisk on a VM was just not going to work all that well. I installed Asterisk on a linux box and it is working just fine now!

Thanks for your help,  
jhansen
