アスタリスクの設定 - 新規
以下では、VonageのSIPサービスを次のように使用するための設定例を示します。 アスタリスク.
Asterisk設定のダウンロード
- まず SIPトランキングウィザードあるいは、マニュアル設定からビルドすることもできる。
- 完了すると、Asteriskコンフィグをダウンロードするボタンが表示されます (
PJSIP). - ステップ1でセットアップしたSIPトランクのコンフィグから関連するパラメータを引き出したAsteriskコンフィグが返されます。
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[vonage]
type = endpoint
aors = vonage
outbound_auth = vonage-auth
context = inbound
transport=transport-udp
allow=alaw
allow=ulaw
allow=g729
allow=iLBC
allow=g722
allow=speex16
from_user= <Vonage LVN(447469186226> (If customer only has 1 number then allocate this here)
[vonage]
type = aor
contact = sip:asterisk.sip-eu.vonage.com - SIP Domain as created in trunk dashboard
qualify_frequency = 120
[vonage-auth]
type = auth
auth_type = userpass
username = robcornes - UserKey from trunk config
password = SecretSecret24 - Secret from trunk config
[vonage-reg]
type = registration
outbound_auth = vonage-auth
server_uri = sip:asterisk.sip-eu.vonage.com - SIP Domain as created in trunk dashboard
client_uri = sip:asterisk.sip-eu.vonage.com - SIP Domain as created in trunk dashboard
[vonage-identify]
type = identify
endpoint = vonage
match=5.10.112.122
match=5.10.112.121
match=119.81.44.6
match=119.81.44.7
match=169.60.141.29
match=169.60.141.30
match=169.48.36.56
match=169.55.62.70
match=81.157.184.166
match=216.147.0.0/18
Asteriskコンフィギュレーションのインストール
コンフィグがダウンロードされたら
- にコンフィグを挿入する。
pjsip.confまたはカスタム設定ファイル。 - Asteriskの設定を再読み込みする - Asteriskのコマンドラインからのコマンドは次のとおりです。
pjsip reload. - Vonageエンドポイントにコールをルーティングするダイヤルプランを作成します。
- ダイヤルプランを再読み込みします。
- テスト電話をかける。