VOIPの設定メモです。
FXSとルータを接続した時の設定例です。
■検証環境
・自分側
電話番号:100
電話のつながっているポート:1/0/0
ルータのIPアドレス:10.1.1.1
・相手側
電話番号:200
電話のつながっているポート:1/0/0
IPアドレス:10.1.1.2
■設定例:
・自分の電話のための設定
(config)# dial-peer voice 1 pots
(config-dial-peer)# destination-pattern 100
(config-dial-peer)# port 1/0/0
・相手の電話のための設定
(config)# dial-peer voice 2 voip
(config-dial-peer)# destination-pattern 200
(config-dial-peer)# session target ipv4:10.1.1.2
あとは、反対の設定を相手のルータに設定する。
■ルータから電話をかけるコマンド(隠しコマンド)
# csim start 200
相手の電話番号が200
■電話がかかってる時の確認(下記みたいに表示されれば接続中)
# sh voip rtp connections
VoIP RTP active connections :
No. CallId dstCallId LocalRTP RmtRTP LocalIP RemoteIP
1 41 40 16426 19362 10.1.1.1 10.1.1.2