AsteriskThailand
May 22, 2012, 11:43:57 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: Asterisk act as SIP Proxy  (Read 2347 times)
Patrickz
Global Moderator
Sr. Member
*****
Posts: 274


View Profile WWW
« on: April 01, 2008, 04:50:06 PM »

สวัสดีครับ

  ผมต้องการปรับแต่งให้ Asterisk ทำเหมือน SIP Proxy เพื่อให้ Server อื่นๆ ใช้ในการโทรออกไปยัง PSTN (ใช้เป็น trunk)
ซึ่งเครื่องที่จะเข้ามาใช้งานนั้น ไม่จำเป็นต้องใช้ username, password  แต่ใช้ IP ในการระบุ server ที่ใช้งาน

ไม่ทราบว่า จะมีแนวทางในการปรับแต่งอย่างไรได้บ้างครับ?
ขอบคุณครับ Smiley
Logged

stp
Newbie
*
Posts: 32


View Profile
« Reply #1 on: April 01, 2008, 08:34:07 PM »

เข้าใจว่าต้องการทำ SIP Trunk สำหรับ server อื่น

- ให้ เพิ่ม sip.conf เหมือน SIP device ทั่วไป
- context=your_context_here
- secret ให้ว่างไว้
- deny=0.0.0.0/0.0.0.0
- permit=xx.xx.xx.xx/255.255.255.0
- host=xx.xx.xx.xx
Logged
Patrickz
Global Moderator
Sr. Member
*****
Posts: 274


View Profile WWW
« Reply #2 on: April 24, 2008, 05:02:20 PM »

ขอบคุณ คุณstp มากๆ ครับ

ตอนที่ใช้กับ Asterisk 1.2 มีปัญหาสมควร  พอเปลี่ยนมาใช้ Asterisk 1.4 แล้วก็ตามที่คุณ stp ได้แนะนำไว้เลย

ของผมใช้ดังนี้ครับ

ฝั่ง Server - sip.conf (192.168.10.100)
Quote
[1000]
type=peer
secret=
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
pickupgroup=
nat=yes
mailbox=1000@device
host=192.168.10.101   <-- ระบุ IP ของเครื่องที่จะมาใช้งาน
dtmfmode=rfc2833
dial=SIP/1000
context=from-internal
canreinvite=no
callgroup=
allow=g729
allow=gsm
allow=g711

และที่ฝั่ง client - sip.conf (192.168.10.101)
Quote
[Server1]
user=1000
type=peer
secret=
host=192.168.10.100  <-- IP ของ trunk ที่จะใช้โทรออก
fromuser=1000

* น่าแปลกว่า user=1000 นั้นไม่มีก็ได้ แต่ fromuser=1000 จำเป็นต้องมี
Logged

AngelReign
Newbie
*
Posts: 1


View Profile Email
« Reply #3 on: April 22, 2009, 09:06:10 PM »

The outbound proxy is a normal SIP proxy. You configure your client, the phone or software, to use the proxy for all SIP sessions, The free software community started to provide more and more of the SIP technology required to build both end points as well as proxy and registrar servers

_________________
IP PBX
Logged
SHVENIL LTD.
Newbie
*
Posts: 16


View Profile Email
« Reply #4 on: April 30, 2009, 03:16:05 PM »

รับสมัครผู้ติดตั้งระบบAsterisk
02-2674252
02-2673535
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