แนวทางการตั้งค่าบน FreeSwitch

จาก Asterisk DIY - VoIP Opensource WiKi, สารานุกรมฟรี

Jump to: navigation, search

การตั้งค่า บน freeswitch นั้นใช้การเขียนค่าลง configuration file เป็นหลัก โดย freeswitch จะทำการอ่านค่านี้เพื่อไปประมวลผล

โดย การเขียนค่า config นั้น fressswich จะให้ syntax ของ XML เป็นหลัก


สารบัญ

1. Directory ต่างๆของ FressSwitch

ตำแหน่ง directory ที่ใช้เก็บค่า configuration นั้น มีค่า default อยู่ ที่

"/usr/local/freeswitch/conf"

โดยในการ desgin, freeswitch ใช้การแยก directory เพื่อทำการแตก configuration file ออกเป็น หลายๆส่วน โดย การ Include ค่า directory เข้าไปเพื่อทำให้ผู้ใช้งานได้ทำความเข้าใจกับระบบได้ดีขึ้นรวมไปถึงยังทำให้การจัดหมดหมู่ได้ดียิ่งขึ้น

โดยจะมี file หลัก (freeswitch.xml) ที่ทำหน้าที่ในการกำหนดแยก หน้าที่ของ config ไฟล์สำหรับการทำงาน ต่างๆ ออกเป็น 4 ส่วนหลักๆ

1. Speech Management

lang/en/*.xml

2. User Directories

ค่าที่เกี่ยวข้องกับผู้ใช้งาน ให้สามารถใช้งานกับระบบได้

direcotry/*.xml

3. Module Configuration Files

ใช้ในการตั้งค่าต่างๆของ modules ใน freeswitch เกือบทั้งหมด

autoload_configs/*.xml
ซึ่งจะมี file ที่ใช้ในการ control SIP Config "sofia.conf.xml" ชี้ไปยัง

sip_profiles/*.xml

ซึ่งใช้ในการบอก freeswitch สำหรับการตั้งค่าต่างๆ ของ SIP protocol

4. Dialplans

ใช้ในการตั้งค่า dialplan สำหรับการทำ routing ของการโทรศัพท์ในระบบ

dialplan/*.xml

2. การตั้งค่า Files ต่างๆ

Sofia.conf.xml เป็น file ที่ใช้ในการ control SIP protocol ของ freeswitch โดยเป็น file ในการกำหนด SIP UA (extensions) ในระบบ


3. Syntax ต่างๆ

4. Variable

Personal tools