I've been failing to get chan_mobile working, so am looking to the experts to help :o) I have followed this guide - http://www.voipphreak.ca/2008/10/30/installing-and-configuring-chan_mobile-for-bluetooth-presence-support-in-asterisk-16/ and this guide - http://www.geek-pages.com/articles/asterisk/howto_build_and_configure_chan_mobile_on_trixbox.html and tried hybrids of the two which is dangerous! ;o) When I pair my phone to my asterisk server, I see no adverstised bluetooth services (such as headset etc.), is that correct? Asterisk (every 30 seconds ish) reports - -- Bluetooth Device PersX1 has connected. -- Bluetooth Device PersX1 has disconnected, reason (104). Also, when I run "mobile search" from the CLI, I get mismatched MAC's agains phones (e.g. the MACs and phones swap?!) - *CLI> mobile search Address Name Usable Type Port -- Bluetooth Device PersX1 has connected. -- Bluetooth Device PersX1 has disconnected, reason (104). 00:17:83:16:DD:85 Ray(Work) No Headset 0 00:1C:CC:63:15:DD Ray pers No Headset 0 00:23:45:32:78:57 BlackBerry PMWork 8310 Yes Headset 1 00:16:41:63:3C:5C Ray pers No Headset 0 00:1D:F6:C6:C1:77 BTG209604 No Headset 0 *CLI> mobile search Address Name Usable Type Port -- Bluetooth Device PersX1 has connected. -- Bluetooth Device PersX1 has disconnected, reason (104). 00:16:41:63:3C:5C BTG209604 No Headset 0 00:23:45:32:78:57 Ray pers Yes Headset 1 00:17:83:16:DD:85 Ray pers No Headset 0 00:1C:CC:63:15:DD Ray(Work) No Headset 0 00:1D:F6:C6:C1:77 BlackBerry PMWork 8310 No Headset 0 *CLI> Apparently my dongle is fully supported, lsusb -v yields - Bus 002 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 224 Wireless bDeviceSubClass 1 Radio Frequency bDeviceProtocol 1 Bluetooth bMaxPacketSize0 64 idVendor 0x0a12 Cambridge Silicon Radio, Ltd idProduct 0x0001 Bluetooth Dongle (HCI mode) bcdDevice 31.64 iManufacturer 0 iProduct 0 iSerial 0 bNumConfigurations 1 My /etc/bluetooth/hcid.conf is as follows - # HCId options options { autoinit yes; security auto; pairing multi; passkey "0202"; } device { name "AstTest"; class 0x3e0100; iscan enable; pscan enable; discovto 0; lm accept; lp rswitch,hold,sniff,park; } options { autoinit yes; security auto; pairing multi; pin_helper /etc/bluetooth/pin; } My /etc/asterisk/mobile.conf is as follows - [general] interval=30 ; Number of seconds between trying to connect to devices. ; The following is a list of adapters we use. ; id must be unique and address is the bdaddr of the adapter from hciconfig. ; Each adapter may only have one device (headset or phone) connected at a time. ; Add an [adapter] entry for each adapter you have. [adapter] id=blue address=00:10:60:D0:EC:66 ;forcemaster=yes ; attempt to force adapter into master mode. default is no. ;alignmentdetection=yes ; enable this if you sometimes get 'white noise' on asterisk side of the call ; its a bug in the bluetooth adapter firmware, enabling this will compensate for it. ; default is no. [PersX1] address=00:23:45:32:78:57 ; the address of the phone port=2 ; the rfcomm port number (from mobile search) context=incoming-mobile ; dialplan context for incoming calls adapter=blue ; adapter to use group=1 ; this phone is in channel group 1 ;nocallsetup=yes ; set this only if your phone reports that it supports call progress notification, but does not do it. Motorola L6 for example. Help! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090705/48f085c2/attachment.htm
I had loads of issues when trying i on trix, but the same procedure worked like a charm with elastix. On Sun, Jul 5, 2009 at 7:09 PM, Razza <razza30 at gmail.com> wrote:> I've been failing to get chan_mobile working, so am looking to the experts > to help :o) > > I have followed this guide - > http://www.voipphreak.ca/2008/10/30/installing-and-configuring-chan_mobile-for-bluetooth-presence-support-in-asterisk-16/ > and this guide - > http://www.geek-pages.com/articles/asterisk/howto_build_and_configure_chan_mobile_on_trixbox.html > and tried hybrids of the two which is dangerous! ;o) > > When I pair my phone to my asterisk server, I see no adverstised > bluetooth services (such as headset etc.), is that correct? > > Asterisk (every 30 seconds ish) reports - > -- Bluetooth Device PersX1 has connected. > -- Bluetooth Device PersX1 has disconnected, reason (104). > > Also, when I run "mobile search" from the CLI, I get mismatched MAC's > agains phones (e.g. the MACs and phones swap?!) - > *CLI> mobile search > Address Name Usable Type Port > -- Bluetooth Device PersX1 has connected. > -- Bluetooth Device PersX1 has disconnected, reason (104). > 00:17:83:16:DD:85 Ray(Work) No Headset 0 > 00:1C:CC:63:15:DD Ray pers No Headset 0 > 00:23:45:32:78:57 BlackBerry PMWork 8310 Yes Headset 1 > 00:16:41:63:3C:5C Ray pers No Headset 0 > 00:1D:F6:C6:C1:77 BTG209604 No Headset 0 > *CLI> mobile search > Address Name Usable Type Port > -- Bluetooth Device PersX1 has connected. > -- Bluetooth Device PersX1 has disconnected, reason (104). > 00:16:41:63:3C:5C BTG209604 No Headset 0 > 00:23:45:32:78:57 Ray pers Yes Headset 1 > 00:17:83:16:DD:85 Ray pers No Headset 0 > 00:1C:CC:63:15:DD Ray(Work) No Headset 0 > 00:1D:F6:C6:C1:77 BlackBerry PMWork 8310 No Headset 0 > *CLI> > > Apparently my dongle is fully supported, lsusb -v yields - > Bus 002 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth > Dongle (HCI mode) > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 2.00 > bDeviceClass 224 Wireless > bDeviceSubClass 1 Radio Frequency > bDeviceProtocol 1 Bluetooth > bMaxPacketSize0 64 > idVendor 0x0a12 Cambridge Silicon Radio, Ltd > idProduct 0x0001 Bluetooth Dongle (HCI mode) > bcdDevice 31.64 > iManufacturer 0 > iProduct 0 > iSerial 0 > bNumConfigurations 1 > > My /etc/bluetooth/hcid.conf is as follows - > # HCId options > options { > autoinit yes; > security auto; > pairing multi; > passkey "0202"; > } > device { > name "AstTest"; > class 0x3e0100; > iscan enable; pscan enable; > discovto 0; > lm accept; > lp rswitch,hold,sniff,park; > } > options { > autoinit yes; > security auto; > pairing multi; > pin_helper /etc/bluetooth/pin; > } > > My /etc/asterisk/mobile.conf is as follows - > [general] > interval=30 ; Number of seconds between trying to connect to > devices. > ; The following is a list of adapters we use. > ; id must be unique and address is the bdaddr of the adapter from > hciconfig. > ; Each adapter may only have one device (headset or phone) connected at a > time. > ; Add an [adapter] entry for each adapter you have. > [adapter] > id=blue > address=00:10:60:D0:EC:66 > ;forcemaster=yes ; attempt to force adapter into master mode. > default is no. > ;alignmentdetection=yes ; enable this if you sometimes get 'white noise' on > asterisk side of the call > ; its a bug in the bluetooth adapter firmware, > enabling this will compensate for it. > ; default is no. > [PersX1] > address=00:23:45:32:78:57 ; the address of the phone > port=2 ; the rfcomm port number (from mobile > search) > context=incoming-mobile ; dialplan context for incoming calls > adapter=blue ; adapter to use > group=1 ; this phone is in channel group 1 > ;nocallsetup=yes ; set this only if your phone reports that > it supports call progress notification, but does not do it. Motorola L6 for > example. > > Help! > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090706/88789e27/attachment.htm
Thanks for your response. I gave loads of info in my original mail, surely someone can help without jumping distro? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090706/903f8e43/attachment.htm
Try upgrading your bluez library. You can also try a parallel installation with the last revision of chan_mobile. Use the same phone always to discard any phone issues. On Mon, Jul 6, 2009 at 11:43 AM, Razza <razza30 at gmail.com> wrote:> Thanks for your response. I gave loads of info in my original mail, surely > someone can help without jumping distro? > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090706/84e9bab7/attachment.htm
Could not agree more. I had chan_mobile up and running with an older version of Trix, but never managed to recreate it with the latest versions. Other people I talked to even suggested that it was made on purpose. With elastix the only problem I had was the missing mobile.conf.example, but you can create one from the Trix instructions from scratch or download it from the SVN. On Tue, Jul 7, 2009 at 7:56 PM, Razza <razza30 at gmail.com> wrote:> Seems the only option is to give Elastix a go. > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090707/0bab99f1/attachment.htm