Wednesday, April 15, 2009

Polycom BLF on Trixbox 2.6

I consider my google-fu to be pretty good but trying to get BLF on my Polycom 550 seemed challenging at best. The biggest problem I had was in figuring out exactly what I was looking for. One of my biggest pet-peaves about the VoIP community is that you seem to have those who know very little and those who know so much their brains are spilling over with information so much so that they don't bother to clearly state what files they are editing and just expect you to know by what they type on the screen.

I fall somewhere in between these two types of people. I understand a lot about computers, networking and Linux. Voice is just hte bane of my existence and I tolerate it because it's beginning to put more and more money in my pocket.

So this post is how I got BLF to work on a polycom 550 with a Trixbox 2.6.1 installation.


1. Make sure you have the polycom firmware installed:

  # yum install firmware-polycom

2. check your 'show hints' in the asterisk command line interface

# asterisk -rx 'show hints'

    -= Registered Asterisk Dial Plan Hints =-
                   3260@ext-local           : SIP/3260              State:Idle            Watchers  0
                   3202@ext-local           : SIP/3202              State:Idle            Watchers  0
                    709@park-hints          : park:709@parkedcalls  State:Idle            Watchers  0
                    708@park-hints          : park:708@parkedcalls  State:Idle            Watchers  0
                    707@park-hints          : park:707@parkedcalls  State:Idle            Watchers  0
                    706@park-hints          : park:706@parkedcalls  State:Idle            Watchers  0
                    705@park-hints          : park:705@parkedcalls  State:Idle            Watchers  0
                    704@park-hints          : park:704@parkedcalls  State:Idle            Watchers  0
                    703@park-hints          : park:703@parkedcalls  State:Idle            Watchers  0
                    702@park-hints          : park:702@parkedcalls  State:Idle            Watchers  0
                    701@park-hints          : park:701@parkedcalls  State:Idle            Watchers  0


*** if you don't have anything for the 'show hints' make sure you have your extensions set up and working in Trixbox. It's supposed to create the hints automatically.

3. Now create a speed dial entry in your polycom phone. On my 550 I pressed the follow:
[Directories]
1. Contact Directory
[Add]
First Name:  {Extension I wanted to watch}
Contact: {Extension I wanted to watch}
[Save]
Make sure you have the speed dial entry on one of your buttons now. If you don't then you either don't have an available button or you did something wrong.

These steps will create a file on your server under /tftpboot/polycom/contacts  {MACADDR}-directory.xml


4. Now open the new file in your favorite editor (mine is nano).  You should see something like this:

<?xml version="1.0" standalone="yes"?>
<directory>
    <item_list>
        <item>
            <fn>3202</fn>
            <ct>3202</ct>
            <sd>1</sd>
        </item>
    </item_list>
</directory>

Add a line for the Buddy Watch so it looks like this:

        <item>
            <fn>3202</fn>
            <ct>3202</ct>
            <sd>1</sd>
            <bw>1</bw>
        </item>
Save your changes but don't reboot your phone just yet.


5. Next I had to edit the /tftpboot/sip.cfg. Look for a line starting with:
   <feature feature.1.name="presence" feature.1.enabled="0"
You need to turn on feature.1
feature.1.enabled="1"
Save the file, and reboot your polycom phone.


6. Presto! Once the phone reboots you should see the extension you want to monitor but instead of a tiny keypad next to it you should see a little person. Whenever they are talking on the phone, or recieving a call your screen will update. Remember this isn't a key system, so just picking up the handset won't actually report them as busy.



This is how I got BLF on a Polycom 550 with Trixbox. Other configurations may require other settings. I think if I had edited the sip.cfg file before adding the speed dial entry I might have seen the Buddy Watch option when setting up the speed dial, then I wouldn't have had to edit the directory file by hand.

Looking through sip.cfg I noticed several other features of interest to me. I guess I'll have to play with them next. But that's another post for another day. Time to go make money with my new found feature.






Sunday, March 08, 2009

Me and my new Acer Aspire One D150-1165

The other day I received my new 10.1 inch Acer Aspire. Sure my 8.9 unit still works and does pretty much everything I need it to do. But heck these things only cost $350 so why not get the new one too.

