โดย : อดิศร ขาวสังข์
เขียนเมื่อ : 21/03/2007
บทนำ
ADSL รุ่น AT-RG634A มี FXS Port จำนวน 2 พอร์ต ซึ่งเท่าที่ได้คุยกับเจ้าหน้าที่บริษัทผู้ขายบอกมาว่าการใช้งานต้องผ่าน SIP Server เท่านั้น ดังนั้นผู้เขียนเลยได้ทดลองติดตั้ง SIP Server ขึ้นมา 1 เครื่องโดยใ้ช้ซอร์ฟแวร์ SIP Server ที่เป็น Demo ชื่อว่า 3CX ซึ่งซอร์ฟแวร์ตัวนี้ทำหน้าที่เป็น IP PBX จริง ๆ แล้วสามารถใช้ SIP Server แบบ Opensource ได้นะครับสามารถดูข้อมูลเพิ่มเติมได้ที่ http://www.openser.org/ หรือ http://www.asterisk.org
ขั้นตอนการคอนฟิก ASDL
- คอนฟิก ADSL ให้สามารถออกอินเตอร์เน็ตได้ก่อน
- ใช้คำสั่ง ip interface list เพื่อดู interface
--> ip list interfaces
IP Interfaces:
ID | Name | IP Address | DHCP | Transport
-----|--------------|------------------|----------|----------------
1 | ip0 | 192.168.1.1 | disabled | t1
2 | WAN | 61.7.165.128 | disabled | HiNET
-------------------------------------------------------------------
-->
- คอนฟิกค่าของ VOIP ดังนี้
--> voip sip protocol enable
--> voip ep analogue create tel1 type al-fxs-del phy tel1
--> voip ep analogue create tel2 type al-fxs-del phy tel2
--> voip sip protocol set netinterface WAN ควรจะใช้ wan port ที่ชื่อตรงกับข้อ 2 เพราะถ้าใช้ lan port เช่น ip0 อาจจะได้ยินเสียงข้างเดียวซึ่งจะเกี่ยวข้องกับการทำ NAT
--> voip sip locationserver create sipserver contact 202.129.16.19 (SIP Server ในที่นี้ IP เป็น 202.129.16.19)
--> voip sip proxyserver create sipserver contact 202.129.16.19
--> voip sip user create Somchai address 102 authentication 102:cat123 domain 202.129.16.19
--> voip sip user create Somsak address 103 authentication 103:cat123 domain 202.129.16.19
--> voip sip user add Somchai port tel1
--> voip sip user add Somsak port tel2
--> voip ep analogue set tel1 country singapore
--> voip ep analogue set tel2 country singapore
- เืมื่อมีการคอนฟิกถถูำกต้อง ที่ SIP Server จะแสดงสถานะดังรูป
- จากรูปข้างบน ที่ SIP Server ผู้เขียนได้ Add Extensions ไว้ 3 เบอร์ ดังนี้
- เบอร์ 101 ทดลองใช้กับโปรแกรม 3CX Phone ที่ใช้ MIC และหูฟังบนเครื่อง PC
- เบอร์ 102 ใช้กับ FXS Port ที่ 1 ของ ADSL
- เบอร์ 103 ใช้กับ FXS Port ที่ 2 ของ ADSL
โดยทุกเบอร์สามารถติดต่อถึงกันได้
- โดยหน้าตาของ 3CX Phone เป็นดังรูป

จบครับ