; ; cellphone.conf ; [general] interval=60 ; Number of seconds between trying to connect to devices. ; 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 'cell search' to discover devices. ; Use the CLI command 'cell show devices' to see device status. ; ; To place out through a cell phone use Dial(CELL/[device]/NNN.....) in your dialplan. ; To call a headset use Dial(CELL/[device]). ; ; to detect services use asterisk CLI: cell search ; - cfg_asterisk bluetooth start asterisk_pin headset_pin ; - /var/chroot /var/asterisk14 asterisk -cvvv ; - cell search (if the command returns immediately it has to be called again a few times) ; - cellphone and headset have to be visible (=pairing mode in case of headset) ; - copy the bluetooth addresses + rfcomm ports displayed by cell search into cellphone.conf : - quit asterisk ('stop now') ; - use the cellphone'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 (hconfig -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_cellphone 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