<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chris Schuld&#039;s Blog &#187; Asterisk</title>
	<atom:link href="http://chrisschuld.com/category/software/asterisk-software/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisschuld.com</link>
	<description>personal musings on the composition of software</description>
	<lastBuildDate>Mon, 30 Aug 2010 03:48:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing PBX in a Flash (PIAF) on an OpenVZ VPS</title>
		<link>http://chrisschuld.com/2008/11/installing-pbx-in-a-flash-piaf-on-an-openvz-vps/</link>
		<comments>http://chrisschuld.com/2008/11/installing-pbx-in-a-flash-piaf-on-an-openvz-vps/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 08:28:38 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[PBX in a Flash]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=137</guid>
		<description><![CDATA[After digging through the Internet looking for a solution to install PBX in a Flash on an OpenVZ VPS and coming out empty handed I decided to dissect the installation myself and I came up with the following method for installing the PBX system on an OpenVZ VPS. Now, that being said I could not [...]]]></description>
			<content:encoded><![CDATA[<p>After digging through the Internet looking for a solution to install <a href="http://pbxinaflash.net/">PBX in a Flash</a> on an <a href="http://wiki.openvz.org">OpenVZ</a> VPS and coming out empty handed I decided to dissect the installation myself and I came up with the following method for installing the PBX system on an OpenVZ VPS.  Now, that being said I could not find another &#8220;working&#8221; solution so this may not be the &#8220;best&#8221; method but it is repeatable and does work.  I have a PBX running off this installation currently.</p>
<p>In this example I am going to assume the VPS is VEID 1024 whose IP address will be 10.0.0.24, running on a 10.0.0.0/24 network NAT&#8217;ed behind a router with a name server located at 10.0.0.10.</p>
<p>I am also going to assume you have <a href="http://wiki.openvz.org">OpenVZ</a> installed, if you don&#8217;t visit here: <a href="http://www.howtoforge.com/installing-and-using-openvz-on-centos5.2">http://www.howtoforge.com/installing-and-using-openvz-on-centos5.2</a></p>
<p>First, you have to create the OpenVZ VPS container using a CentOS 5 template:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>vz<span style="color: #000000; font-weight: bold;">/</span>template<span style="color: #000000; font-weight: bold;">/</span>cache
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.openvz.org<span style="color: #000000; font-weight: bold;">/</span>template<span style="color: #000000; font-weight: bold;">/</span>precreated<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>centos-<span style="color: #000000;">5</span>-i386-default.tar.gz
vzctl create <span style="color: #000000;">1024</span> <span style="color: #660033;">--ostemplate</span> centos-<span style="color: #000000;">5</span>-i386-default <span style="color: #660033;">--config</span> vps.basic
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--onboot</span> <span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--hostname</span> pbx.mycompany.net <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--ipadd</span> 10.0.0.24 <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--nameserver</span> 10.0.0.10 <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">--devices</span> c:<span style="color: #000000;">4</span>:<span style="color: #000000;">9</span>:rw <span style="color: #660033;">--save</span>
vzctl start <span style="color: #000000;">1024</span>
vzctl enter <span style="color: #000000;">1024</span></pre></div></div>

<p><strong>NOTE:</strong> you will need access to 13 RPM files from the ISO version of PBX in a Flash so grab the CD so you can get access to the following files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">c-ares-1.3.2-1.i386.rpm
ez-ipupdate-3.0.11b8-3.i386.rpm
flite-<span style="color: #000000;">1.3</span>-8.fc7.i386.rpm
flite-devel-<span style="color: #000000;">1.3</span>-8.fc7.i386.rpm
iksemel-<span style="color: #000000;">1.2</span>-13.i386.rpm
ircd-hybrid-7.2.1-1.i386.rpm
jpackage-utils-1.7.3-1jpp.2.el5.noarch.rpm
lame-<span style="color: #000000;">3.97</span>-1.fc6.rf.i386.rpm
lha-1.14i-17.i386.rpm
piafdl-<span style="color: #000000;">0.1</span>-1.noarch.rpm
piafxtras-<span style="color: #000000;">0.1</span>-1.noarch.rpm
shared-mime-info-<span style="color: #000000;">0.19</span>-5.el5.i386.rpm
MySQL-shared-compat-5.0.41-0.rhel4.i386.rpm</pre></div></div>

<p>I looked to find them all online but could not (<em>if anyone knows if they are available please let me know and I will update the site</em>); otherwise I would simply provide the URLs to each file.</p>
<p>Inside of the &#8220;fresh&#8221; VE I update the root password, copy the RPMs from the CD (see above) and the system using yum:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">passwd</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #666666; font-style: italic;">#mount the CD here or SCP the files from the CD (or many other options -- but put the 13 RPMs in /root/piaf/pbx/)</span>
<span style="color: #c20cb9; font-weight: bold;">scp</span> <span style="color: #660033;">-r</span> root<span style="color: #000000; font-weight: bold;">@</span>SOME_SYSTEM_WITH_CD_MOUNTED:<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>
yum <span style="color: #660033;">-y</span> update</pre></div></div>

<p>Next, I add all of the packages necessary for PBX in a Flash.  This list comes from the <a href="http://pbxinaflash.net/downloads/">ISO CD</a> and the packages that are included across the board for the PBX in a Flash for all cases; I know that it is <strong>NOT</strong> necessary to have all of these packages; however; I just needed the PBX to work and by adding all of the packages ensures you will have every component for the initial instalation!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> GConf2 MAKEDEV NetworkManager ORBit2 OpenIPMI OpenIPMI-libs SysVinit acpid alsa-lib alsa-utils amtu anaconda anaconda-runtime anacron apmd apr apr-util arts aspell aspell-en at atk attr audiofile audiofile-devel audit audit-libs audit-libs-python authconfig authconfig-gtk <span style="color: #c20cb9; font-weight: bold;">autoconf</span> autofs <span style="color: #c20cb9; font-weight: bold;">automake</span> avahi avahi-glib avahi-qt3 basesystem <span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #c20cb9; font-weight: bold;">bc</span> beecrypt <span style="color: #7a0874; font-weight: bold;">bind</span> bind-libs bind-utils binutils <span style="color: #c20cb9; font-weight: bold;">bison</span> bluez-gnome bluez-libs bluez-utils booty busybox-anaconda <span style="color: #c20cb9; font-weight: bold;">bzip2</span> bzip2-libs c-ares cairo ccid cdparanoia-libs centos-release centos-release-notes chkconfig chkfontpath comps-extras conman coolkey coreutils <span style="color: #c20cb9; font-weight: bold;">cpio</span> <span style="color: #c20cb9; font-weight: bold;">cpp</span> cpuspeed cracklib cracklib-dicts crash createrepo crontabs cryptsetup-luks cups cups-libs curl curl-devel <span style="color: #c20cb9; font-weight: bold;">cvs</span> cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain db4 dbus dbus-glib dbus-python dejavu-lgc-fonts desktop-backgrounds-basic desktop-file-utils device-mapper device-mapper-multipath dhcdbd dhclient dhcp dhcpv6-client diffutils dmidecode dmraid dos2unix dosfstools dump
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> e2fsprogs e2fsprogs-devel e2fsprogs-libs <span style="color: #c20cb9; font-weight: bold;">ed</span> eject elfutils elfutils-libelf elfutils-libs esound ethtool exim expat <span style="color: #c20cb9; font-weight: bold;">fbset</span> <span style="color: #c20cb9; font-weight: bold;">file</span> filesystem findutils finger firstboot firstboot-tui <span style="color: #c20cb9; font-weight: bold;">flex</span> fontconfig freetype <span style="color: #c20cb9; font-weight: bold;">ftp</span> gamin gamin-devel gamin-python <span style="color: #c20cb9; font-weight: bold;">gawk</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> gcc-c++ gd gdbm <span style="color: #c20cb9; font-weight: bold;">gettext</span> glib2 glib2-devel glibc glibc-common glibc-devel glibc-headers gmp gnome-keyring gnome-mime-data gnome-mount gnome-python2 gnome-python2-bonobo gnome-python2-canvas gnome-python2-gconf gnome-python2-gnomevfs gnome-vfs2 gnupg gnutls gnutls-utils gpm <span style="color: #c20cb9; font-weight: bold;">grep</span> groff grub gtk2 gtk2-devel gtk2-engines <span style="color: #c20cb9; font-weight: bold;">gzip</span> hal hesiod hicolor-icon-theme htdig htmlview httpd hwdata ibmasm ifd-egate imake info initscripts iproute ipsec-tools iptables iptables-ipv6 iptstate iputils irda-utils irqbalance isdn4k-utils
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> joe jpackage-utils jwhois kbd kdelibs kdnssd-avahi kernel kernel-devel kernel-headers keyutils keyutils-libs keyutils-libs-devel kpartx krb5-devel krb5-libs krb5-workstation ksh kudzu lcms <span style="color: #c20cb9; font-weight: bold;">less</span> lftp libFS libICE libIDL libSM libX11 libXScrnSaver libXTrap libXau libXaw libXcomposite libXcursor libXdamage libXdmcp libXext libXfixes libXfont libXfontcache libXft libXi libXinerama libXmu libXpm libXrandr libXrender libXres libXt libXtst libXv libXxf86dga libXxf86misc libXxf86vm libacl libaio libart_lgpl libattr libbdevid-python libbonobo libbonoboui libc-client libcap libdaemon libdhcp libdhcp4client libdhcp6client libdmx libdrm libevent libfontenc libgcc libgcrypt libgcrypt-devel libglade2 libgnome libgnomecanvas libgnomeui libgomp libgpg-error libgpg-error-devel libgssapi libidn libidn-devel libjpeg libmng libnl libnotify libogg libpcap libpng libraw1394 libselinux libselinux-devel libselinux-python libsemanage libsepol libsepol-devel libstdc++ libstdc++-devel libsysfs libtermcap libtermcap-devel libtiff libtiff-devel libtool-ltdl libtool-ltdl-devel libusb libusb-devel libuser libutempter libvolume_id libvorbis libwnck libwvstreams libxkbfile libxml2 libxml2-devel libxml2-python libxslt lksctp-tools lm_sensors logrotate logwatch lsof lvm2
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> m2crypto <span style="color: #c20cb9; font-weight: bold;">m4</span> mailcap mailx <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">man</span> man-pages mc mcstrans mdadm mesa-libGL mesa-libGLU metacity mgetty microcode_ctl mingetty mkbootdisk mkinitrd mkisofs <span style="color: #c20cb9; font-weight: bold;">mktemp</span> mlocate mod_perl module-init-tools mtools mtr mysql mysql-devel mysql-server <span style="color: #c20cb9; font-weight: bold;">nano</span> nash nc ncurses ncurses-devel neon net-snmp net-snmp-libs net-tools netpbm netpbm-progs newt newt-devel nfs-utils-lib <span style="color: #c20cb9; font-weight: bold;">nmap</span> notification-daemon notify-python nscd nspr nss nss-tools nss_db nss_ldap ntp ntsysv numactl oddjob oddjob openjade openldap opensp openssh openssh-clients openssh-server openssl openssl-devel
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> pam pam_ccreds pam_krb5 pam_passwdqc pam_pkcs11 pam_smb pango pango-devel paps parted <span style="color: #c20cb9; font-weight: bold;">passwd</span> <span style="color: #c20cb9; font-weight: bold;">patch</span> pax pciutils pcmciautils pcre pcsc-lite pcsc-lite-libs <span style="color: #c20cb9; font-weight: bold;">perl</span> perl-Archive-Tar perl-Archive-Zip perl-BSD-Resource perl-Bit-Vector perl-Carp-Clan perl-Compress-Zlib perl-Convert-ASN1 perl-Crypt-SSLeay perl-DBD-MySQL perl-DBD-Pg perl-DBI perl-Date-Calc perl-DateManip perl-Digest-HMAC perl-Digest-SHA1 perl-HTML-Parser perl-HTML-Tagset perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-IO-String perl-IO-Zlib perl-LDAP perl-NKF perl-Net-DNS perl-Net-IP perl-Net-SSLeay perl-Net-Telnet perl-SGMLSpm perl-Socket6 perl-String-CRC32 perl-URI perl-XML-Dumper perl-XML-Grove perl-XML-LibXML perl-XML-LibXML-Common perl-XML-NamespaceSupport perl-XML-Parser perl-XML-SAX perl-XML-Simple perl-XML-Twig perl-libwww-perl perl-libxml-perl perl-suidperl
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php php-cli php-common php-gd php-imap php-mbstring php-mysql php-pdo php-pear php-pear-DB pinfo pirut pkgconfig pkinit-nss pm-utils policycoreutils popt portmap postfix postgresql-libs ppp prelink <span style="color: #c20cb9; font-weight: bold;">procmail</span> procps psacct psmisc pycairo pygobject2 pygtk2 pygtk2 pykickstart pyorbit pyparted python python-elementtree python-numeric python-pyblock python-sqlite python-urlgrabber pyxf86config qt quota rdate rdist readahead readline redhat-artwork redhat-logos redhat-lsb redhat-menus redhat-rpm-config rhpl rhpxl rmt rng-utils rp-pppoe rpm rpm-build rpm-libs rpm-python <span style="color: #c20cb9; font-weight: bold;">rsh</span> rsync ruby ruby-libs samba samba-common <span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> selinux-policy selinux-policy-targeted
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">sendmail</span> sendmail-cf setarch setup setuptool sgml-common shadow-utils slang slang-devel smartmontools sos <span style="color: #c20cb9; font-weight: bold;">sox</span> specspo speex sqlite squashfs-tools startup-notification stunnel subversion <span style="color: #c20cb9; font-weight: bold;">sudo</span> symlinks sysfsutils sysklogd syslinux system-config-date system-config-display system-config-keyboard system-config-kickstart system-config-language system-config-network system-config-network system-config-securitylevel system-config-securitylevel-tui system-config-soundcard system-config-users talk <span style="color: #c20cb9; font-weight: bold;">tar</span> tcp_wrappers tcpdump tcsh telnet termcap tftp-server <span style="color: #000000; font-weight: bold;">time</span> tmpwatch traceroute <span style="color: #c20cb9; font-weight: bold;">tree</span> ttmkfdir tzdata udev unix2dos unixODBC <span style="color: #c20cb9; font-weight: bold;">unzip</span> usbutils usermode usermode util-linux</pre></div></div>

<p>Next, I install the other RPM files from the disk:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>c-ares-1.3.2-1.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>ez-ipupdate-3.0.11b8-3.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>flite-<span style="color: #000000;">1.3</span>-8.fc7.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>flite-devel-<span style="color: #000000;">1.3</span>-8.fc7.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>iksemel-<span style="color: #000000;">1.2</span>-13.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>ircd-hybrid-7.2.1-1.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>jpackage-utils-1.7.3-1jpp.2.el5.noarch.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>lame-<span style="color: #000000;">3.97</span>-1.fc6.rf.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>lha-1.14i-17.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>piafdl-<span style="color: #000000;">0.1</span>-1.noarch.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>piafxtras-<span style="color: #000000;">0.1</span>-1.noarch.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>shared-mime-info-<span style="color: #000000;">0.19</span>-5.el5.i386.rpm
rpm <span style="color: #660033;">-Uvh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>piaf<span style="color: #000000; font-weight: bold;">/</span>pbx<span style="color: #000000; font-weight: bold;">/</span>MySQL-shared-compat-5.0.41-0.rhel4.i386.rpm</pre></div></div>

<p>Ok, we are ready to install the PBX software now, finally, run this command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>piafdl <span style="color: #000000;">14</span></pre></div></div>

<p>The script will ask you if you would like to use option A (to download the PBX load file from the web site; select that option and the PBX load file will download).  The installer will run for a while and will reboot your VPS when the installation is finished.</p>
<p>When the system comes back online add your external IP and local network information into the SIP configuration information in the /etc/asterisk/ folder:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>asterisk<span style="color: #000000; font-weight: bold;">/</span>sip_general_custom.conf</pre></div></div>

<p>Add these lines to the file where XXX.XXX.XXX.XXX is your public WAN IP address</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">externip</span>=XXX.XXX.XXX.XXX
<span style="color: #007800;">localnet</span>=10.0.0.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span></pre></div></div>

<p>Now, restart Asterisk:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>amportal restart</pre></div></div>

<p>Next, browse to your VPS&#8217;s WAN IP address (or URL if you have one) and you should see the FreePBX admin center.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/11/installing-pbx-in-a-flash-piaf-on-an-openvz-vps/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
