chan_mobile (search mobile)

kernel 2.6.24.3
bluez 3.22

asterisk 1.6 beta 6 + addons 1.6 beta 2

hcid.conf

options {
autoinit yes;
security auto;
pairing multi;
passkey “1234”;
}# Default settings for HCI devices
device {
name “Asterisk PBX”;
class 0x000100;
iscan enable; pscan enable;
lm accept;
lp rswitch,hold,sniff,park;
}

log

hcid[30784]: Bluetooth HCI daemon
hcid[30784]: Enabling debug information
hcid[30784]: HCI dev 0 registered
hcid[30784]: HCI dev 0 already up
hcid[30784]: Device hci0 has been added
hcid[30784]: Starting security manager 0
hcid[30784]: Device hci0 has been activated
hcid[30784]: Starting SDP server
hcid[30784]: Adding rec : 0x8081998
hcid[30784]: with handle : 0x1
hcid[30784]: Adding rec : 0x8081d18
hcid[30784]: with handle : 0x0
hcid[30784]: Service classes 0x00
hcid[30784]: Created local server at unix:abstract=/var/run/dbus-E0u4d2HN6B,guid=f0b2d2d4f5d893b67b9cf10047e10945
hcid[30784]: child 30785 exited
hcid[30784]: child 30786 exited
hcid[30784]: Service register request
hcid[30784]: Look ahead attr id : 1
hcid[30784]: Extract PDU, sequenceLength: 109 localExtractedLength: 0
hcid[30784]: DTD of attrId : 9 Attr id : 0x1
hcid[30784]: Attr id : 0x1 attrValueLength : 12
hcid[30784]: Extract PDU, seqLength: 109 localExtractedLength: 15
hcid[30784]: Extract PDU, sequenceLength: 109 localExtractedLength: 15
hcid[30784]: DTD of attrId : 9 Attr id : 0x3
hcid[30784]: Attr id : 0x3 attrValueLength : 17
hcid[30784]: Extract PDU, seqLength: 109 localExtractedLength: 35
hcid[30784]: Extract PDU, sequenceLength: 109 localExtractedLength: 35
hcid[30784]: DTD of attrId : 9 Attr id : 0x4
hcid[30784]: Attr id : 0x4 attrValueLength : 14
hcid[30784]: Extract PDU, seqLength: 109 localExtractedLength: 52
hcid[30784]: Extract PDU, sequenceLength: 109 localExtractedLength: 52
hcid[30784]: DTD of attrId : 9 Attr id : 0x5
hcid[30784]: Attr id : 0x5 attrValueLength : 5
hcid[30784]: Extract PDU, seqLength: 109 localExtractedLength: 60
hcid[30784]: Extract PDU, sequenceLength: 109 localExtractedLength: 60
hcid[30784]: DTD of attrId : 9 Attr id : 0x100
hcid[30784]: Attr id : 0x100 attrValueLength : 15
hcid[30784]: Extract PDU, seqLength: 109 localExtractedLength: 78
hcid[30784]: Extract PDU, sequenceLength: 109 localExtractedLength: 78
hcid[30784]: DTD of attrId : 9 Attr id : 0x101
hcid[30784]: Attr id : 0x101 attrValueLength : 15
hcid[30784]: Extract PDU, seqLength: 109 localExtractedLength: 96
hcid[30784]: Extract PDU, sequenceLength: 109 localExtractedLength: 96
hcid[30784]: DTD of attrId : 9 Attr id : 0x102
hcid[30784]: Attr id : 0x102 attrValueLength : 10
hcid[30784]: Extract PDU, seqLength: 109 localExtractedLength: 109
hcid[30784]: Successful extracting of Svc Rec attributes
hcid[30784]: Couldn’t find record for : 0x10000
hcid[30784]: Adding rec : 0x80820c8
hcid[30784]: with handle : 0x10000
hcid[30784]: Service classes 0x00
hcid[30784]: Sending rsp. status 0
hcid[30784]: Bytes Sent : 9

root@core:/kituri/bluetooth# hciconfig
hci0: Type: USB
BD Address: 00:0B:0D:0A:E5:57 ACL MTU: 120:20 SCO MTU: 0:0
UP RUNNING PSCAN
RX bytes:14982 acl:16 sco:0 events:394 errors:0
TX bytes:4463 acl:14 sco:0 commands:293 errors:0

root@core:/kituri/bluetooth# hcitool scan
Scanning …
00:12:37:F2:71:BD Nemesis
root@core:/kituri/bluetooth#

Asterisk

== Parsing ‘/etc/asterisk/mobile.conf’: == Found
== Registered application ‘MobileStatus’
== Registered application ‘MobileSendSMS’
== Registered channel type ‘Mobile’ (Bluetooth Mobile Device Channel Driver)
chan_mobile.so => (Bluetooth Mobile Device Channel Driver)

*CLI> mobile search
Address Name Usable Type Port

“mobile search” find nothing… and I have no more prompt (*CLI>)

It’s seems that after reboot, the command search mobile is working…