「Asterisk pjsip trunk intra」の版間の差分
提供: VoIP-Info.jp
(ページの作成:「拠点間をAsteriskのSIPで接続します。拠点はIPアドレス固定でレジスタ無しで通信します。想定は以下の通り。 [池袋]-------------...」) |
|||
4行目: | 4行目: | ||
192.168.100.1 192.168.100.2 | 192.168.100.1 192.168.100.2 | ||
SIP Port=5070 SIP Port=5070 | SIP Port=5070 SIP Port=5070 | ||
+ | ==池袋側== | ||
+ | 基本:AOR,Endpointとして板橋を定義します。板橋側からの接続の認証を受け入れるためにAuthを、板橋への接続のためのOutbound_authを書きます。 | ||
+ | [itabashi] | ||
+ | type = aor | ||
+ | contact = sip:192.168.100.2:5070 | ||
+ | qualify_frequency = 30 | ||
+ | authenticate_qualify = no | ||
+ | |||
+ | [itabashi] | ||
+ | type = identify | ||
+ | endpoint = itabashi | ||
+ | match = 192.168.100.2 | ||
+ | |||
+ | ;外からの接続を受け入れるためのauth | ||
+ | [ikebukuro] | ||
+ | type = auth | ||
+ | auth_type = userpass | ||
+ | username = ikebukuro | ||
+ | password = ikepass | ||
+ | |||
+ | ;板橋側に認証してもらうためのauth(endpointのoutbound_auth) | ||
+ | [itabashi] | ||
+ | type = auth | ||
+ | auth_type = userpass | ||
+ | username = itabashi | ||
+ | password = itapass | ||
+ | |||
+ | ;板橋のendpointを定義 | ||
+ | [itabashi] | ||
+ | type = endpoint | ||
+ | context = intra-incoming | ||
+ | disallow = all | ||
+ | allow = ulaw | ||
+ | rtp_symmetric = yes | ||
+ | force_rport = yes | ||
+ | rewrite_contact = yes | ||
+ | direct_media = no | ||
+ | send_pai = yes | ||
+ | inband_progress = yes | ||
+ | language = ja | ||
+ | auth = ikebukuro | ||
+ | outbound_auth = itabashi | ||
+ | aors = itabashi |
2018年10月30日 (火) 12:08時点における版
拠点間をAsteriskのSIPで接続します。拠点はIPアドレス固定でレジスタ無しで通信します。想定は以下の通り。
[池袋]---------------------------[板橋] 192.168.100.1 192.168.100.2 SIP Port=5070 SIP Port=5070
池袋側
基本:AOR,Endpointとして板橋を定義します。板橋側からの接続の認証を受け入れるためにAuthを、板橋への接続のためのOutbound_authを書きます。
[itabashi] type = aor contact = sip:192.168.100.2:5070 qualify_frequency = 30 authenticate_qualify = no [itabashi] type = identify endpoint = itabashi match = 192.168.100.2 ;外からの接続を受け入れるためのauth [ikebukuro] type = auth auth_type = userpass username = ikebukuro password = ikepass ;板橋側に認証してもらうためのauth(endpointのoutbound_auth) [itabashi] type = auth auth_type = userpass username = itabashi password = itapass ;板橋のendpointを定義 [itabashi] type = endpoint context = intra-incoming disallow = all allow = ulaw rtp_symmetric = yes force_rport = yes rewrite_contact = yes direct_media = no send_pai = yes inband_progress = yes language = ja auth = ikebukuro outbound_auth = itabashi aors = itabashi