TOT Netcall Asterisk Setting
จาก Asterisk DIY - VoIP Opensource WiKi, สารานุกรมฟรี
ตัวอย่างการตั้งค่าสำหรับ TOT Netcall กับ Asterisk
ค่าใน sip.conf
[general] register=><เบอร์Account>:<password>@203.113.125.82/<เบอร์Account> [TOT_NETCALL1] ;Description=tot type=friend host=203.113.125.82 fromdomain=203.113.125.82 outboundproxy=203.113.125.82 port=5060 username=<เบอร์Account> fromuser=<เบอร์Account> secret=<password> qualify=yes ;ค่า nat=yes สำหรับ server ที่อยู่หลัง nat router, สำหรับเครื่องที่มี IP จริง ไม่ต้องใช้ (nat=no) nat=yes canreinvite=no insecure=very dtmfmode=rfc2833 disallow=all call-limit=1 allow=g729 language=th context=incoming_from_tot realm=10.10.2.50
ค่าใน extensions.conf
สำหรับการโทรออก ในกรณีนี้ทำการตัด 9 เพิ่อโทรออก
[my_outgoing]
exten => _9.,1,Dial(SIP/trunk%%sip%%TOT_NETCALL1/${EXTEN:1},40,T)
exten => _9.,n,Hangup
สำหรับการรับสายเข้า
ในตัวอย่างให้ไปดังที่เครื่องเบอร์ 1001
[incoming_from_tot] exten => <เบอร์Account>,1,Dial(SIP/1001,20,Tt)