Edito
Voila voila, je refais mon infra…
Et j'ai donc envie de participer a une oeuvre commune :
Antoine.
Pub
Désolé de vous incommoder avec cela, c'est un mal aujourd'hui nécessaire. Je le souhaite juste utile, on verra.
Ceci est une ancienne révision du document !
Pour le moment, ca n'est pas mis en oeuvre: donc juste de la doc libre
Probleme:
Solutions
Interets de cette solutions
apt-get install asterisk-mobile
apt-get install bluetooth bluez bluez-alsa
DisablePlugins = network,input,pnat,halCela permet de “corriger un bug” que l'on retrouve dans ces points là
Pour information : il faut autant de dongle BT/USB qu'il y a de telephonne a enregistrer sur l'Asterisk....
root@harald:/etc/bluetooth# hcitool scan Scanning ... 00:25:00:00:00:00 adlp@taffe root@harald:/etc/bluetooth#
root@harald:/etc/asterisk# /usr/share/doc/bluez/examples/simple-agent hci1 00:25:00:00:00:00 RequestPinCode (/org/bluez/577/hci1/dev_00_25_00_00_00_00) Enter PIN Code: 0000 Release New device (/org/bluez/577/hci1/dev_00_25_00_00_00_00)
root@harald:~/BT# sdptool browse 00:25:00:00:00:00 Browsing 00:25:00:00:00:00 ... Service Name: Network Access Point Service Service Description: Personal Ad-hoc Network Service which provides access to a network Service RecHandle: 0x10000 Service Class ID List: "Network Access Point" (0x1116) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 15 "BNEP" (0x000f) Version: 0x0100 SEQ8: dd 6 Language Base Attr List: code_ISO639: 0x656e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Network Access Point" (0x1116) Version: 0x0100
root@harald:~/BT# hcitool dev Devices: hci0 00:11:00:00:00:00
root@harald:/etc/asterisk# cat mobile.conf [general] interval=10 ; 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=apm0 address=00:11:00:00:00:00 ;;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. [adlp-gs] address=FC:00:00:00:00:01 port=10 context=in-gsm adapter=apm0 [adlp-taffe] address=00:25:00:00:00:00 port=12 context=in-gsm adapter=apm0 ;[NOKIA6630] ;address=00:11:9F:BE:79:60 ; the address of the phone ;port=28 ; 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 ;;sms=no ; support SMS, defaults to yes ;;nocallsetup=yes ; set this only if your phone reports that it supports call progress notification, but does not do it. Motorola L6 for example.
root@harald:~# asterisk -rfccccccvvvvvvvvggggg Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on harald (pid = 569) Verbosity was 0 and is now 8 harald*CLI> mo mobile module harald*CLI> mobile show devices ID Address Group Adapter Connected State SMS adlp-gs FC:00:00:00:00:00 0 apm0 Yes Free No