tatumse's Photo Gallery

Wednesday, March 16, 2005

Building SIP Proxy with SER(2)

หลังจาก ทดลอง add SRV record ใน name server แล้วก็ใช้ address เป็น sip:taweesak@interlab.ait.ac.th ได้ syntax สำหรับ bind เป็นประมาณนี้
"_sip._udp.interlab.ait.ac.th 43200 IN SRV 10 10 5060 sip.interlab.ait.ac.th."โดยที่ sip.interlab.ait.ac.th เป็นเครื่องที่ติดตั้ง SER เอาไว้ อ่านเต็มๆได้ที่ http://mit.edu/sip/sip.edu/dns.shtml

วิธีทดสอบว่า work หรือไม่ใช้คำสั่ง dig ตามนี้
dig -t SRV _sip._udp.interlab.ait.ac.th
ผลลัพธ์
;; ANSWER SECTION:
_sip._udp.interlab.ait.ac.th. 31m47s IN SRV 0 10 5060 sip.interlab.ait.ac.th.

หลังจากนั้นทำการ start ser ด้วยคำสั่ง
ser -l interlab.ait.ac.th
แล้วลอง sign-in ด้วย taweesak@interlab.ait.ac.th

ก็เป็นอันว่าสำเร็จ อ้อถ้าเมื่อก่อน domain เป็น IP address ก็ให้แก้ ใน Database เป็น ชื่อ domain ด้วยครับ

  • domain ใน database table subscriber
  • ตัวแปร SIP_DOMAIN
  • ในไฟล์ ser.cfg

หมายเหตุ ในกรณีนี้ interlab.ait.ac.th alias sip.interlab.ait.ac.th

1 comment:

Anonymous said...

tatumse.blogspot.com is very informative. The article is very professionally written. I enjoy reading tatumse.blogspot.com every day.
calgary payday loan
payday loans canada