Hello Simon:

Just to share with you and the group - I've actually compiled and installed
Asterisk within minutes of being informed of the ./configure --help option
in the non-standard directories.

Yes, definitely the -C option can be used to identify a different location
of asterisk.conf file which in turn can be used to call the rest of the
config files.

However in this scenario - I actually needed a binary that when invoked,
will automatically look for the master asterisk.conf file in its custom
installed directory during start time.

What I wanted to achieve (and have been successful)  is run 5 different
asterisk installs on the same machine, bound to 5 different IP address
without any virtualization techniques, and be able to start/stop the custom
compiled asterisk identified by unique asterisk_binary_names.

With this custom configure option, life is much easier and simple -- versus
actually digging up the build files and modifying them hand by hand which is
a bloody painful task if you needed to compile several instances, under
several custom directories.

Now...  why I needed this setup and solution is a completely different story
and a completely different case study.   Necessity is definitely the mother
of invention - and thanks to you, along with a number of good friends who
gave pointers and suggestions.

Cheers!
Reza.


On Sun, Dec 5, 2010 at 5:18 PM, Simon P. Ditner <[email protected]> wrote:

> I've actually never compiled it to be installed in the default
> location. You had the modify the Makefile prior to Asterisk 1.4 -- but
> since Asterisk 1.4 and beyond use the GNU autoconf tools, and support
> standard options like --prefix, --exec-prefix, etc. Do a ./configure
> --help to see what they are and change the ones you need to.
>
> If you want to use a stock asterisk install on a system, but launch a
> second instance for example, you can also specify an alternate
> asterisk.conf file using the -C option to asterisk, and in that
> asterisk.conf you can specify different locations for various files.
>
> On 5 December 2010 16:59, Reza - Asterisk Consultant
> <[email protected]> wrote:
> > I have a unique need to do things completely outside the normal way of
> doing
> > things.   By default, the compiled version of Asterisk is stored in
> > /usr/sbin directory and the process when run, looks for the master
> > asterisk.conf file in the /etc/asterisk directory by default.      Any
> > advise on which source file to modify and which entry to modify in the
> > source file to have the asterisk binary and the asterisk.conf file in an
> > completely different directory?
> >
> > Thanks and regards,
> > Reza.
> >
> > --
> > Toronto based VoIP / Asterisk Trainer,
> > I.T. Consultant and Hosted PBX Solutions Provider.
> > +1-647-476-2067.
> > http://www.linkedin.com/in/seminar
> >
>

Reply via email to