Asterisk running on a virtual machine


I’m trying to run asterisk on a virtual machine.
I’ve installed softphones that belong to the users in my computer. I don’t understand how the connections between the users and the vm are done, cause when I disconnect internet, i can do the calls between the users perfectly. But when internet is running, the sound in the calls is off.
I’ve supposed that as I’m using a vm, the users are behind a nat, cause if I don’t define the externip/localnet/nat=yes parameters in the users, I’ve got the next error:

[Dec 10 13:43:49] WARNING[1993]: chan_sip.c:9112 __sip_xmit: sip_xmit of 0x7d3af00 (len 528) to returned -2: Network is unreachable
[Dec 10 13:43:49] ERROR[1993]: chan_sip.c:9548 __sip_reliable_xmit: Serious Network Trouble; __sip_xmit returns error for pkt data

So, my problem is the table of routes but I don’t know how to solve it. If someone could be so kind to help me I would be so grateful.

I’ve seen something similar when trying to run Asterisk in a virtualbox image on a computer, and then trying to run a softclient from the host operating system on that same computer.

Is that what you’re trying to do?

I’m running Asterisk 1.8 on a Mac OS X with a softphone on the same machine. I’ve been getting acquainted with Asterisk and the dial plans here before I migrate it to another server. I haven’t been having any network or communication problems until today.

The error I have is:

[Feb 14 22:31:50] ERROR[209]: chan_sip.c:3789 __sip_reliable_xmit: Serious Network Trouble; __sip_xmit returns error for pkt data

The only change I’ve made is to install SoX, MacPorts and XCode. Could this be the issue?

If anyone can point me in the right direction as to resolving this, I’d greatly appreciate it. Perhaps it’s time to migrate it to a separate server?

Many thanks in advance…

Well if your doing it in HyperV did you install the Linux compatibilty pack. When I tried virtualising Calls were constantly losing sound. Everyone was saying calls were dropping but if you stayed on a couple of minutes you could continue. Its a timing issue.