chan_mobileその11 [raspberrypi]
amazonでBTアダプタを購入した。
両方向で音声が聞こえたplanexのBT-Micro3E2Xを選んだ。
hcitoolでアダプタのアドレスを調べると
# hcitool dev
Devices:
hci0 00:1B:DC:05:DE:D0
これって音声のぜんぜん通らないCOREGAのBTUSB01Cと同じメーカーコードだ
チップは同じものか・・・
やはりasteriskでは音声片側通行だった
なんとなくCODECが正常に音声を復元できていないような気もするのですが
行きと帰りと別々に設定する場所なんて無い..
PLANEX Bluetooth Ver3.0+EDR Microサイズ USBアダプタ (Class2/10m) BT-Micro3E2XZ [フラストレーションフリーパッケージ(FFP)]
- 出版社/メーカー: プラネックス
- メディア: Personal Computers
chan_mobileその10 [raspberrypi]
btのアダプタが壊れた。
暑い部屋で連続通電していたから、熱でやられたか。折角両方向がどうにかこうにか聞こえたので追加の実験を行いたかったけれど出来なくなりました。
chan_mobileその9 [raspberrypi]
asterisk/chan_mobileその8 [raspberrypi]
asterisk 光電話に収納 [raspberrypi]
asterisk/IVR [raspberrypi]
昨日までの実験で携帯をasteriskにペアリングすると現状では通常状態での使用ができないので(常に留守電になってしまうから)bluetooth実験はひとまず中止する。
やりたいことは携帯からの通話を携帯で受けて内線に転送することなのでIVRを実験する
と言っても単に高橋隆雄さん(http://itpro.nikkeibp.co.jp/article/COLUMN/20071017/284822/)のをコピーしたら直ぐに動いた
/etc/asterisk/extensions.confに
[default]に下記を追加
;IVR
exten => 1234,1,Goto(ivr-menu,s,1)
[ivr-menu]を新規追加
[ivr-menu]
exten => s,1,Answer()
exten => s,n,Wait(1)
exten => s,n(try-again),Background(vm-enter-num-to-call)
exten => s,n,WaitExten(30)
exten => s,n,Hangup
exten => i,1,Playback(pbx-invalid)
exten => i,n,Goto(s,try-again)
exten => 2001,1,Dial(SIP/2001)
exten => 2002,1,Dial(SIP/2002)
asterisk/chan_mobileその7 [raspberrypi]
asterisk [raspberrypi]
chan_mobileその6 [raspberrypi]
なんとかCLIでmobile searchとmobile show deviceが動くようになった
次はsipとextensionの設定かな
(未だerror出ているのが気にかかるのですが)
root@raspberrypi:~# /etc/init.d/asterisk stop
[ ok ] Stopping Asterisk PBX: asterisk.
root@raspberrypi:~# asterisk -vvvvvvgc
Unable to access the running directory (Permission denied). Changing to '/' for compatibility.Asterisk 11.5.0-rc2, Copyright (C) 1999 - 2012 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.
=========================================================================
Running as user 'asterisk'
Running under group 'asterisk'
中略
== Parsing '/etc/asterisk/chan_mobile.conf': Found
[Jul 25 10:04:39] ERROR[2485]: chan_mobile.c:4137 mbl_load_adapter: Skipping adapter. Missing id or address settings.
== Registered channel type 'Mobile' (Bluetooth Mobile Device Channel Driver)
== Registered application 'MobileStatus'
== Registered application 'MobileSendSMS'
chan_mobile.so => (Bluetooth Mobile Device Channel Driver)
後略
Asterisk Ready.
== Parsing '/etc/asterisk/cli.conf': Found
*CLI>
*CLI> core show help
前略
mobile cusd Send CUSD commands to the mobile
mobile rfcomm Send commands to the rfcomm port for debugging
mobile search Search for Bluetooth Cell / Mobile devices
mobile show devices Show Bluetooth Cell / Mobile devices
後略
*CLI>
*CLI>core stop gracefully
oot@raspberrypi:~# /etc/init.d/asterisk start
[ ok ] Starting Asterisk PBX: asterisk.
root@raspberrypi:~# asterisk -vvvvcr
Asterisk 11.5.0-rc2, Copyright (C) 1999 - 2012 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.
=========================================================================
Running as user 'asterisk'
Running under group 'asterisk'
Connected to Asterisk 11.5.0-rc2 currently running on raspberrypi (pid = 2629)
raspberrypi*CLI>
raspberrypi*CLI> mobile search
Address Name Usable Type Port
00:18:AF:FB:A8:63 709SC Yes Phone 2
raspberrypi*CLI> mobile show devices
ID Address Group Adapter Connected State SMS
709SC 00:18:AF:FB:A8:63 0 blue No None Yes
raspberrypi*CLI>