Here's what I like about the 10 inch model:
  • Larger screen makes it easy to run smaller fonts to maximize the 1024x600 resolution
  • The 6 Cell battery gives me 4 plus hours of true wireless run time
  • The sata drive is noticeably faster than the PATA drive I put in my SSD AAO
  • Easier to get to the ram and wireless card, already boosted to 2GB and Broadcom card, without taking the thing apart.
And here's what is frustrating me so far:
  • Difficulty to find articles on google due to the similar name, AAO seems to refer to the 8.9 inch
  • Can't get the internal mic to work in LInux. So Skype in Linux requires a headset, not in XP or 7 though.
  • Haven't been able to get a Mac OS X install to work once installed, retrying now with this post
  • The suspend feature under Linux recently quit working, I've used this post for the 8.9" with success. I probably goofed something up...
Currently I have Fedora 10, Windows XP (came with it), Windows 7 Ultimate (Beta) and a broken Mac OS X 10.5.6 installed. I'm impressed enough with Windows 7 that I will probably wipe out the XP partition once they do a real release of 7. It surprised me with how stable and quick it is. But it's still not Linux so it won't become my primary OS of choice.

Did I mention the battery life? Really it's great. I don't know what the real life span of a charge is yet because I simply haven't worked on it that long at one time. I'll probably figure it out the next time I'm at a customer's site. I wish they included a shorter clover-leaf power cord though. I've found sites listing a 1 foot cord but everyone is out of stock. I guess that's the "in" accessory for these netbooks. When/If I ever find them in stock I'll definitely order a few for all of my laptops and then leave the 6 foot cables at home.


It's not perfect yet, but this little netbook will definitely be going to my outings with me from now on. The 8.9" will be relegated to a handy Hackintosh for testing web stuff when needed.


Wednesday, February 04, 2009

upgrading the wifi on the Aspire One

Last week I ordered a Dell 1390 wifi card for the netbook so I could have wireless connectivity in all 3 OSes (WinXP, Mac OS X and Linux). I thought I'd mention what I did to get it working in the various systems.

MAC OS X:
This was easy. I simply booted into the OS and it told me I had a new network device. I followed the prompts, selected my access point and I was on the internet. Woopie!!!


Windows XP:
I refered back to a post about my HP dv2810 install from last summer and got the driver software from Dell. The link to the driver is here. I saved it to my SD card as I'd need it for the Linux installation as well. Next I went to the Hardware Device Manager and installed the driver for the unidentified new hardware. I told Windows I'd specify the location of the files and before I knew it I had it working in Windows. Pretty easy so far.

Fedora 10:
My first attempt, following the same instructions as the dv2810 didn't work so well. Here's what I tried:

# wget http://ftp.us.dell.com/network/R174291.exe
# unzip R174291.exe
# cd DRIVER_US/bcmwl5.inf
# ndiswrapper -i bcmwl5.inf
# ndiswrapper -l
bcmwl5 : driver installed
  device (14E4:4311) present (alternate driver: ssb)
# modprobe ndiswrapper
# iwconfig wlan0

But this is where it broke. I got a "No such device" error message instead of it showing me the wifi card as it did on the HP laptop.

Back to the linuxwireless.org site. I noticed that it shows the bcm4311 rev 1 as being supported, since it was I thought there had to be a better way than the ndiswrapper solution. It turns out there is. I have the rpmfusion repos installed so I was able to simply install the driver.

# yum install broadcom-wl

After a reboot I was good to go.

I noticed the signal strength on the Dell card is quite a lot more than the original atheros card. Not a bad upgrade for $15 including shipping. Checking the power consumption with powertop seems to indicate a slightly lower power draw with the card as well. I'll just have to see how the battery does I guess. Without firing up the soldering iron, I think I've done all the hardware hacking I plan to do to this little netbook.

Saturday, January 24, 2009

Hacking the Aspire One

Well it had to happen, I mean come on you didn't think I'd go without opening the case for long did you?

Last weekend I ordered a Samsung HS081HA 1.8" hard drive on Ebay. The SSD was nice but it seemed like every other reboot of the machine would cause problems with my SDHC mounted /home directory so I decided to put a hard drive in there instead. Besides, with an 80GB hard drive I'd have room to acheive my other goal of tripple booting OSes on the machine. Yesterday afternoon the mailman delivered the harddrive and so I started the work.

