佐藤です。
AsteriskのAoRについて教えてください。
AoR(Address Of Records)について
1, 用途
のAoRのところを読んでもピンとこないのですが、なんのために必要なのでしょうか?
2, max_contactsなしのaor
上記URLをみると、例にmax_contactsなしのaorの定義があるのですが、
このような記述をすると次のようなエラーがでるようです。
現状は、max_contacts必須ということで良いのでしょうか?
[6001]
type=aor
[Jun 7 19:09:06] WARNING[14471]: res_pjsip_registrar.c:740 registrar_on_rx_request: AOR '41' has no configured max_contacts. Endpoint '41' unable to register
3, aorの共有
このURLにある、ER図ではAoRは一つのエンドポイントで複数のAoRを利用可能のようですが、
この共有というのはどういう意味でしょうか?
こういうことかと思ったのですが、実際やってみたらエラーになりました。
[Jun 7 19:30:50] WARNING[14688]: res_pjsip_registrar.c:732 registrar_on_rx_request: AOR '41' not found for endpoint '41'
[share_aors]
type = aor
max_contacts = 100
[6001]
type = endpoint
transport = simpletrans
context = internal
disallow = all
allow = ulaw
aors = share_aors ; <-- これ
auth = auth6001
[6002]
type = endpoint
transport = simpletrans
context = internal
disallow = all
allow = ulaw
aors = share_aors ; <- これ
auth = auth6002
4, max_contacts = 1でX-Liteで接続した場合
次のような設定で、X-Lite 4.9.4(Mac版)から接続をすると
[41]
type = aor
max_contacts = 1
次のようなエラーが発生します。
[Jun 7 19:32:31] WARNING[14789]: res_pjsip_registrar.c:474 rx_task_core: Registration attempt from endpoint '41' to AOR '41' will exceed max contacts of 1
pjsip show endpoints
Endpoint: 41 Not in use 0 of inf
InAuth: auth_41/41
Aor: 41 1
Contact: 41/sip:4...@192.0.2.1:62338;rinstance=1a 6e23c9e330 Created 0.000
Asterisk側で強制的に切断?することはできるのでしょうか?
環境
OS: CentOS6
Asterisk: 13.9.1
[41]
type = endpoint
transport=transport-udp-nat
context=arch
disallow=all
allow=ulaw
aors=41
;aors=share_aor
auth=auth_41
[41]
type = aor
max_contacts = 1
[auth_41]
type=auth
auth_type=userpass
password=xxxxx
username=41
[share_aor]
type = aor
max_contacts = 100
その他
ブラウザを使って、Googleグループから投稿しているのですが、書式なし(プレインテキスト)で
記事を投稿することは可能なんでしょうか?
よろしくお願いします。