Answer the question
In order to leave comments, you need to log in
How to install multiple Asterisk on one server?
Good afternoon!
It would be desirable to launch 2 Asterisks on one VDS. VDS has 2 static IPs, one for each asterisk.
Bare Asterisk 1.8.12.2 installed on Debian 6.
Started by trying to run at least one asterisk from another folder.
To do this, I moved (not copied) asterisk.conf from /etc/asterisk to /etc/asterisk/ast1.
I added new directories for configs, folders, etc. to asterisk.conf:
[directories]
astetcdir => /etc/asterisk/ast1
astmoddir => /usr/lib/asterisk/ast1/modules
astvarlibdir => /var/lib/asterisk/ast1
astdbdir => /var/lib/asterisk/ast1
astkeydir => /var/lib/asterisk/ast1
astdatadir => /var/lib/asterisk/ast1
astagidir => /var/lib/asterisk/ast1/agi-bin
astspooldir => /var/spool/asterisk/ast1
astrundir => /var/run/ast1
astlogdir => /var/log/asterisk/ast1
Ну и дальше все за экранировано, как в стандартном.
service asterisk stop
asterisk -C /etc/asterisk/ast1/asterisk.conf
Asterisk 1.8.12.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
[email protected]:~#
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
[directories]
astetcdir => /etc/asterisk/ast1
astmoddir => /usr/lib/asterisk/ast1/modules
astvarlibdir => /var/lib/asterisk/ast1
astdbdir => /var/lib/asterisk/ast1
astkeydir => /var/lib/asterisk/ast1
astdatadir => /var/lib/asterisk/ast1
astagidir => /var/lib/asterisk/ast1/agi-bin
astspooldir => /var/spool/asterisk/ast1
astrundir => /var/run/ast1
astlogdir => /var/log/asterisk/ast1
Ну и дальше все за экранировано, как в стандартном.
service asterisk stop
asterisk -C /etc/asterisk/ast1/asterisk.conf
Asterisk 1.8.12.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
[email protected]:~#
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
[directories]
astetcdir => /etc/asterisk/ast1
astmoddir => /usr/lib/asterisk/ast1/modules
astvarlibdir => /var/lib/asterisk/ast1
astdbdir => /var/lib/asterisk/ast1
astkeydir => /var/lib/asterisk/ast1
astdatadir => /var/lib/asterisk/ast1
astagidir => /var/lib/asterisk/ast1/agi-bin
astspooldir => /var/spool/asterisk/ast1
astrundir => /var/run/ast1
astlogdir => /var/log/asterisk/ast1
Ну и дальше все за экранировано, как в стандартном.
service asterisk stop
asterisk -C /etc/asterisk/ast1/asterisk.conf
Asterisk 1.8.12.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/ast1/extconfig.conf': == Found
Connected to Asterisk 1.8.12.2 currently running on Proba1 (pid = 7156)
Verbosity was 0 and is now 4
Proba1*CLI>
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/ast1/extconfig.conf': == Found
Answer the question
In order to leave comments, you need to log in
Problem solved.
We start the daemon with an indication of where to get the configs:
And it broke into the console without specifying where to get the configs:
And you need to go to the console also with the path to the configuration:
So I saw that my asteriks is not working from the standard directory.
and what prevents you from deploying two virtual KVM machines on the server? and put your Asterisk on each. take dedicated and do it. on one VPS you will face a bunch of hemorrhoids.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question