คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

Elastix IP Pbx

Moderator: jubjang

คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย oistha » 14 ก.พ. 2011 16:32

พอดี จะต่อ elastix 2.0 กับ sip trunk mouthmun ครับ
ขอบคุณมากครับ
oistha
Bronz Member
 
โพสต์: 6
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 12:55

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย nuiz » 14 ก.พ. 2011 18:16

sip server ของ mouthmon นะครับ -> voip.mouthmun.com ครับ ดังนั้นสร้าง Trunks ก็ประมาณนี้ครับ

1. คลิ๊ก Trunks -> Add SIP Trunk
2. ที่ outgoing setting
trunk name = moutmun-outbound จริงๆตั้งชื่อไรก็ได้ที่ไม่ซ้ำกับ trunk name อื่นๆที่สร้างไว้แล้ว
peers detail ใส่ตามนี้
type=peer
insecure=port,invite
host=voip.mouthmun.com
fromdomain=voip.mouthmun.com
outboundproxy=voip.mouthmun.com
port=5060
defaultuser=mounthmun_username
secret=mouthmun_password
qualify=yes
canreinvite=no
dtmfmode=rfc2833
disallow=all
allow=g729
allow=ulaw
allow=alaw

3. ที่ user context (ถ้าต้องการรับสายจาก mouthmun ด้วย เช่นโทรมาจาก account อื่นๆของ mounthmun
user context = mouthmun-inbound
peer details ใส่ตามนี้ สำคัญสุดคือบรรทัด context

type=peer
insecure=port,invite
host=voip.mouthmun.com
fromdomain=voip.mouthmun.com
outboundproxy=voip.mouthmun.com
port=5060
qualify=yes
canreinvite=no
dtmfmode=rfc2833
disallow=all
allow=g729
allow=ulaw
allow=alaw
context = from-internal

4. ที่ register string (ถ้า mounthmun บอกว่าต้อง register) ด้วย username/password
mouthmun_username:mouthmun_password@voip.mouthmun.com:5060/mounthmun_username

5. อ่อเกือบลืมไป ช่อง dial rules ใส่ X. (ตัว X ใหญ่แล้วก็เครื่องหมายจุด)

6. เสร็จแล้วก็ไปคอนฟิก Outbound Routes ครับ
ถ้าต้องการประมาณว่าโทรออกกด 9 ตามด้วยเบอร์ 0x เลยนี่ ก็เขียนแบบนี้
ช่อง dial patterns ใส่ 9|.

ปล. ไม่เคยใช้ mounthmun เลยครับ เลยไม่รู้ว่าต้องส่งเบอร์ไปให้เขายังไง เช่นโทรไทยส่ง 0x ไปได้เลยหรือเปล่า หรือว่าต้องส่ง 66x ไป หรือถ้าโทร ตปท ต้องส่งอะไรไป ส่ง country code ไปได้เลยหรือเปล่า ฝากถามให้หน่อยนะครับ เพราะมันจะมีผลกับตอนเขียนข้อมูลในช่อง dial patterns และ dial rules ครับ

โทษทีครับไม่มีรูปให้ดู
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 7001
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย oistha » 23 ก.พ. 2011 11:41

register ได้ครับ แต่ว่าโทรออกไม่ได้ ลองสอบถามทาง mouthmun แล้วค่าที่ส่ง ไม่ต้อง ส่งค่าอะไรไป
oistha
Bronz Member
 
โพสต์: 6
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 12:55

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย nuiz » 23 ก.พ. 2011 12:27

- เข้า asterisk -r แล้วลองโทรออก แล้ว copy ข้อความที่เห็นโพสต์มาหน่อยครับ
- ขอดูคอนฟิกใน trunks และ outbound routes ด้วยครับ
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 7001
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย oistha » 23 ก.พ. 2011 16:58

== Using SIP RTP CoS mark 5
-- Executing [90834348639@from-internal:1] Macro("SIP/1600-0000011f", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/1600-0000011f", "AMPUSER=1600") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/1600-0000011f", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/1600-0000011f", "1?Set(REALCALLERIDNUM=1600)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/1600-0000011f", "AMPUSER=1600") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/1600-0000011f", "AMPUSERCIDNAME=TEST") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/1600-0000011f", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/1600-0000011f", "AMPUSERCID=1600") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/1600-0000011f", "CALLERID(all)="TEST" <1600>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/1600-0000011f", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/1600-0000011f", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/1600-0000011f", "Using CallerID "TEST" <1600>") in new stack
-- Executing [90834348639@from-internal:2] Set("SIP/1600-0000011f", "_NODEST=") in new stack
-- Executing [90834348639@from-internal:3] Macro("SIP/1600-0000011f", "record-enable,1600,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/1600-0000011f", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/1600-0000011f", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/1600-0000011f", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/1600-0000011f", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/1600-0000011f", "1?MacroExit()") in new stack
-- Executing [90834348639@from-internal:4] Macro("SIP/1600-0000011f", "dialout-trunk,4,0834348639,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/1600-0000011f", "DIAL_TRUNK=4") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/1600-0000011f", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1600-0000011f", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/1600-0000011f", "DIAL_NUMBER=0834348639") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/1600-0000011f", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/1600-0000011f", "OUTBOUND_GROUP=OUT_4") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1600-0000011f", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/1600-0000011f", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1600-0000011f", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/1600-0000011f", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/1600-0000011f", "outbound-callerid,4") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1600-0000011f", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/1600-0000011f", "0?Set(REALCALLERIDNUM=1600)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/1600-0000011f", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/1600-0000011f", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/1600-0000011f", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/1600-0000011f", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/1600-0000011f", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/1600-0000011f", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/1600-0000011f", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/1600-0000011f", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/1600-0000011f", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/1600-0000011f", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- <SIP/1600-0000011f>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/1600-0000011f", "OUTNUM=0834348639") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/1600-0000011f", "custom=SIP/Mouthmun") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/1600-0000011f", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/1600-0000011f", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1600-0000011f", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1600-0000011f", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1600-0000011f", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/1600-0000011f", "SIP/Mouthmun/0834348639,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called Mouthmun/0834348639
-- SIP/Mouthmun-00000120 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:20] NoOp("SIP/1600-0000011f", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21") in new stack
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/1600-0000011f", "s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/1600-0000011f", "RC=21") in new stack
-- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/1600-0000011f", "21,1") in new stack
-- Goto (macro-dialout-trunk,21,1)
-- Executing [21@macro-dialout-trunk:1] Goto("SIP/1600-0000011f", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/1600-0000011f", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,continue,3)
-- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/1600-0000011f", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:4] Set("SIP/1600-0000011f", "CALLERID(number)=1600") in new stack
-- Executing [90834348639@from-internal:5] Macro("SIP/1600-0000011f", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/1600-0000011f", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/1600-0000011f", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("SIP/1600-0000011f", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("SIP/1600-0000011f", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <SIP/1600-0000011f> Playing 'all-circuits-busy-now.gsm' (language 'en')
-- <SIP/1600-0000011f> Playing 'pls-try-call-later.gsm' (language 'en')
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/1600-0000011f' in macro 'outisbusy'
== Spawn extension (from-internal, 90834348639, 5) exited non-zero on 'SIP/1600-0000011f'
-- Executing [h@from-internal:1] Macro("SIP/1600-0000011f", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/1600-0000011f", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/1600-0000011f", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/1600-0000011f", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/1600-0000011f", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/1600-0000011f", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/1600-0000011f", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/1600-0000011f' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1600-0000011f'
arc1-elastix*CLI>




คุณหนุ่ย ครับ error
oistha
Bronz Member
 
โพสต์: 6
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 12:55

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย nuiz » 23 ก.พ. 2011 18:21

อ่ะครับ แต่ก็มีโทรออกไปแล้ว
== Using SIP RTP CoS mark 5
-- Called Mouthmun/0834348639
-- SIP/Mouthmun-00000120 is circuit-busy

คาดว่าทาง call ไม่ได้ออกไปที่ Mouthmun ครับ ไม่งั้นน่าจะมี Message อะไรตอบกลับมาจากทางนั้นแล้ว เช่น Forbidden, Service Unavailable อะไรประมาณนี้ครับ
ผมเกรงว่าอาจจะยังคอนฟิกในเครื่องไม่ถูกต้อง งั้นเช็คแบบนี้ต่อครับ

1. ขอดูหน้าจอ Trunk ที่คอนฟิกของ Mouthmun และ Outbound Routes

2. เข้า asterisk console แล้วพิมพ์คำสั่ง

sip set debug peer Mouthmun

แล้วโทรออกสัก 1-2 ครั้งครับ แล้วก็อบ Message มาครับ ถ้า Message เยอะมากก็เอาให้ครบนะครับ

เสร็จแล้วพิมพ์

sip set debug off
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 7001
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย oistha » 24 ก.พ. 2011 09:12

<--- SIP read from UDP:203.156.135.4:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.100.10.2:5060;branch=z9hG4bK6e21b688;received=58.181.215.146;rport=5060
From: "Unknown" <sip:Unknown@192.100.10.2>;tag=as604d7e22
To: <sip:voip.mouthmun.com>;tag=as04493146
Call-ID: 31c4fe126fac8fd86b675ca94d9c1394@192.100.10.2
CSeq: 102 OPTIONS
User-Agent: MM
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Accept: application/sdp
Content-Length: 0


<------------->
--- (11 headers 0 lines) ---
Really destroying SIP dialog '31c4fe126fac8fd86b675ca94d9c1394@192.100.10.2' Method: OPTIONS
-- Remote UNIX connection
-- Remote UNIX connection disconnected
Reliably Transmitting (no NAT) to 203.156.135.4:5060:
OPTIONS sip:voip.mouthmun.com SIP/2.0
Via: SIP/2.0/UDP 192.100.10.2:5060;branch=z9hG4bK3119ec07;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.100.10.2>;tag=as3e645ac4
To: <sip:voip.mouthmun.com>
Contact: <sip:Unknown@192.100.10.2>
Call-ID: 69a8943177a8eff23ee9d1bf62759346@192.100.10.2
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.2.13
Date: Thu, 24 Feb 2011 02:05:34 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:203.156.135.4:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.100.10.2:5060;branch=z9hG4bK3119ec07;received=58.181.215.146;rport=5060
From: "Unknown" <sip:Unknown@192.100.10.2>;tag=as3e645ac4
To: <sip:voip.mouthmun.com>;tag=as418ce74f
Call-ID: 69a8943177a8eff23ee9d1bf62759346@192.100.10.2
CSeq: 102 OPTIONS
User-Agent: MM
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Accept: application/sdp
Content-Length: 0


<------------->
--- (11 headers 0 lines) ---
Really destroying SIP dialog '69a8943177a8eff23ee9d1bf62759346@192.100.10.2' Method: OPTIONS
Reliably Transmitting (no NAT) to 203.156.135.4:5060:
OPTIONS sip:voip.mouthmun.com SIP/2.0
Via: SIP/2.0/UDP 192.100.10.2:5060;branch=z9hG4bK6aaafec9;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.100.10.2>;tag=as2b0ef99c
To: <sip:voip.mouthmun.com>
Contact: <sip:Unknown@192.100.10.2>
Call-ID: 05011c832130b31d2e73993f2e53d801@192.100.10.2
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.2.13
Date: Thu, 24 Feb 2011 02:05:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:203.156.135.4:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.100.10.2:5060;branch=z9hG4bK6aaafec9;received=58.181.215.146;rport=5060
From: "Unknown" <sip:Unknown@192.100.10.2>;tag=as2b0ef99c
To: <sip:voip.mouthmun.com>;tag=as68bfc66a
Call-ID: 05011c832130b31d2e73993f2e53d801@192.100.10.2
CSeq: 102 OPTIONS
User-Agent: MM
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Accept: application/sdp
Content-Length: 0


<------------->
--- (11 headers 0 lines) ---
Really destroying SIP dialog '05011c832130b31d2e73993f2e53d801@192.100.10.2' Method: OPTIONS
Reliably Transmitting (no NAT) to 203.156.135.4:5060:
OPTIONS sip:voip.mouthmun.com SIP/2.0
Via: SIP/2.0/UDP 192.100.10.2:5060;branch=z9hG4bK6b3deac9;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.100.10.2>;tag=as696af3a7
To: <sip:voip.mouthmun.com>
Contact: <sip:Unknown@192.100.10.2>
Call-ID: 10f4632d25f8c2637ce35c614070003c@192.100.10.2
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.2.13
Date: Thu, 24 Feb 2011 02:06:34 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0



คุณ หนุ่ย เหมือน ว่า account mouthmun ไม่ได้ไป ด้วยตอนโทร Contact: <sip:Unknown@192.100.10.2>
เพราะว่าผมลองใช้ของ tot account ตรงนี้จะไปด้วย
oistha
Bronz Member
 
โพสต์: 6
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 12:55

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย nuiz » 24 ก.พ. 2011 09:41

อ่อ มันยังไม่ใช่ SIP Message ตอนที่โทรออกไปยัง Mounthmun อ่ะครับ มันเป็นแค่ SIP Message เอาไว้เช็ค Status Link ระหว่าง Asterisk กับ Mouthmun ที่เขาเรียกว่า OPTIONS Message หน่ะครับ แต่ Mounthmun ก็ไม่รองรับเพราะว่าเขาตอบกลับมาด้วย 404 Not Found

SIP Message ที่เกิดตอนโทรออกจะเป็น INVITE ครับ

งั้นเรายกเลิกไม่ให้ Asterisk ส่ง OPTIONS ออกไปก่อนครับ โดยในคอนฟิกของ Trunks ของ Mouthmun ตรงที่เป็น PEER Details ให้เพิ่มบรรทัด qualify=no ครับ

ถ้าต้องการเปลี่ยน Unknown เป็นชื่ออื่น เช่น ชื่อ SIP Server หรือชื่ออะไรก็ได้ ให้ทำตามบทความนี้ เปลี่ยน Unknown เป็นชื่ออื่น มันเป็นบทความที่ผมยกตัวอย่างเฉพาะ Asterisk แท้ๆ ถ้าใช้ Elastix ให้ไปเพิ่มบรรทัด callerid ไว้ในไฟล์ sip_custom.conf ครับ และดูบทความนี้เพิ่มด้วยก็ดี การแปลง User-Agent ให้เป็นชื่อของเราเอง

เครื่อง Elastix เครื่องนี้ติดตั้งอยู่หลัง NAT ป่าวครับ และไอพี 192.100.10.2 นี่เป็นไอพีจริง หรือไอพีปลอมแต่ตั้งให้เหมือนไอพีจริง ถ้าเครื่องอยู่หลัง NAT ให้ดูบทความนี้ด้วยนะครับ เทคนิคติดตั้ง Asterisk ไว้หลัง NAT และ เทคนิคติดตั้ง Asterisk ไว้หลัง NAT แบบมีตัวอย่างให้ดู

ถ้าลองแก้ไขตามบทความที่ผมแนะนำแล้ว แต่ยังโทรออกไม่ได้อีก รบกวนส่งหน้าคอนฟิกของ Trunks Mouthmun แล้วก็ Outbound Routes หน่อยอ่ะครับ
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 7001
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย oistha » 25 ก.พ. 2011 13:01

คุณหนุ่ย ครับ สามารถ ทำได้แล้ว พอดี ไปเจอ จาก หนึ่ง ทำตาม step ก็ได้เลย
เดี๋ยวผมจะมาลงให้อีกที
oistha
Bronz Member
 
โพสต์: 6
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 12:55

Re: คุณ หนุ่ยขอทราบการ config กับ sip trunk mouthmun ด้วยครับ

โพสต์โดย oistha » 25 ก.พ. 2011 15:38

การ config trunk mouthmun

username=xxxx
type=peer
qualify=yes
secret=xxxxx
nat=auto
insecure=very
host=voip.mouthmun.com
fromuser=xxxx
fromdomain=voip.mouthmun.com
dtmfmode=rfc2833&rfc2833
disallow=all
allow=g729&ilbc&ulaw&alaw



incoming config

username=xxx
type=user
secret=xxxx
nat=auto
insecure=very
host=voip.mouthmun.com
fromdomain=voip.mouthmun.com
dtmfmode=rfc2833
disallow=all
context=from-internal
allow=g729&ulaw&alaw&ilbc




register config
xxxxx:xxxxxx@voip.mouthmun.com/xxxxx



work ครับ

คุณหนุ่ย ขอถามต่อ อีกหน่อยว่า หากว่า เรา ต้องการ ให้ กดตัด 9 แล้ว ตามด้วย 22 แต่ว่า 22 นี้ จะ link โทรออกไปยังเบอร์ xxxxxxxx
คือว่าไม่อยากกดเบอร์ ยาวนะครับ
oistha
Bronz Member
 
โพสต์: 6
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 12:55

ต่อไป

ย้อนกลับไปยัง Elastix - Unified Communications Software

ผู้ใช้งานขณะนี้

กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 2 ท่าน

cron