SSブログ
cubieboard ブログトップ
前の10件 | -

chan_mobileでわかったこと [cubieboard]


ときどきchan_mobileが無効になることがあるのですがその理由がわかったような気がします。
asterisk以外に色々なソフトをインストールしたりしていますのでapt-get updateやapt-get installするとインストールするものによってはインストール後asteriskのmobileコマンドが無くなる事に気づきました。

そんなときは
./configure
make
make install
make configをおこなってから
asteriskを再起動するとmobileコマンドが復活します。 

もちろんコンパイルは2度目なのでmake menuselectとmake sampleは行いません 


タグ:cubieboard

bluetooth接続できない [cubieboard]

 asteriskとプリペイド携帯101DLとが接続できない

101DLのデバイスのスキャン画面には
cbian-0  ペア設定非接続と表示されているのに、非接続のままで「携帯電話の音声に接続」の表示にならない。
108SHはbluetoothをオンにすれば直ぐにasteriskと接続できるからasteriskの設定が間違っているとは思えないのだが

root@Cubian:~# hcitool scan
Scanning ...
00:16:D4:A5:CC:4E 101DL
root@Cubian:~#
root@Cubian:~# /etc/init.d/bluetooth status
[ ok ] bluetooth is running.
root@Cubian:~#
root@Cubian:~# bluez-simple-agent hci0 00:16:D4:A5:CC:4E
Creating device failed: org.bluez.Error.AlreadyExists: Already Exists
root@Cubian:~#
Already Existsということは、LINUX側はペアリングしていると思えるのだが
ためしに携帯108SHのBTをオンすると
Cubian*CLI> mobile search
Address Name Usable Type Port
00:16:D4:A5:CC:4E 101DL Yes Phone 10
34:F6:2D:8C:18:5D 108SH Yes Phone 5
-- Bluetooth Device 108SH has connected, initializing...
-- Bluetooth Device 108SH initialized and ready.
Cubian*CLI>
なぜ101DLとは接続できないのだ


insservコマンドから文句を言われた(chan_mobileは復活しました) [cubieboard]

asteriskを
configure
make menuselect(chan_mobileを有効有効にする)
make
make install
(make sampleは昔のを使うので実行せず)
make configと行ったら
root@Cubian:/usr/local/src/asterisk-11.12.0# make config
update-rc.d: using dependency based boot sequencing
insserv: script vpnserver.20140709: service vpnserver already provided!
あーそうですかいけないのですかすみませんね。linuxはど素人な者で
ファイルを修正するときはオリジナルをコピーするようにしているのですがこのディレクトリー(/etc/init.d)はダメなのですね
~に移動します。

asteriskを新規に作成したらchan_mobileも復活しました。 


chan-mobile [cubieboard]

金曜日に久しぶりに事務所に顔を出し携帯からのIVRをプレゼンしようと思ったら携帯とasteriskがペアリングしない。
chan_mobileがまた動いていない。
この間でcubieboardの変化はSoftetherVpnをインストールしただけなのだが 
過去にもasteriskのコンパイルした時期により動いたり動かなくなったりしたことがあったからasteriskを再度インストールしてみるか


chan_mobile動いている [cubieboard]

素人がgoogle先生頼りにあーでもない、こうでもないといじっているうちに1ヶ月近くたってしまった。
前回事務所に持って行って電源オンしたときは携帯とasterisk接続できなかったのだがいつの間にか接続できるようになっていた。原因不明

 

 


再度cubieanインストール [cubieboard]

cubieez,cubian(desktop),cubian(text mode),lububtuと入れてみたけれど,asteriskは全てのヴァージョンで動くのだけれどcubian(desktop)しかmobileが満足に動いていない。またこのcubian(desktop)もX関係をいろいろいじってdesktopが満足に動いていないので再インストールすることにする。

最終的の設置場所はモニタの無いところなのでcubian(text mode)をインストールすることにする
(携帯電話とのペアリングはdesktopでペアリングした方が簡単なのですがまあ何とかなるでしょう)

mobileコマンドが動くのと動かないのとのdpkg--listの差がほとんど無いことからapt-getする順番にも関係するかもしれないのでapt-getした順番も記録しておくことにする。またコンパイルする前にパッチを当てていますが、パッチを当てずにコンパイルして様子を見ることにします。

http://download.cubian.org/release/Cubian-base-r5-a20.img.7zをダウンロードして解凍したimgデータをSDに書き込む 

初期状態は
ログインID、パスワード cubie/cubie
SSHポート番号36000

 パスワード変更
cubie@Cubian:~$ passwd
Changing password for cubie.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
cubie@Cubian:~$

IPアドレス固定
cubie@Cubian:~$ sudo pico /etc/network/interfaces
# the loopback interface
auto lo
iface lo inet loopback
#
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.126
netmask 255.255.255.0
gateway 192.168.1.1

cubianは必要ないと文句を言うけれどrootをイネーブルする
cubie@Cubian:~$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
cubie@Cubian:~$

