วิธีการตั้งค่า mouthum กับ Asterisk Server

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

Jump to: navigation, search

การตั้งค่าใน asterisk configuration file

ใน directory /etc/asterisk

ไฟล์ที่ต้องทำการแก้ไข

sip.conf

extension.conf

รายละเอียดค่าต่างๆ

1. sip server address voip.mouthmun.com

2. port number 5060

3. username และ password สามารถตั้งค่าได้เองจาก mouthmun website

4. การโทรออก ต้องใส่ country-code ทุกครั้ง เช่น โทรมือถือ ต้องโทรเบอร์ 668x-xxx-xxxx


ตัวอย่างไฟล์ sip.conf

โดย 1122334455 เป็น เบอร์โทรศัพท์ที่ register กับ mouthmun และ 12345678 เป็นรหัสผ่าน

register=>1122334455:12345678@voip.mouthmun.com/1122334455

[mouthmun]

type=friend

host=voip.mouthmun.com

fromdomain=voip.mouthmun.com

outboundproxy=voip.mouthmun.com

port=5060

username=1122334455

fromuser=1122334455

secret=12345678

qualify=yes

nat=yes

canreinvite=no

insecure=very

dtmfmode=rfc2833

disallow=all

call-limit=1

allow=gsm

allow=g729

context=in-mouthmun


ตัวอย่าง dialplan (extensions.conf) ใช้โทรออก

[out-mouthmun]

exten => _9.,1,Answer

exten => _9.,2,Dial(SIP/mouthmun/${EXTEN:1},30,tTr)

exten => _9.,3,Hangup


ตัวอย่าง การรับสายเข้า [in--mouthmun]

exten => 1122334455,1,Answer

exten => 1122334455,2,Dial(SIP/1001,30,tTr)

exten => 1122334455,3,Hangup

Personal tools