[asterisk-users] Problem getting TDM400P clone card to go off-hook and dial
Stewart Loving-Gibbard
stewlovinggibbard at gmail.com
Sat Apr 2 01:11:40 CDT 2011
I am having problems getting a Nicherons TDM400P wildcard clone to dial out.
Everything appears to be configured correctly, but although I see call
progress, it never seems to actually pick up the phone.
(The following is a test of 911 emergency, where I substitute 811 [repair
service] as the actual number dialed.)
*CLI>
-- Executing [911 at from-internal:1] Goto("SIP/101-00000000",
"nineoneone,s,1") in new stack
-- Goto (nineoneone,s,1)
-- Executing [s at nineoneone:1] Set("SIP/101-00000000",
"SET_EMERG_FLAG=0") in new stack
-- Executing [s at nineoneone:2] ChanIsAvail("SIP/101-00000000", "DAHDI/4")
in new stack
-- Hanging up on 'DAHDI/4-1'
-- Hungup 'DAHDI/4-1'
-- Executing [s at nineoneone:3] Set("SIP/101-00000000",
"GLOBAL(EMERGENCY)=1") in new stack
== Setting global variable 'EMERGENCY' to '1'
-- Executing [s at nineoneone:4] Set("SIP/101-00000000",
"SET_EMERG_FLAG=1") in new stack
-- Executing [s at nineoneone:5] Dial("SIP/101-00000000", "DAHDI/4/811") in
new stack
-- Called 4/811
-- DAHDI/4-1 is ringing
== Extension Changed 101[from-internal] new state Idle for Notify User 101
== Extension Changed 101[from-internal] new state Idle for Notify User 103
-- Hanging up on 'DAHDI/4-1'
-- Hungup 'DAHDI/4-1'
== Spawn extension (nineoneone, s, 5) exited non-zero on
'SIP/101-00000000'
-- Executing [h at nineoneone:1] GotoIf("SIP/101-00000000", "1?3") in new
stack
-- Goto (nineoneone,h,3)
-- Executing [h at nineoneone:3] Set("SIP/101-00000000",
"GLOBAL(EMERGENCY)=0") in new stack
== Setting global variable 'EMERGENCY' to '0'
*CLI>
When "DAHDI/4-1 is ringing" appears I indeed hear ringing progress tones,
but they appear to be coming from Asterisk, as the card does not pick up the
phone at this point, or ever. I'm using jack #4 on the board, which is
supposedly an FXO port.
Here's the output from various relevant tools & config files:
------------------
*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret
Blocked State
pseudo default
default In Service
1 from-pstn
default In Service
2 from-pstn
default In Service
3 from-internal
default In Service
4 from-internal
default In Service
-------------------
dahdi-channels.conf:
....................
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 1 06:52:48 2011
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is
intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global
settings
;
; Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/4/1 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
callerid=
group=
context=default
;;; line="3 WCTDM/4/2 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid="Channel 3" <4003>
mailbox=4003
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default
;;; line="4 WCTDM/4/3 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid="Channel 4" <4004>
mailbox=4004
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default
; Span 2: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1"
------------------------------------------
chan_dahdi.conf
...............
...
[channels]
#include /etc/asterisk/dahdi-channels.conf
...
---------------------------------------------
root at Trixie:/etc/asterisk# dahdi_hardware
pci:0000:02:01.0 wctdm+ e159:0001 Wildcard TDM400P REV I
---------------------------------------
root at Trixie:~# lsdahdi
### Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
1 FXO FXSKS (In use) (SWEC: MG2)
2 FXO FXSKS (In use) (SWEC: MG2)
3 FXS FXOKS (In use) (SWEC: MG2)
4 FXS FXOKS (In use) (SWEC: MG2)
### Span 2: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1"
root at Trixie:~#
-------------------------------------------------
extensions.conf (excerpt)
; Global variables
[globals]
; Stuff for 911
EMERGENCY=0
EMERGENCY_TRUNK=DAHDI/4
; Change this for production use:
;EMERGENCY_NUM=some_test_phone_number
EMERGENCY_NUM=811
;EMERGENCY_NUM=911
...
; Which trunk to use for any DAHDI (PSTN-'Hard Line'-AKA POTS) type stuff
POTSTRUNK=DAHDI/4
...
; Emergency -- DO NOT REMOVE!
exten => 911,1,Goto(nineoneone,s,1)
...
; EMERGENCY! See http://www.voip-info.org/wiki-Asterisk+tips+911 for
details.
[nineoneone]
exten => s,1,Set(SET_EMERG_FLAG=0)
exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK})
exten => s,n,Set(GLOBAL(EMERGENCY)=1)
exten => s,n,Set(SET_EMERG_FLAG=1)
exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM})
exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY} = 1]?inprogress)
exten => s,n,SoftHangup(${EMERGENCY_TRUNK}-1)
exten => s,n,Wait(12)
exten => s,n,Goto(checkavail)
exten => s,s+2(inprogress),Congestion
exten => s,checkavail+101(notavail),Goto(trunkbusy)
exten => h,1,GotoIf($[${SET_EMERG_FLAG} = 1]?3)
exten => h,3,Set(GLOBAL(EMERGENCY)=0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110401/2f76118d/attachment.htm>
More information about the asterisk-users
mailing list