VGW-820FS + Yeastar P520 Integration
🇹🇭 ภาษาไทย
การเชื่อมต่อ PLANET VGW Series รุ่น VGW-820FS (8-port FXS) กับ Yeastar P-Series รุ่น P520 เพื่อให้โทรศัพท์ analog สามารถโทรออกผ่าน trunk ของ Yeastar ได้
ภาพรวมระบบ
[Analog Phone x8] ──RJ11──> [VGW-820FS Port 0–7]
│
SIP / LAN
│
[Yeastar P520]
│
Trunk (SIP/PSTN)
│
โทรออกภายนอก
หลักการ: VGW-820FS แต่ละพอร์ต register เป็น SIP extension บน Yeastar P520 — โทรศัพท์ analog จึงใช้ trunk ของ Yeastar โทรออกได้เหมือน IP phone ทั่วไป
ขั้นตอนที่ 1 — Yeastar P520: สร้าง SIP Extensions
Admin Portal → Extension & Trunk → Extensions → Add
สร้าง 8 extensions (1 extension ต่อ 1 พอร์ต VGW):
| Port VGW | Extension | Display Name |
|---|---|---|
| Port 0 | 801 | VGW Port 0 |
| Port 1 | 802 | VGW Port 1 |
| Port 2 | 803 | VGW Port 2 |
| Port 3 | 804 | VGW Port 3 |
| Port 4 | 805 | VGW Port 4 |
| Port 5 | 806 | VGW Port 5 |
| Port 6 | 807 | VGW Port 6 |
| Port 7 | 808 | VGW Port 7 |
ค่าที่ตั้งต่อ extension:
| Field | ค่า |
|---|---|
| Extension Type | SIP |
| Extension Number | ตามตารางด้านบน |
| SIP Password | กำหนดรหัส (จดไว้ใช้ฝั่ง VGW) |
✅ จด SIP Password แต่ละ extension ไว้ใช้ขั้นตอนที่ 5
ขั้นตอนที่ 2 — Yeastar P520: ตรวจสอบ Outbound Route
Admin Portal → Extension & Trunk → Outbound Routes
ตรวจว่า extensions 801–808 สามารถโทรออกผ่าน trunk ที่ต้องการ:
- ถ้ามี outbound route อยู่แล้ว → ตรวจว่าไม่ได้ exclude extension กลุ่มนี้
- ถ้ายังไม่มี → สร้าง outbound route ใหม่ กำหนด trunk และ dial pattern
ขั้นตอนที่ 3 — VGW-820FS: ตั้งค่า Network
เข้า http://192.168.0.1 (default) → login admin / admin
Network → LAN
ตั้ง LAN IP ให้อยู่ใน subnet เดียวกับ Yeastar P520:
| Field | ตัวอย่าง |
|---|---|
| LAN IP | 192.168.1.200 |
| Subnet Mask | 255.255.255.0 |
| Default Gateway | 192.168.1.1 |
⚠️ หลัง Save ระบบจะ restart — เข้า web ใหม่ที่ IP ใหม่
ขั้นตอนที่ 4 — VGW-820FS: ตั้งค่า SIP Server
SIP Server
| Field | ค่า |
|---|---|
| Registrar Address | IP ของ Yeastar P520 เช่น 192.168.1.100 |
| Registrar Port | 5060 |
| Proxy Address | เหมือน Registrar |
| Domain | ว่าง |
| Registration Interval | 1800 |
ขั้นตอนที่ 5 — VGW-820FS: ตั้งค่าแต่ละ Port
Port → เลือก Port number (ทำซ้ำ Port 0–7)
| Field | Port 0 | Port 1 | … | Port 7 |
|---|---|---|---|---|
| Registration | ✅ Enable | ✅ Enable | … | ✅ Enable |
| Primary SIP User ID | 801 | 802 | … | 808 |
| Primary Authenticate ID | 801 | 802 | … | 808 |
| Primary Authenticate Password | password ของ ext 801 | password ของ ext 802 | … | password ของ ext 808 |
| Caller ID | ✅ Enable | ✅ Enable | … | ✅ Enable |
ขั้นตอนที่ 6 — VGW-820FS: ตั้งค่า Routing
Tel → IP (สายออก: analog phone → Yeastar → trunk)
Call & Routing → Tel-IP Routing → Add
| Field | ค่า |
|---|---|
| Description | Analog to Yeastar |
| Calls from | Port: Any |
| Caller Prefix | any |
| Callee Prefix | any |
| Calls to | SIP Server |
IP → Tel (สายเข้า: Yeastar → analog phone)
Call & Routing → IP-Tel Routing → Add
| Field | ค่า |
|---|---|
| Description | Yeastar to Analog |
| Calls from | SIP Server |
| Caller Prefix | any |
| Callee Prefix | any |
| Calls to | Port Group (ที่ครอบ Port 0–7) |
ขั้นตอนที่ 7 — ตรวจสอบ Registration
ฝั่ง VGW-820FS:
Status → Port Status → ทุก Port ต้องแสดง Registered ✅
ฝั่ง Yeastar P520:
Admin Portal → Extension & Trunk → Extensions → Extensions 801–808 ต้องแสดงสถานะ Registered (สีเขียว)
ทดสอบโทรออก
- ยก handset โทรศัพท์ที่ต่อกับ VGW-820FS
- กดหมายเลขโทรออกตาม dial pattern ของ Yeastar outbound route
- สายควรออกผ่าน trunk ของ Yeastar
แก้ปัญหาเบื้องต้น
| อาการ | ตรวจสอบ |
|---|---|
| Port ไม่ Registered | ตรวจ IP Yeastar ใน SIP Server · ตรวจ extension number + password |
| Registered แต่โทรออกไม่ได้ | ตรวจ Outbound Route บน Yeastar ว่า include extensions 801–808 |
| ได้ยิน busy tone ทันที | ตรวจ Routing (Tel→IP) บน VGW ว่า Calls to = SIP Server |
| โทรออกได้แต่ไม่มีเสียง | ตรวจ NAT / firewall · ตรวจ RTP port (8000+) เปิดระหว่าง VGW กับ Yeastar |
| Registration หลุดบ่อย | ลด Registration Interval เป็น 600 · ตรวจ network stability |
Related
- PLANET VGW Series — ข้อมูล hardware, SIP config, service codes ครบ
- Yeastar P-Series — IP-PBX ที่ใช้คู่กัน
- Yeastar P-Series Admin Guide — การตั้งค่า Extension, Outbound Route
- Yeastar P-Series Gateways — integration กับ gateway ประเภทอื่น (TA/TE/TG)
- VoIP Phone System — ภาพรวมระบบ VoIP
- Call Flow Fundamentals — หลักการ call flow
🇬🇧 English
Step-by-step guide for connecting PLANET VGW Series VGW-820FS (8-port FXS gateway) to Yeastar P-Series P520 IP-PBX, enabling analog phones to make outbound calls via Yeastar’s trunks.
System Overview
[Analog Phones x8] ──RJ11──> [VGW-820FS Port 0–7]
│
SIP / LAN
│
[Yeastar P520]
│
Trunk (SIP/PSTN)
│
External calls
Principle: Each VGW-820FS port registers as a SIP extension on Yeastar P520. Analog phones use Yeastar’s outbound trunks exactly like IP phones.
Step 1 — Yeastar P520: Create SIP Extensions
Admin Portal → Extension & Trunk → Extensions → Add
Create 8 extensions (one per VGW port):
| VGW Port | Extension | Display Name |
|---|---|---|
| Port 0 | 801 | VGW Port 0 |
| Port 1 | 802 | VGW Port 1 |
| … | … | … |
| Port 7 | 808 | VGW Port 7 |
Per extension settings:
| Field | Value |
|---|---|
| Extension Type | SIP |
| Extension Number | per table above |
| SIP Password | set a password (note it for VGW configuration) |
Step 2 — Yeastar P520: Verify Outbound Route
Admin Portal → Extension & Trunk → Outbound Routes
Ensure extensions 801–808 are permitted to use the outbound trunk. Create an outbound route if none exists.
Step 3 — VGW-820FS: Network Setup
Navigate to http://192.168.0.1 → login admin / admin
Network → LAN — Set LAN IP to same subnet as Yeastar P520
| Field | Example |
|---|---|
| LAN IP | 192.168.1.200 |
| Subnet Mask | 255.255.255.0 |
| Default Gateway | 192.168.1.1 |
⚠️ Device restarts after save — reconnect at new IP.
Step 4 — VGW-820FS: SIP Server
SIP Server
| Field | Value |
|---|---|
| Registrar Address | Yeastar P520 IP e.g. 192.168.1.100 |
| Registrar Port | 5060 |
| Proxy Address | same as Registrar |
| Domain | blank |
| Registration Interval | 1800 |
Step 5 — VGW-820FS: Per-Port Configuration
Port → select Port number (repeat for Port 0–7)
| Field | Value |
|---|---|
| Registration | ✅ Enable |
| Primary SIP User ID | extension number (801–808) |
| Primary Authenticate ID | same as User ID |
| Primary Authenticate Password | SIP password set on Yeastar |
| Caller ID | ✅ Enable |
Step 6 — VGW-820FS: Routing
Tel → IP (outbound: analog phone → Yeastar → trunk)
Call & Routing → Tel-IP Routing → Add
Calls from: Any Port | Caller Prefix: any | Callee Prefix: any | Calls to: SIP Server
IP → Tel (inbound: Yeastar → analog phone)
Call & Routing → IP-Tel Routing → Add
Calls from: SIP Server | Caller Prefix: any | Callee Prefix: any | Calls to: Port Group (Port 0–7)
Step 7 — Verify Registration
- VGW-820FS: Status → Port Status → all ports show Registered ✅
- Yeastar P520: Extensions 801–808 show green Registered status
Troubleshooting
| Symptom | Check |
|---|---|
| Ports not registering | Verify Yeastar IP in SIP Server · Verify extension number + password |
| Registered but can’t dial out | Check Outbound Route includes extensions 801–808 |
| Immediate busy tone | Check Tel→IP Routing: Calls to = SIP Server |
| Call connects but no audio | Check NAT/firewall · Verify RTP ports (8000+) are open |
| Registration drops frequently | Reduce Registration Interval to 600 · Check network stability |
Related
- PLANET VGW Series — Full hardware specs, SIP config, service codes
- Yeastar P-Series — IP-PBX paired with VGW
- Yeastar P-Series Admin Guide — Extension and Outbound Route configuration
- Yeastar P-Series Gateways — Other gateway integrations (TA/TE/TG)
- VoIP Phone System — VoIP system overview
- Call Flow Fundamentals — Call flow fundamentals