Wednesday, July 23, 2008

Installing trixbox

I grabbed the ISO from trixbox.org, and fired up the box I'm going to use as my server, a Dell Optiplex GX280 with 2 - 160GB SATA drives and 4GB RAM.

Using the Quick Install Guide (QIG), I pop in the CD, hit "Enter" to start the installation at 10:43pm... The installer asks for some very basic information and goes on its merry way... The box reboots itself at 10:53pm. There's some strange looking, uh, error? messages during the boot process, but it starts up & I log in.

Since I have my own DNS/DHCP server (using dnsmasq running in a VMWare image), I configured it to always assign the same IP address to this box. Although the box comes up with a host name of "trixbox1.localdomain", I'm not yet brave enough to change that...

I'm now logged in to the web interface. As per the QIG, I log in as "maint". I'd like to change the password, but don't know how and can't find a link to do so. I'm also a bit lost, as the QIG says to click on "Asterisk > FreePBX", but I can't find that anywhere. So, I just started clicking around :-) Finally found what I'm looking for: "PBX -> PBX Settings" from the top level menu.

(Hey! Look! A warning that I'm using the default password! Click on that hoping to be prompted to enter a new password, but no luck...just get an expanded version of the error message...)

Now, on the right, click "Module Admin". Well, I see a bunch of modules, but no where do I see any that I can add, so we'll leave that alone for now... (The important thing, I think, is that "Ring Groups" is marked as "Enabled".)

Continuing with the deviation from QIG, I clicked on "Extensions" on the right-hand menu. On the new screen, I left the default option (Generic SIP Device) and clicked Submit. OK, a rather long form here...
  • Extension: 200
  • Display Name: "Jay"
  • Under "Device Options", set a secret
  • Voice Mail: Change to "Enabled" and set a password and email address.
I left the rest of the options alone, although things like "VmX Locator" sounds possibly interesting...

So now, according to the QIG, I have an extension setup. On to the phone setup...

I went to the admin web page of my Grandstream 2000. I don't want to lose or mess with the setup I have (it works!!!), so I just disabled Account 1, and went into Account 2 settings. Unfortunately, it doesn't seem to register :-(

Digging around, sureteq has a setup guide. Let's see... Hey! Here's how we change the passwords...have to do it from the trixbox's command line:
* Update maint password by typing ‘passwd-maint’ at the command line. Enter the password twice.
* Update AMP password by typing 'passwd-amp' at the command line. Enter the password twice.
* Update meetme password by typing 'passwd-meetme' at the command line. Enter the password twice.
In my attempt to follow directions, I switched to trying to configure an X-Lite softphone on my laptop.

The next thing I learned, is that simply hitting "Submit" isn't enough! You see the orange bar at the top (missed that, didn't ya?!). You have to click that to actually load all the changes... Whew... now my soft phone registers!

Continue on, now with the Grandstream (kinda nice the guy at sureteq also has one!). I'm nervous about changing the "Firmware Upgrade and Provisioning" so I skip that part. I configure the rest, and reboot the phone, but it doesn't register. Well, there's more steps, so before changing the firmware provisioning, I'm going to continue...

After running the setup-grandstream command, I rebooted my phone. It still doesn't register. Going into the extension manager (PBX -> Endpoint Manager from the top menu), I hit 'GO' and sure enough, my phone is found! However, after associating it with the extension and rebooting it again, still not registering.

OK... I'm going to give up, bite the bullet, and change the provisioning... I'm quite nervous, but the pohne does reboot. Uh oh...it's downloading firmware... I'm really nervous now... this is what I didn't want... Well, let's hope it isn't bricked when this is done...

Phone has now rebooted a few times, and appears to be running, but still not registered...

I went through the rest of the setup steps. I think the only thing that tripped me up was the fact that I need to connect to my VOIP provider, which is different than the examples. I discovered that SIP register string in the Trunk configuration is of the form: user_name:password@server. Once I got that right, going to the PBX -> PBX Status shows that I'm registered!

Well, gonna have to work on the Grandstream more later...

No comments: