Chan_mobile and Asterisk 11

Hi!!

I’m new in Asterisk and FreePBX,

I installed FreePBX Stable-6.12.65 distro with FreePBX 12, CentOS 6.5 and Asterisk 11.

I have 2 Iphone 6 and I want to use them as GSM gates when I´m inside the office with addon chan_mobile.

After some time learning I got a few how-tos intended to prior versions of Asterisk but this is what I got:

1- Install bluez drivers: yum install bluez*

2- start the service: service bluetooth start

3- Edit hcid configuration file. Here is where problems begin…
I was told to edit file hcid.conf on /etc/bluetooth/ but in this directory there is only 1 file called main.conf. The file is different to hcid.conf.

This is what I was supposed to update hcid.conf to:
options {
autoinit yes;
security auto;
pairing multi;
passkey “1234”;
}
device {
name “pbxip”;
class 0x000100;
iscan enable; pscan enable;
lm accept;
lp rswitch,hold,sniff,park;
}

4- get the MAC address of my USB dongle: hcitool dev
I get info regarding my dongle (numbers hidden):
Devices:
hci0 XX:XX:XX:XX:XX:XX

5- Create chan_mobile configuration file: vi /etc/asterisk/chan_mobile.conf
[general]
interval=30

[adapter]
id=internal
address=XX:XX:XX:XX:XX:XX ; Same MAC address as before
forcemaster=yes

6- Set permissions for the file created:
cd /etc/asterisk
chown asterisk:asterisk chan_mobile.conf
chmod 664 chan_mobile.conf

7- get to asterisk console: asterisk –rvvvvv

8- Load chan_mobile: module load chan_mobile

9- Make sure asterisk detected the dongle: mobile search
I get only my Iphone (on Port 0) on that and I was told I should get my phone AND my dongle on that:
Address Name Usable Type Port
ZZ:ZZ:ZZ:ZZ:ZZ:ZZ iPhone No Headset 0

Please note that “Type” is declared as Headset and not Phone as it should be…

10- Complete chan_mobile configuration file with the phone´s information: vi /etc/asterisk/chan_mobile.conf
[general]
interval=30

[adapter]
id=internal
address=XX:XX:XX:XX:XX:XX ; Dongle´s MAC address
forcemaster=yes

[iPhone]
address=ZZ:ZZ:ZZ:ZZ:ZZ:ZZ ; the address of the phone
port=0 ; the rfcomm port number (from mobile search)
context= from-mobile-custom-1 ; dialplan context for incoming calls
adapter= internal ; same id as before
group=1

11- Pair the phone and the dongle:
I can´t! Iphone does not find the dongle via bluetooth.
My guess is that this is because I couldn´t find the correct hcid.conf file and set ip up correctly so the dongle was not set as a “Phone” but as a “Headset”

Can somebody give me a hand on this please? All information I got online reffers to Asterisk 1.8…

kind regards