カテゴリー: asterisk

CentOS7 asterisk インストール

#!/bin/bash

yum -y update
yum install -y dnf-plugins-core

yum install -y wget gcc gcc-c++ make bzip2 patch libedit-devel uuid-devel libuuid-devel libxml2-devel sqlite sqlite-devel nano openssl openssl-devel
yum install -y libxml2 libxml2-devel openssl-devel ncurses-devel sqlite-devel newt-devel libuuid-devel uuid-devel libedit-devel
yum install -y json-c json-c-devel

cd /usr/src/
wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz
tar -xzf asterisk-18*
cd asterisk-18.*

contrib/scripts/install_prereq install
./configure –with-jansson-bundled

make menuselect
make
make all
make install
make samples
make config

systemctl start asterisk
systemctl enable asterisk

asterisk -crvvvvvvvvvv

 

asterisk-gui を使って、他のasteriskにつなげてみたがうまくいかない

asterisk-gui を使って、他のasteriskにつなげてみたが内線番号が表示されないので、extensions.conf をしげしげ眺めてみると、[macro-trunkdial-failover-0.3]マクロを直せばよいと分かった。

直す場所は、5行目の下の場所

exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})})

これを、↓のように直す。

exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?${CID_${ARG3}}:${CALLERID(num)}<${GLOBAL_OUTBOUNDCID}>)})

なにか違うようなきがするが、これでできた。

あ~~つかれた。

全自動マージャン卓
10万円未満で買える
折りたたんで収納


会社に1台

AMAZON