First things first was to get the netbook open. Easy enough following the hard drive video from Tnkgrl. I had a little difficulty inserting the stock ZIF cable into the drive. It just seemed too thick for the connector on the drive. I took some 600 grit sand paper and carefully thinned the blue tab of the drive cable until it fit properly. Before assembling the whole thing I powered on the computer to verify the drive in the BIOS.  It wasn't found, so I powered off and flipped the cable over. The second time it was recognized in the BIOS but there was an ! in the second character of the drive's serial number. I later discovered the cable wasn't properly aligned and prevented the drive from working correctly. Simple reseating of the cable solved the problem. While I had the case apart I also upgraded the ram to 1.5GB thanks to a stick of ram my sister gave me after her Sony laptop met an untimely end (Thanks Paula). I didn't do the blue tooth hack or the wifi swap out at this time.

So with the case back together and an 80GB hard drive just waiting to be loaded, I started with the Windows recovery discs that came with my Acer. I figured this would be the simplest way to get Windows loaded and it allowed me to use the Windows key that came with it. These Windows CDs only come with the SSD equipped units, and like the Linux recovery discs they want to take over the entire hard drive. That was fine by me because I could just use Gparted to resize the partition once the install was done.

Using a Gparted iso and unetboot, I created a USB drive to take care of my repartitioning. First I resized the partition from the full 74G down to 17GB. Then I created the 40GB Linux and 18G Mac partitions. I opted not to use a swap partition because of the added ram. The whole process took about an hour and a half. Afterwards I installed Fedora 10 from the Live iso. This time I opted to install the full version of Fedora instead of the XFCE spin as I use some applications that aren't quite friendly with the XFCE menu system.

After Fedora was installed and working I checked to make sure booting between Windows and Linux worked. It did, so I proceeded with the 3rd OS installation, Mac OS X. I found a guide showing how to install using the Kalaway 10.5.2 iso and then applying several updates. The key to his guide was that he installed Ubuntu first and used grub to act as the boot loader, that seemed to fit with my plans. But before trying the older iso image I opted for the newer XxX 10.5.6 rev 1 torrent I found. Obviously the "customize" section of the installation didn't match so I tried my best to match the choices. Once started, the installer indicated it would be over 2 hours before it was done. Since it was after 10pm I decided to get a couple hours of sleep while the computer worked.

This morning when I woke up and checked on the install it was stuck in a viscous loop. Now I've found out the loop was likely caused by the "cpus=1" tag you need to pass when booting the vanilla kernel, but since I didn't know that at the time. I pulled out my Kalaway 10.5.2 CD and started following the guide. This time, it took 3 hours for the initial installation to complete.  By noon I had a semi-working Macbook nano, by 3pm I didn't have a keyboard or mouse working except with USB externals. Searching for help on the keyboard I found another guide on AspireOneUser  where the author mentiond a PS2 kext included with his "Utility Pack". This sounded promising and indeed it was. Once I installed his Kexts my keyboard and mouse started working again. By the time I completed the Venera7 guide it was just after 5pm. I had a working 10.5.5 Mac OS X running on my little Acer. But why stop there? I mean the latest version is 10.5.6 so I had to try it. Following recommendations from another blog post, I updated the PC EFI boot loader. When I tried to follow the link to get the DSDT patcher I found a stumbling block. It seemed Insanelymac.com was down due to a DNS issue. So a little googling turned up a gui version. I wasn't able to get it to compile without using the force option. However, rebooting after the compile showed no errors so I tried the 10.5.6 update from the Software Update menu option...

So while waiting for the 10.5.6 update to download and install I decided to pull the Broadcom wifi card in my HP. In the mean time I could use the Atheros card from the Acer in it and when the one I ordered off ebay (earlier today) arrives I can swap them out. It's just too easy to open the case of the AA1 once you know how.

