Archive for July, 2008

Nokia N95 8GB, Sony Ericsson w580i, Bluetooth & Sharing Ring Tones

Wednesday, July 16th, 2008

We happen to have a few cell phones laying around the house. Of course I have my new nokia n95 8gb, we also have the Sony Ericsson w580i, and we have a blackberry pearl that Summer uses. I have been messing around with the n95 and the w580i. I wanted to be able to transfer some ring tones I have been making from the n95 to the w580i. I have never messed with bluetooth before so this was all new to me. I have basically been living in the 1980’s as far as cell phone technology goes for the last 5 or so years.

Getting it going

So first on the Nokia

  • menu
  • tools
  • bluetooth

From the Bluetooth menu:

  • Set bluetooth on
  • My phone’s visibility set to show to all
  • My phones name I set to Mike (since thats my name you can pick any name you wish)
  • Remote SIM mode I have set to off

Next on the w580i open the menu and select settings, then scroll left until you get to Connectivity:

  • Select Bluetooth
  • Turn On
  • Visibility
  • Show Phone
  • My Devices
    • Select Add new device
    • Make sure your n95 is close enough and bluetooth is on
    • Click on “Mike”
    • Passcode: 00000

Now a dialog will open on your n95 asking to allow the connection and to enter the passcode. Enter 00000 and hit OK. Now the 2 devices are connected. In my case I wanted to transfer a ring tone from the n95 to the w580i. So now we need to grab the n95 and open the menu and go to tools, and then file manager. Find the file you want to send. Scroll to the file and click options then send, send via bluetooth, and then select the w580i (which by default is named W580i). Thats it.. super simple. Now you can use this file as a ring tone or text alert or what ever.

Asterisk Dual Servers with SIP

Tuesday, July 15th, 2008

I have found about a million articles on the net for connecting 2 asterisk boxes using IAX2. What I have not found is many describing how to do this with SIP, so thats what Im going to talk about. Now since I am a FreePBX user I am going to talk about how to do this using the FreePBX web GUI. You can use this method if you use TrixBox, or Elastix, or PBX In A Flash, or if you just use FreePBX with your own distro.

I have 2 systems. To make this simple Im going to call them pbx1 (which for this example is in San Antonio) and pbx2 (which we will pretend is in our Houston office). First we need to log into the web interface on pbx1 and then get to the section where you configure trunks. Click Add SIP Trunk. Im not going to mess with any of the General Settings, or the Dial Rules. I am going to go straight to the Outgoing Rules. In trunk name Im going to call this trunk-hou-peer. Next I jump into the PEER Details box. I put the following into the box:

context=from-internal
host=pbx2.mhipriv.com
secret=strong_password
type=peer
username=trunk-sa-peer

Next, Remove all the settings from the Incoming Section. Hit submit, and then apply the changes.

Next we need to log on the web gui for pbx2. Now we are going to go from Houston back to San Antonio with this trunk. We need to add a new SIP trunk here. Follow the same steps as before, but now name this trunk: trunk-sa-peer You may notice that the name of this trunk is the username we used in the peer details on pbx1. Now in the Peer details on pbx2 add the following:

context=from-internal
host=pbx1.mhipriv.com
secret=strong_password
type=peer
username=trunk-hou-peer

Now you will notice that the username on this peer is what we named our trunk on pbx1. The context used in both is the same. This will give you access from pbx2 to dial an extension that is on pbx1 and vise versa. Now all we need to do is submit this and apply the changes.

Next all we need to do is create an outbound route to use our new trunk. For the sake of keeping it super simple lets assume you have extension 100-199 on pbx1 and 200-299 on pbx2. We need to go to the outbound route section and create a route on pbx1, name it toHouston and it needs a dial pattern that looks like this:

2XX

Click on the Intra Company Route. Then select our Houston trunk. Next submit and apply changes. Now head over to the pbx2 web gui and do the same steps only name this route toSanAntonio and for its dial pattern use:

1XX

Click Intra Company Route select the San Antonio Trunk, hit submit and apply. Now from extension 100 in San Antonio dial 200 and bamo thats it. You can take this a step further and even do toll-by-pass now.

The best course is to answer No and try again later.

Thursday, July 10th, 2008

I have been working on a Domain Controller at work using Samba 3.0.28 and openLDAP. I was trying to setup my windows client computers to login then map some drives from various other samba servers we have. My logon.bat file looked like this:

@echo off
REM # SYNC THE TIME WITH THE SERVER
net time \\pdc01.mhipriv.com /set /y
REM # DELETE ALL MAPPED DRIVES
net use h: /delete
net use h: “\\pdc01.mhipriv.com\homes”
net use g: /delete
net use g: “\\server.mhipriv.com\apps”

This was working but causing some weird issues when you would log in from a windows client. I would get this error on windows that said:

There are open files and/or incomplete directory searches pending on the connection to pdc01.mhipriv.com

So I went over to microsoft google and did a search for the error. #1 google result led me here So I am reading and sure enough this is my problem. So then on to the answer.. WTF!!! You mean seriously you want me to wait and try it again.. Im thinking to my self “You have to be fu**ing kidding me” So I wait, and wait, and wait, and then went home for the day and then today I try again and still the same shit. So I decided to find the real solution. What happened is that in my smb.conf I set the logon drive = H: so samba was already mapping it for me and then I was trying to /delete it and then remap it, and somewhere in that process was the problem. All you really need to do is either set

logon drive =

Because the default drive is Z:\ if its not set, or

logon script = logon.bat
logon path = \\%L\PROFILES\%U
logon drive = H:
logon home = \\%L\%U

And make sure your logon.bat looks like this

@echo off
REM # SYNC THE TIME WITH THE SERVER
net time \\pdc01.mhipriv.com /set /y
net use g: /delete
net use g: “\\server.mhipriv.com\apps”

I hope someone out there finds this more useful than the “The best course is to answer No and try again later.” crap answer I found on the M$ site.

Long Sleeves for life.

Sunday, July 6th, 2008

I have been on a bit of a tattoo kick the last 9 months or so. Most of the big stuff I have gotten has been on my right or my left leg. I have some work on my arms but nothing that couldn’t be hidden by a short sleeve shirt. Nothing that is, until last night. I have always wanted to have whats known as a full sleeve on both of my arms. Well we have finally started the one on my left arm. Its going to look so bad ass when its done. Mr. Luckys tattoo in San Antonio is where Im getting the work done. The artist is Weldon Lewis. Its my opinion that he is one of the best tattoo artists in the country. So now that my forearm has been marked for life it looks like I am going to be stuck wearing long sleeves to work from here on out. I see it as a very small price to pay to be able to have some wonderful art on my arms for life.

My New Cell Phone – Nokia n95 8GB

Tuesday, July 1st, 2008

Yeah, hate me.. I got one. Its so freakin awesome. here are a few things that really kick ass so far about this phone:

  • I am able to sync music to the phone via amarok using Linux
  • I am able to browse the web using WIFI or my 3g data service.
  • I have configured my n95 as a sip client and have it registered with my Asterisk server.
  • The phone supports mobile bar codes
  • The camera takes WONDERFUL pictures. The quality is very high!! And you can export them directly to flickr!!
  • The phone takes really great video
  • Did I mention I didnt need windows to add music to this thing??

Im sure there are other really great things about this phone too but I have only had it a couple days so I havent had time to check all the features out yet.

Protected: New Cell Phone Number – password is 10 digit old number

Tuesday, July 1st, 2008

This content is password protected. To view it please enter your password below: