「Asterisk pjsip trunk basix」の版間の差分

提供: VoIP-Info.jp
移動先: 案内検索
(トランク)
 
(同じ利用者による、間の7版が非表示)
1行目: 1行目:
とりあえず。以下の設定で発着信可能。ただし'''s'''着信する(/番号の書き方がわからない)ので挙動注意。
+
[[カテゴリ:Asterisk]]
 +
[[カテゴリ:Pjsip]]
 +
[[カテゴリ:ITSP]]
 +
2018/11/1以下の設定でレジ、発着信OK<br>
 
==トランク==
 
==トランク==
 
  ;トランク設定(Brastel BASIX)
 
  ;トランク設定(Brastel BASIX)
6行目: 9行目:
 
  [basix1]
 
  [basix1]
 
  type = aor
 
  type = aor
  contact = sip:050XXXXXXXX@asterisk.basix.ne.jp
+
  contact = sip:basix-proxy.brastel.ne.jp
 
  qualify_frequency = 30
 
  qualify_frequency = 30
 
  authenticate_qualify = no
 
  authenticate_qualify = no
 +
 +
[basix1]
 +
type = identify
 +
endpoint = basix1
 +
match = basix-proxy.brastel.ne.jp
 
   
 
   
 
  [basix1]
 
  [basix1]
15行目: 23行目:
 
  username = ユーザ名
 
  username = ユーザ名
 
  password = パスワード
 
  password = パスワード
realm = asterisk.basix.ne.jp
 
 
[basix1]
 
type = identify
 
endpoint = basix1
 
match = basix-proxy.brastel.ne.jp
 
 
   
 
   
 
  [basix1]
 
  [basix1]
26行目: 28行目:
 
  transport = transport-udp
 
  transport = transport-udp
 
  outbound_auth = basix1
 
  outbound_auth = basix1
 +
contact_user = 050XXXXXXXX    <---自分の050番号
 
  server_uri = sip:asterisk.basix.ne.jp
 
  server_uri = sip:asterisk.basix.ne.jp
 
  client_uri = sip:ユーザ名@asterisk.basix.ne.jp
 
  client_uri = sip:ユーザ名@asterisk.basix.ne.jp
outbound_proxy = sip:basix-proxy.brastel.ne.jp
 
 
  retry_interval = 60
 
  retry_interval = 60
 
   
 
   
 
  [basix1]
 
  [basix1]
 
  type = endpoint
 
  type = endpoint
 +
transport = transport-udp
 
  context = from-basix1
 
  context = from-basix1
 
  dtmf_mode = inband
 
  dtmf_mode = inband
41行目: 44行目:
 
  inband_progress = yes
 
  inband_progress = yes
 
  from_user = ユーザ名
 
  from_user = ユーザ名
  from_domain = asterisk.brastel.ne.jp
+
  from_domain = asterisk.basix.ne.jp
 
  language = ja
 
  language = ja
 
  outbound_auth = basix1
 
  outbound_auth = basix1
52行目: 55行目:
 
  deny=0.0.0.0/0.0.0.0
 
  deny=0.0.0.0/0.0.0.0
 
  permit=basixのIPアドレス(やればすぐわかる)
 
  permit=basixのIPアドレス(やればすぐわかる)
acl.confに
+
 
[basix]
 
deny=0.0.0.0/0.0.0.0
 
permit=basixのIPアドレス
 
 
==extensions.conf==
 
==extensions.conf==
 
  [from-basix]
 
  [from-basix]
  exten => s,1,Dial(....
+
  exten => 050XXXXXXXX,1,Dial(....   <--自分の050番号に着信させる

2018年11月1日 (木) 13:47時点における最新版

2018/11/1以下の設定でレジ、発着信OK

トランク

;トランク設定(Brastel BASIX)
;

[basix1]
type = aor
contact = sip:basix-proxy.brastel.ne.jp
qualify_frequency = 30
authenticate_qualify = no

[basix1]
type = identify
endpoint = basix1
match = basix-proxy.brastel.ne.jp

[basix1]
type = auth
auth_type = userpass
username = ユーザ名
password = パスワード

[basix1]
type = registration
transport = transport-udp
outbound_auth = basix1
contact_user = 050XXXXXXXX    <---自分の050番号
server_uri = sip:asterisk.basix.ne.jp
client_uri = sip:ユーザ名@asterisk.basix.ne.jp
retry_interval = 60

[basix1]
type = endpoint
transport = transport-udp
context = from-basix1
dtmf_mode = inband
disallow = all
allow = ulaw
direct_media = no
send_pai = yes
inband_progress = yes
from_user = ユーザ名
from_domain = asterisk.basix.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アドレス(やればすぐわかる)

extensions.conf

[from-basix]
exten => 050XXXXXXXX,1,Dial(....    <--自分の050番号に着信させる