VoIP Protocols: SIP & Trunking
แนวคิดพื้นฐานของระบบโทรศัพท์ผ่านโครงข่าย IP (VoIP) ที่ใช้ใน Yeastar และ Gateways ต่างๆ
🇹🇭 ภาษาไทย
SIP (Session Initiation Protocol)
- นิยาม: โปรโตคอลมาตรฐานสำหรับการเริ่มต้น, เปลี่ยนแปลง และสิ้นสุดการสื่อสารแบบ Real-time (เสียง, วิดีโอ)
- การทำงาน: ทำหน้าที่เหมือน “พนักงานสลับสาย” ที่ช่วยให้ปลายทางสองฝั่งคุยกันได้ แต่ไม่ได้ทำหน้าที่ส่งข้อมูลเสียงโดยตรง (เสียงจะส่งผ่าน RTP)
SIP Trunk
- นิยาม: การเชื่อมต่อโทรศัพท์ผ่านอินเทอร์เน็ต (Virtual Phone Line) แทนการใช้สายทองแดงแบบเดิม
- ประเภทของ Trunk ใน Wiki นี้:
- SIP Trunk (ITSP): เชื่อมต่อกับผู้ให้บริการภายนอก (เช่น AIS, True, NTT)
- Peering Trunk: การเชื่อมต่อระหว่าง PBX สองเครื่องโดยตรง (เช่น Yeastar ↔ 3CX)
- Gateway Trunk: การเชื่อมต่อ PBX กับ Gateway (เช่น Yeastar ↔ PLANET VGW) เพื่อแปลงสาย Analog (FXO/FXS) ให้เป็น SIP
🇬🇧 English
SIP Overview
SIP is a signaling protocol used for initiating, maintaining, and terminating real-time sessions. It manages user location, availability, and session setup.
Trunking Concepts
A Trunk is a communication line that carries multiple signals simultaneously, connecting major nodes in a network.
- SIP Trunking: Replaces physical PSTN lines with IP-based connectivity.
- Concurrent Calls: SIP trunks are typically scaled by the number of simultaneous sessions they can handle.
- Registration vs. IP-based: Trunks can be established via username/password authentication or by whitelisting static IP addresses.