Two asterisk PBX's on one PC?

Maybe it is a silly question.

Is it possible to run 2 instances of Asterisk on the same PC :question:
Then it is possible for me to make 2 different PBX configurations.
The PC has two NIC’s and has a single processor.
I need it for test purposes.

This question rises due to the giantic bureaucratic nonsens in the company
of getting a second PC.

Thanks in advance !

Kind regards.

Yes, it should be possible in theory, with the -C command line switch you should be able to specify a main config file, normally /etc/asterisk/asterisk.conf file, in this file you are able to define the directories used by *, so you could use different directories per instance, then be sure to use different sip ports (for example 5060 for the first instance and 5061 for the second) and different rtp ports (for example from 10000 to 20000 for the first instance and from 30000 to 40000 for the second).

Hope it helps.

Would be nice if you let us know your progresses.


It should be possible but I wouldn’t recommend it.

Can you run it in a Virtual Machine on your workstation?

FreeBSD has great and easy to use virtual machines. Its called Jail. You could use that.

I feel however, that you could achieve whatever it is you are trying to achive, via the dialplan running only one instance.