* One or more Unlocked [[w:Analog telephony adapter|Analog telephony adapter]]s or [[w:IP Phone|IP Phone]]s. Such as the [[w:Linksys PAP2|Linksys PAP2]]

* [[w:Bluetooth|Bluetooth]] [[w:USB|USB]] Dongle, preferably one with a [[w:Cambridge Silicon Radio|Cambridge Silicon Radio]] Chipset (it works better with chan_mobile) The Dlink DBT-120 is mentioned most often [[Image:DBT-120.jpg|50px]]

* [[w:Bluetooth|Bluetooth]] [[w:USB|USB]] Dongle, preferably one with a [[w:Cambridge Silicon Radio|Cambridge Silicon Radio]] Chipset (it works better with chan_mobile) The Dlink DBT-120 is mentioned most often [[Image:DBT-120.jpg|50px]]

Abstract

The idea for this concept came from a bluetooth cordless cellphone extender that I saw at someone's house like this one: Bluetooth to Cordless Phone . Sometime later, I read that Asterisk has a module called chan_mobile which lets you use a cellphone as if it was a trunk over a SIP phone. So if you had a service such as Vonage and an ATA that you could "open" you could get started. Well that was enough to get me started, so I implemented this solution first on an Ubuntu box. I'm still working on getting it fully implemented on a PPC linkstation. Bluetooth audio has been the sticking point, but I'm confident that kernel 2.6.27+ will be the answer.

What this would do is allow you to use a Linkstation running Asterisk to turn a cellphone into a trunk for 1 or more SIP Phones or ATAs. Asterisk is pretty powerful and would allow you to integrate POTS/PSTN lines (with a FXO/FXS adapter like the SPA3102), a VOIP service (such as Vonage), and now a Cell Phone too!

Prerequisites

This article assumes that you have installed FreeLink on PPC Box.
You also will need to upgrade to a 2.6.27+ Kernel on a PPC Box, (the bluetooth SCO audio driver doesn't seem to work right otherwise.

Pair your phone with your "asterisk box"

Grab your cell phone, turn Bluetooth on and search for devices. You should find your PBX as
Asterisk PBX. Pair with a pin of 1234.

Make your phone discoverable via Bluetooth.

Let’s make sure we can see your phone or headset. Use the command:

hcitool scan

You should see something like this:

hcitool scan
Scanning ...
00:1B:XX:XX:XX:XX Someones iPhone

If you see your phone above all is well and we can now search for your bluetooth devices using
the CLI command 'mobile search'. Be patient with this command as it will take 8 - 10 seconds to do the discovery.

This is a list of all bluetooth devices seen and whether or not they are usable with chan_mobile.

a. The Address field contains the 'bd address' of the device. This is like an ethernet mac address.

b. The Name field is whatever is configured into the device as its name.

c. The Usable field tells you whether or not the device supports the Bluetooth Handsfree Profile or Headset profile.

d. The Type field tells you whether the device is usable as a Phone line (FXO) or a headset (FXS).

e. The Port field is the number to put in the configuration file.

Choose which device(s) you want to use and edit /etc/asterisk/mobile.conf

For a phone create a stanza like the one below and paste in the MAC address on
the address line and also make sure you use the port that was displayed during
the mobile search. The 'id' of the device [bitinbrackets] can be anything you
like, just make the unique.