ตัวอย่างการคอนฟิก VOIP บน ADSL Allied Telesyn AT-RG634A ให้ทำงานร่วมกับ SIP Server

โดย : อดิศร  ขาวสังข์
เขียนเมื่อ : 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

  1. คอนฟิก ADSL ให้สามารถออกอินเตอร์เน็ตได้ก่อน

  2. ใช้คำสั่ง 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
    -------------------------------------------------------------------
    -->


  3. คอนฟิกค่าของ 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


  4. เืมื่อมีการคอนฟิกถถูำกต้อง ที่ SIP Server จะแสดงสถานะดังรูป


  5. จากรูปข้างบน ที่ SIP Server ผู้เขียนได้ Add Extensions ไว้ 3 เบอร์  ดังนี้
    1. เบอร์ 101 ทดลองใช้กับโปรแกรม 3CX Phone ที่ใช้ MIC และหูฟังบนเครื่อง PC
    2. เบอร์ 102 ใช้กับ FXS Port ที่ 1 ของ ADSL
    3. เบอร์ 103 ใช้กับ FXS Port ที่ 2 ของ ADSL

      โดยทุกเบอร์สามารถติดต่อถึงกันได้

  6. โดยหน้าตาของ 3CX Phone เป็นดังรูป

จบครับ