; ; cellphone.conf ; [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:09:DD:60:01:A3 ;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. [adapter] id=dlink address=00:80:C8:35:52:78 ; The following is a list of the devices we deal with. ; Every device listed below will be available for calls in and out of Asterisk. ; Discovered devices not in this list are not available. ; Use the CLI command 'mobile search' to discover devices. ; Use the CLI command 'mobile show devices' to see device status. ; ; To place out through a mobile phone use Dial(Mobile/[device]/NNN.....) in your dialplan. ; To call a headset use Dial(Mobile/[device]). ; ; to detect services use asterisk CLI: mobile search ; - cfg_asterisk bluetooth start asterisk_pin headset_pin ; - /var/chroot /var/asterisk14 asterisk -cvvv ; - mobile search (if the command returns immediately it has to be called again a few times) ; - mobile phone and headset have to be visible (=pairing mode in case of headset) ; - copy the bluetooth addresses + rfcomm ports displayed by mobile search into mobile.conf : - quit asterisk ('stop now') ; - use the mobilephone's pairing function to pair with FritzBox-* (maybe: remove existing pairing) ; - done; start asterisk (pairing information is stored in /var/lib/bluetooth) ; ; without asterisk: ; hcitool, sdptool (hciconfig -a for local usb device) ; (wget http://spblinux.de/fbox.test/26/... ; chmod +x ... ; LD_LIBRARY_PATH=/var/asterisk14/usr/lib ...): ; make devices visible (=pairing mode in case of headsets) and run hcitool scan ; to display technical parameters use hcitool info 00:... ; to display offered services (+used RFCOMM port) use sdptool records 00:... ; and to pair with a headset use hcitool cc 00:... (headset pin in givepin) ; ; You have to start bluetooth with cfg_asterisk bluetooth start 12345 0000 ; else chan_mobile will not load (12345 defines pin of asterisk, 0000 is pin of headphone) [n5200] address=00:12:34:56:78:90 port=13 context=mobile_in ;[blackberry] ;address=00:11:22:33:44:55 ;port=2 ;context=mobile_in [headset] address=00:12:23:34:56:67 port=1 type=headset