[asterisk-users] chan_cellphone won't pair with phone

Earle Clubb eclubb at valcom.com
Tue Mar 6 07:11:55 MST 2007


I'm running chan_cellphone version 13 on the latest svn trunk (as
root).  I believe I have chan_cellphone set up correctly (bt addr and
port retrieved from the "cell search" CLI command).  When I load the
chan_cellphone module, my Motorola V3m asks if I want to allow "Asterisk
PBX", I say yes and enter the 0000 for the pin, then my phone tells me
the pin is invalid.  Here is the log entry generated by chan_cellphone:

*CLI> [Mar  3 22:53:12] DEBUG[16888]: chan_cellphone.c:682
rfcomm_connect: connect() failed (111).

*CLI> cell show devices
ID              Address           Connected State
razr            xx:xx:xx:xx:xx:xx No        Init


I'm running:
- Fedora Core 6 - kernel 2.6.19-1.2911.6.4.fc6
- bluez-libs (libbluetooth) 3.7-1
- bluez-utils 3.7-2

I'm using the hcid.conf and pinhelper script from contrib/bluetooth
(which I moved to /etc/bluetooth).

I'm not sure how to debug this further.  Any ideas?

Earle

---------------------------

Here's the directory listing and the contents of the files (comments
removed for brevity):

[root at server ~]# ls -l /etc/bluetooth/
total 12
-rw-r--r-- 1 root root 1428 Mar  3 18:36 hcid.conf
-rwxr-xr-x 1 root root   27 Mar  3 18:36 pinhelper
-rw-r--r-- 1 root root  297 Oct  2 18:40 rfcomm.conf

--- pinhelper ---
#!/bin/sh
echo "PIN:0000"

--- hcid.conf ---
options {
    autoinit yes;
    security auto;
    pairing multi;
    pin_helper /etc/bluetooth/pinhelper;
}
device {
    name "Asterisk PBX";
    class 0x3e0100;
    iscan enable; pscan enable;
    lm accept;
    lp rswitch,hold,sniff,park;
    auth enable;
    encrypt enable;
}

--- cellphone.conf ---
[general]
interval=60        ; Number of seconds between trying to connect to
devices.

[razr]
address=xx:xx:xx:xx:xx:xx     ; retrieved from "cell search" CLI command
port=4
context=incoming-mobile






More information about the asterisk-users mailing list