匿名

差分

Asterisk+Radio

1,530 バイト追加, 金曜日 11:09
WIP
簡単ですね。
==まとめる==
ここまでの作業をまとめて無線レピータをつくります。Raspberry Pi(3b+)の場合ですが
*オンボードのオーディオデバイスを全て無効化しRigiRigだけ使うようにする
*pjsuaをコンパイルし、/usr/local/bin/pjsua とする
*pjsuaの設定ファイルを /usr/local/etc/pjsua.conf とする
*PTT制御プログラムをコンパイルし /usr/loca/bin/pttctl とする
*PTTをネットワークから制御するため netrwを入れ、シェルスクリプトを /usr/local/etc/netptt.sh とする
以上を行い、/etc/rc.local に以下を書いて再起動しても無線レピータとして動くようにします。
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
nohup /usr/local/bin/pttctl > /dev/null 2>&1 &
nohup /usr/local/etc/netptt.sh > /dev/null 2>&1 &
screen -dmS pjsua /usr/local/bin/pjsua --config-file /usr/local/etc/pjsua.conf &
exit 0
pjsuaはttyから切り離されたがらないのでscreenでバックグラウンド起動させます。<br>
これで無線レピータ、要するにSIPを喋る無線機アダプタのできあがりです。
=WIP=