You are visiting:Home arrow Articles for Geeks arrow Asterisk arrow HOWTO build and configure chan_mobile on Trixbox Tuesday, 09 March 2010
Google
Support Geek-Pages.com in making a small donation:
Main Menu
Home
Articles for Geeks
FAQs for Non-Geeks
Links
Kevan's Blog
Contact Us
Search
Login Form





Lost Password?
No account yet? Register
Submit article to:
HOWTO build and configure chan_mobile on Trixbox PDF Print E-mail
Written by Kevan   
 

9. Now let's make sure everything is running that should be:

/etc/init.d/bluetooth status

You should see messages that look like this:

hcid (pid somenumber) is running ...
sdpd (pid somennumber) is running ...

If you're alerted that some other application isn't running, we don't care.

10. Now let's be sure the system has found your Bluetooth adapter:

hcitool dev

You should see something like this:

Devices:

hci0 00:16:38:39:44:88

11. Copy the hardware address from the output of the following command for the next step.
(eg. xx:xx:xx:xx:xx:xx). Now edit /etc/asterisk/mobile.conf:

nano /etc/asterisk/mobile.conf

In the first [adapter] stanza where “id=blue” replace the mac address with the one you copied down.

12. Configuring Linux Bluetooth Software to Start Automatically. You don't want to have to manually
start up your Linux Bluetooth software each time you reboot your server. The easiest way to
automatically start it is to use WebMin which comes preinstalled with our TrixBox builds. While
logged in as root, make sure WebMin is running:

/etc/webmin/start

Then point your web browser to port 10000 on your Asterisk server:

https://192.168.0.108:10000 (use your IP address)

When prompted for username and password, type root and the password you assigned the root user on
your system. From the Main Screen of WebMin, click the System button and then the Bootup and
Shutdown link. Find bluetooth in the list of applications and click on it. The Action Details
screen should show that bluetooth is running. Now click the Yes button beside "Start at Boot Time?"
and then click the Save button to reconfigure your server. That wasn't hard, was it? Go back to the
command prompt on your Asterisk server and stop WebMin by issuing the following command:

[trixbox1.local ~]# /etc/webmin/stop

No need to waste processing cycles for a tool we're not using.

13. Now let’s make your trixbox discoverable:

[trixbox1.local ~]# dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable

14. 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.
15. Make your phone discoverable via Bluetooth.