AsteriskThailand
May 23, 2012, 06:54:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Linksys SPA-400 ทำให้เชื่อมต่อกับ Asterisk  (Read 2372 times)
Necromancer
Newbie
*
Posts: 6


View Profile Email
« on: October 24, 2007, 04:39:16 PM »

เรียนถามท่าน patrickz และผู้รู้ครับ
ถ้าจะทำให้ Linksys SPA-400 (4 FXO) ทำให้เชื่อมต่อกับ Asterisk
สามารถโทรเข้า โทรออกได้ ต้อง Setup อย่างไรครับ
เช่น เอาPort 4 FXO รับสายนอก 4 เบอร์(Hunting)
ส่วนเบอร์ sip สามารถตัด 9 เพื่อที่จะโทรออกสายนอกได้ครับ
พอดีซื้อของมาแล้วแต่ไม่ทราบว่าจะ setup อย่างไร

ขอบคุณครับ
Logged
Patrickz
Global Moderator
Sr. Member
*****
Posts: 274


View Profile WWW
« Reply #1 on: October 25, 2007, 10:05:29 AM »

ถ้าไ่ม่ผิด ก็ต้องมองอุปกรณ์พวกนี้เป็น trunks ครับ
ที่ http://www.voipsupply.com/product_info.php?products_id=1692 ผมเห็นมีัตัวอย่างการ config เอาไว้

sip.conf Settings
Code:
The SPA400 needs the account name to match the value specified in the SPA400 User ID configuration field. The entry in sip.conf should look like the following:

[general]
register= spa400@192.168.1.109This email address is being protected from spam bots, you need Javascript enabled to view it /spa400
Substitute spa400 for the value entered in the SPA400 User ID field and replace 192.168.1.109 with the actual IP address of the SPA400.

Then create a SIP entry for the SPA400.

    * user: the SPA400 User ID field value
    * host: the IP address of the SPA400
    * context: the context that should handle inbound calls from the SPA400

It should look like the following:

[spa400]
type=friend
user=spa400
host=192.168.1.109
dtmfmode=rfc2833
canreinvite=no
context=from-trunk
insecure=very

extension.conf Settings
Code:
Configure your dial-out routing to utilize the spa400.

A generic dial-out route (dial 9 to get a SPA400 FXO trunk) would look like:

[general]
DIAL_OUT = 9
DIALOUTIDS = 2/
OUTCID_2 =
OUTMAXCHAINS_2 = 4
OUTPREFIX_2 =
OUT_2 = SIP/spa400

Inbound routing is more complex, but could look something like this (forward all calls to extension 200):

[from-trunk]
include => from-pstn
...

[from-pstn]
include=> from-pstn-custom
...

[from-pstn-custom]
exten=>spa400,1,Goto(ext-local,200,1)
Logged

Necromancer
Newbie
*
Posts: 6


View Profile Email
« Reply #2 on: October 25, 2007, 10:58:50 AM »

ขอบคุณครับ จะลอง set ดู
Logged
wildcard
Newbie
*
Posts: 4


View Profile
« Reply #3 on: January 01, 2008, 07:57:49 PM »

คอนเฟิมครับ ตอนนี้ก็ใช้อยู่
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
SEM | Asterisk | สถานที่ท่องเที่ยว | สัมมนา SEM