「Asterisk pjsip trunk basix」の版間の差分
提供: VoIP-Info.jp
(→トランク) |
|||
45行目: | 45行目: | ||
outbound_auth = basix1 | outbound_auth = basix1 | ||
aors = basix1 | aors = basix1 | ||
− | + | ||
==ACL== | ==ACL== | ||
PjSIPのACLに | PjSIPのACLに |
2018年10月29日 (月) 12:25時点における版
とりあえず。以下の設定で発着信可能。ただしs着信する(/番号の書き方がわからない)ので挙動注意。
トランク
;トランク設定(Brastel BASIX) ; [basix1] type = aor contact = sip:050XXXXXXXX@asterisk.basix.ne.jp qualify_frequency = 30 authenticate_qualify = no [basix1] type = auth auth_type = userpass username = ユーザ名 password = パスワード realm = asterisk.basix.ne.jp [basix1] type = identify endpoint = basix1 match = basix-proxy.brastel.ne.jp [basix1] type = registration transport = transport-udp outbound_auth = basix1 server_uri = sip:asterisk.basix.ne.jp client_uri = sip:ユーザ名@asterisk.basix.ne.jp outbound_proxy = sip:basix-proxy.brastel.ne.jp retry_interval = 60 [basix1] type = endpoint context = from-basix1 dtmf_mode = inband disallow = all allow = ulaw direct_media = no send_pai = yes inband_progress = yes from_user = ユーザ名 from_domain = asterisk.brastel.ne.jp language = ja outbound_auth = basix1 aors = basix1
ACL
PjSIPのACLに
[acl] type=acl deny=0.0.0.0/0.0.0.0 permit=basixのIPアドレス(やればすぐわかる)
acl.confに
[basix] deny=0.0.0.0/0.0.0.0 permit=basixのIPアドレス
extensions.conf
[from-basix] exten => s,1,Dial(....