I have done my search and this led to :
chan_mobile is an addon to asterisk the app that helps you use your phone a GSM-VoIP gateway.
chan-dongle is as chan_mobile but allows you to use your phone with bluetooth.
These addons are not available for the openerp addon (or module) asterisk. Is there a way to link openerp module asterisk with the app asterisk ( like an xml-rpc ) or is there any other way to use my phone as a gsm gateway.
答案 0 :(得分:0)
是的。假设您首先使用ubuntu os安装蓝牙驱动程序 apt-get install bluez-utils bluez-hcidump libbluetooth-dev
然后将chan_mobile模块安装到星号,为此转到/ usr / src / asterisk-version
./configure && make menuselect
从应用程序中选择chan_moblie和
make && make install
完成后将手机与星号服务器配对。为此,您的手机可以被发现并扫描
hcitool scan
Scanning ...
XX:XX:XX:XX:XX:XX Myphone
记下MAC地址。为了配对,需要帮助者来处理PIN。在后台运行帮助程序并开始配对过程:
bluetooth-agent 1234 &
rfcomm connect hci0 XX:XX:XX:XX:XX:XX
配对成功后,请确保您的手机配置为将来自动接受此配对的连接。您可以通过运行来验证配对是否正常工作:
hcitool con
Connections:
< ACL XX:XX:XX:XX:XX:XX handle 41 state 1 lm MASTER AUTH ENCRYPT
现在加载星号和加载模块chan_moblie
asterisk -rvvvvvv
module load chan_mobile.so
搜索手机
mobile search
XX:XX:XX:XX:XX:XX Myphone Yes Phone 2
在这种情况下,它是rfcomm频道2.此外,我们需要知道安装在Asterisk服务器中的蓝牙适配器的MAC地址。退出Asterisk CLI并使用hcitool:
hcitool dev
Devices:
hci0 YY:XX:XX:XX:XX:XX
编辑chan_mobile配置文件: nano /etc/asterisk/chan_mobile.conf [适配器] 地址= YY:XX:XX:XX:XX:XX id = asteriskpbx
[Myphone]
address = XX:XX:XX:XX:XX:XX
port = 2
context = from-MySipphone
adapter = asteriskpbx
添加拨号计划
nano /etc/asterisk/extensions.conf
[from-MySipphone]
exten => s,1,Dial(SIP/100)
[my-phones]
exten => *12,1,Dial(MOBILE/Myphone/150)
你完成了......:)