After what seemed like an eternity and two automatic reboots the system came up on it's own. Sound didn't work and the display settings were back to 800x600 but the upgrade worked. "About this Mac" reports version 10.5.6. A reinstall of some kexts and then a permission repair (can't be too careful) resolved the issues with a few reboots. Basically I just had to follow the Venera7 instructions for what you do after the 10.5.5 update. The only thing left to do in the Mac OS other than install some apps was to get the Broadcom wifi card installed.

So I shutdown the computer for one more round of disassembly. Five minutes later I'm booting things back up but there's no airport listed. What's worse, my HP won't even boot with the Atheros card installed. Just after the initial BIOS post screen I get an error saying the wireless card is wrong and to remove it. Since it doesn't like the Atheros, and my hackintosh doesn't like the broadcom card out of the HP I think I'll just put them back for now. I'll have the card from ebay in a week or so and until then I can work it using the LAN port and my USB cellular modem (if I can get that to work).


Well, I still need to configure my Linux and Windows OSes to be useful. Both need updates applied and Linux needs my web browser and email settings applied. Plus things like unison to sync my documents and vpn connections. I'll just kick off a yum update before I call it quits tonight. This little netbook has become my favorite device when I'm away from the comfort of my desktop with it's three 24" monitors. It's reasonable speed, fantastic battery life and lightness just makes it the handiest computer to take with me. Whether I'm on my bike or in the Jeep. It's just the most packable computer I've had in a long time. Too bad Acer couldn't come up with a little better solution for the power cube and cord.

BTW: It wasn't a completely selfish Saturday for me. I did find time to fix my wife's AA1 so that she shares her Documents between the Windows and Linux (Linpus) partions. Thankgoodness I created that 4th partition as FAT32. Then it was just a matter of pointing all the folders to it on both sides. Now she can view her work documents from either OS. She's happy.

Friday, January 09, 2009

A full day with the Aspire One

Today I thought I'd work on the AA1 a little and see if I could get the stock Linpus OS to work for me. Well, I got quite a bit working but the key stopping point was the lack of support for my Novatel U727 Cellular modem. Since that is important to me when I travel and even when I'm on-site, I had to get it working.

I decided to install Fedora 10. Since I still wanted to utilize the SDHC slot for added OS capacity I initially tried to place the root filesystem on there with just the boot partition on the SSD. Nope! I'm sure I was close but it just wasn't worth it after I had to reinstall for the 4th or 5th time. Luckily I was installing from a USB stick so it didn't take long to install.

I found a really helpful blog post detailing another's experience doing what I wanted so I used his tips. I've successfullt managed to use the SDHC expansion slot for my /home directory. Currently I'm waiting on a yum update to complete, hopefully after the reboot I'll still have a working OS. At least with the Live CD on the thumb drive it'll be easy to get in and repair things if they break.

I still need to set up evolution and syncevolution but at least I have my Firefox working. More to come I'm sure, but so far it's looking like this little netbook will be going to Alaska with me this summer.

First day with the Acer Aspire One

Just as I was getting home this evening, Mr. FedEX showed up with the box from Buy.com. Inside was my blue Acer Aspire One. The shipping label showed the package to weigh only 6 pounds. A good start.

Upon opening the shipping box I found my first disappointment. The unit did not come with a 16GB SSD as the website indicated. It has an 8GB SSD drive and an 8GB SDHC card. Well it's still a good deal for $300. A trip to Fry's and two 16GB SDHC class 6 cards later and my plan is back on track. Unfortunately they didn't have any sort of case that really seemed to fit the AA1. I wonder how hard it is to sew neoprene?

For grins I went ahead and booted up the machine and activated my Windows XP license. As expected Windows XP really slowed down the system but it was reasonably usable. Earlier this week I had found a torrent of the Linux recovery disk and so I made the necessary USB drive and followed the text file instructions. Luckily I had a 16G USB stick but the file is only 2G so it was probably a little over kill. But 30 minutes later my Windows XP AA1 was turned into a Linpus AA1. No fuss, no muss.

My plan now is to keep the Linpus on the SSD for the time being. I'm going to load Windows XP on a 16GB SDHC card, and load Fedora 10 on another 16GB SDHC. Once that's done, I'll try loading OS X on the 8GB SDHC that came with the unit.

The keyboard feels cramped. The trackpad needs some getting used to. But I think I can get used to this for trips. Since Firefox comes installed I added Scribefire and Foxmarks, now I'm posting to this blog.

There's plenty of info out there about how to dual boot, triple boot, etc. None the less, I'll post what I do in the coming weeks.