LoginSignup
0
0

More than 3 years have passed since last update.

NTTひかり電話ルータ(?)VG430iへSIP接続(?)するための情報を取得する方法

Last updated at Posted at 2017-03-28

概要

ひかり電話ルータとフレッツフォン(VP1000等)は、SIPで通信しているはずなのにID/パスワードがどこにもない。もしかして固定?
と検索しまくっていたら見つけました。

SIP接続情報取得方法

ステップ(1) ルータから空いている内線番号をGETする

以下のURLへGETアクセスします。

http://ルータのアドレス/cas_tel_list/

取得例

% curl -v http://192.168.1.1/cas_tel_list                                                                                        
*   Trying 192.168.1.1...
* Connected to 192.168.1.1 (192.168.1.1) port 80 (#0)
> GET /cas_tel_list HTTP/1.1
> Host: 192.168.1.1
> User-Agent: curl/7.50.1
> Accept: */*
> 
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Content-Type: text/plain
< Content-Length: 32
< Server: mcas/3.0 (VG430I 8.0.0.0; B2BUA; NTTEAST/NTTWEST)
< 
ResultCode=0000
ConfList=11

* Closing connection 0

ステップ(2) クライアント情報をPOSTする

以下のURLへパラメータをPOSTします。

http://ルータのアドレス/cas_tel_conf/

パラメータ

パラメータ名
id クライアントのMACアドレス
ip_tel_num ステップ(1)で取得した内線番号のうちのひとつ
term_type 1(音声専用端末?) or 2(専用端末?)

取得例

% curl -v --data 'id=**********&ip_tel_num=10&term_type=1'  http://192.168.1.1/cas_tel_conf
*   Trying 192.168.1.1...
* Connected to 192.168.1.1 (192.168.1.1) port 80 (#0)
> POST /cas_tel_conf HTTP/1.1
> Host: 192.168.1.1
> User-Agent: curl/7.50.1
> Accept: */*
> Content-Length: 41
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 41 out of 41 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Content-Type: text/plain
< Content-Length: 206
< Server: mcas/3.0 (VG430I 8.0.0.0; B2BUA; NTTEAST/NTTWEST)
< 
ResultCode=0000
ip_tel_num=10
username=10
password=od2*****
rtpport1=
rtpport2=
dscp=46
sipsv_addr=192.168.1.1
sipsv_port=5060
regsv_addr=192.168.1.1
regsv_port=5060
sip_domain=ntt-east.ne.jp

* Closing connection 0

参考

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0