root@Cubian:~# apt-get update
root@Cubian:~# apt-get upgrade
root@Cubian:~# apt-get install cubie-update 

root@Cubian:~# uname -r
3.4.75-sun7i
root@Cubian:~#
 
タイムゾーン設定
root@Cubian:~# dpkg-reconfigure tzdata
(画面からasia.tokyo選択)
 Current default time zone: 'Asia/Tokyo'
Local time is now:      Mon Jun 16 12:06:37 JST 2014.
Universal Time is now:  Mon Jun 16 03:06:37 UTC 2014.

 カーネルアップデート
 root@Cubian:~# cubian-update
*** Performing self-update
*** Cubian updater v1.2.9 http://cubian.org
*** Downloading Firmware/Updates (this may take a while)
*** Updating firmware
*** Updating kernel
*** Updating modules
*** Depmod 3.4.79-sun7i
*** Updating fs
*** Checking updates from server
*** Your firmware is up to date
root@Cubian:~#
root@Cubian:~# uname -r
3.4.79-sun7i
root@Cubian:~#

asteriskコンパイルに必要なパッケージをインストール
apt-get install uuid uuid-dev
apt-get install libncurses5-dev
apt-get install g++
apt-get install libssl1.0.0 libssl-dev
apt-get install libxml2-dev
apt-get install subversion
apt-get install make
apt-get install makedev
apt-get install patch
apt-get install sqlite3 libsqlite3-dev
bluetooth関係
apt-get install bluetooth libbluetooth-dev
apt-get install blueman(デスクトップ無いのだから必要ないかもしれないが念のため入れておく)

 

続きを読む


lubuntuインストール [cubieboard]

cubian-baseにいろいろ追加してみたがchan_mobile動かない
ubuntuでもいれてみるか
http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb-a20-lubuntu-desktop-card-v105.img.gzダウンロードしていつものようにWin32diskimagerでSDカードに書き込み電源オン。cubian-desktopと違いすんなり立ち上がる

ssl-devその他のパッケージインストールしてasteriskインストールするがやはりmobileコマンド動かない
cubieboard2*CLI> mobile show devices
No such command 'mobile show devices' (type 'core show help mobile show' for other possible commands)
cubieboard2*CLI>


cubian(TEXT MODE)インストール [cubieboard]

http://cubian.org/downloads/からCubian-base-r5-a20.img.7zインストールする。baseというだけあってほんとに何も無い
asteriskをコンパイルしようとしたらmakeが無いと怒られた。
いろいろapt-get installしてからasteriskをインストール
Cubian*CLI> mobile show devices
No such command 'mobile show devices' (type 'core show help mobile show' for other possible commands)
Cubian*CLI>
あーあ mobileコマンド動かない
 
Cubian-base-r5-a20.img.7zにパッケージを追加してmobileコマンド動くようにするかCubian-desktop-r1-a20.img.7zから初期設定の部分を削除するか・・・linuxを良く知らない私にはdpkgリストの差分を取って追加していくほうが楽かな 
 
 

cubian(desktop)インストール [cubieboard]

cubian(desktop)をインストールする
http://cubian.org/downloads/にあるリンクからCubian-desktop-r1-a20.img.7zをSDカードに書き込みインストールする。その後asteriskをインストール
おお!mobileコマンドも正常に作動する
Cubian*CLI> mobile show devices
ID              Address           Group Adapter         Connected State      SMS
108SH           34:F6:2D:8C:18:5D 1     corega          Yes       Free       No
Cubian*CLI>
ただ問題はDELLのモニタと相性が悪く画面がぜんぜん立ち上がらない。 CUBEEZではぜんっぜん問題が起こらなかったのに
使い物にならない
明日はCUIのDEBIANをインストールしてみよう。 

sipコマンドが無い理由がわかった [cubieboard]

./configureの表示を見ていたら
root@cubieez:/usr/local/src/asterisk-11.10.0# ./configure
前略
checking for AES_encrypt in -lcrypto... no
checking for srtp_init in -lsrtp... no
checking for srtp_shutdown in -lsrtp... no
checking for GMIME... no
後略

ラズベリーパイは

前略
checking for AES_encrypt in -lcrypto... yes
checking openssl/aes.h usability... yes
checking openssl/aes.h presence... yes
checking for openssl/aes.h... yes
checking for SSL_connect in -lssl... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking osp/osp.h usability... no
checking osp/osp.h presence... no
checking for osp/osp.h... no
checking for SSL_CTX_set_tlsext_use_srtp in -lssl... yes
checking for openssl/ssl.h... (cached) yes
checking for srtp_init in -lsrtp... no
checking for srtp_shutdown in -lsrtp... no
後略
lcryptoが関係しているようなので

apt-cache search cryptoして出てきたパッケージから大元らしい名前のlibssl-devをインストールした

おお!
sipコマンドも復活したし、3cxphoneからレジストできた

ああ!
でもmobileコマンドが無い やはりcubianを試してみるか 

 


前の10件 | - cubieboard ブログトップ

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。