แต่ติดปัญหาคือใช้สายโทรศัพท์ RJ-11 ต่อเข้ากับ Card X100P แล้วเพื่อทดสอบ โทรเข้ามาแล้วเสียงในโทรศัพท์ดังเหมือนไม่มีคนรับสายครับ และไม่ได้ยินข้อความเสียงที่อัดไว้ใน asterisk (welcome.gsm) ครับ
รบกวนขอคำแนะนำด้วยครับ ว่าต้อง Config ตรงไหนเพิ่มเติมครับ
OS:Ubuntu 11.10
Software
asterisk - 1.8.4.4
dahdi tools - 2.4.1
dahdi - 2.4.1
----------------
sip.conf
- โค้ด: เลือกทั้งหมด
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
[authentication]
[basic-options](!) ; a template
dtmfmode=rfc2833
context=from-office
type=friend
[natted-phone](!,basic-options) ; another template inheriting basic-options
nat=yes
directmedia=no
host=dynamic
[public-phone](!,basic-options) ; another template inheriting basic-options
nat=no
directmedia=yes
[my-codecs](!) ; a template for my preferred codecs
disallow=all
allow=ilbc
allow=g729
allow=gsm
allow=g723
allow=ulaw
[ulaw-phone](!) ; and another one for ulaw-only
disallow=all
allow=ulaw
[1000]
type=friend
host=dynamic
username=1000
secret=1000
[2000]
type=friend
host=dynamic
username=2000
secret=2000
[8205]
type=friend
host=dynamic
username=8205
secret=8205
[8206]
type=friend
host=dynamic
username=8206
secret=8206
-------------------
extentions.conf
- โค้ด: เลือกทั้งหมด
[default]
;
; By default we include the demo. In a production system, you
; probably don't want to have the demo there.
;
;include => demo
exten => 1000,1,Dial(SIP/1000)
exten => 2000,1,Dial(SIP/2000)
exten => 8205,1,Answer()
exten => 8205,2,wait(2)
exten => 8205,3,record(/tmp/welcome.gsm)
exten => 8205,4,wait(2)
exten => 8205,5,playback(/tmp/welcome)
exten => 8205,6,wait(2)
exten => 8205,7,Hangup
exten => 8206,1,Playback(/tmp/welcome)
exten => s,1,Answer()
exten => s,2,Background(/tmp/welcome)
exten => s,3,WaitExten()
------------------------
root@Asterisk:/etc/asterisk# lspci
- โค้ด: เลือกทั้งหมด
00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 0e)
00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller (rev 0e)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
01:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:0a.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
01:0b.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
----------------------------------------------------------
root@Asterisk:/etc/asterisk# service dahdi status
- โค้ด: เลือกทั้งหมด
### Span 1: WCFXO/0 "Generic Clone Board 1" (MASTER)
1 FXO FXSKS (SWEC: MG2) (battery)
### Span 2: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1"
root@Asterisk:/etc/asterisk#
-------------------------------------------------------