<br>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.<br><br>(The following is a test of 911 emergency, where I substitute 811 [repair service] as the actual number dialed.)<br>
<br>*CLI><br> -- Executing [911@from-internal:1] Goto("SIP/101-00000000", "nineoneone,s,1") in new stack<br> -- Goto (nineoneone,s,1)<br> -- Executing [s@nineoneone:1] Set("SIP/101-00000000", "SET_EMERG_FLAG=0") in new stack<br>
-- Executing [s@nineoneone:2] ChanIsAvail("SIP/101-00000000", "DAHDI/4") in new stack<br> -- Hanging up on 'DAHDI/4-1'<br> -- Hungup 'DAHDI/4-1'<br> -- Executing [s@nineoneone:3] Set("SIP/101-00000000", "GLOBAL(EMERGENCY)=1") in new stack<br>
== Setting global variable 'EMERGENCY' to '1'<br> -- Executing [s@nineoneone:4] Set("SIP/101-00000000", "SET_EMERG_FLAG=1") in new stack<br> -- Executing [s@nineoneone:5] Dial("SIP/101-00000000", "DAHDI/4/811") in new stack<br>
-- Called 4/811<br> -- DAHDI/4-1 is ringing<br> == Extension Changed 101[from-internal] new state Idle for Notify User 101 <br> == Extension Changed 101[from-internal] new state Idle for Notify User 103 <br> -- Hanging up on 'DAHDI/4-1'<br>
-- Hungup 'DAHDI/4-1'<br> == Spawn extension (nineoneone, s, 5) exited non-zero on 'SIP/101-00000000'<br> -- Executing [h@nineoneone:1] GotoIf("SIP/101-00000000", "1?3") in new stack<br>
-- Goto (nineoneone,h,3)<br> -- Executing [h@nineoneone:3] Set("SIP/101-00000000", "GLOBAL(EMERGENCY)=0") in new stack<br> == Setting global variable 'EMERGENCY' to '0'<br>*CLI><br>
<br>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.<br>
<br>Here's the output from various relevant tools & config files:<br><br>------------------<br>*CLI> dahdi show channels<br> Chan Extension Context Language MOH Interpret Blocked State <br>
pseudo default default In Service<br> 1 from-pstn default In Service<br> 2 from-pstn default In Service<br>
3 from-internal default In Service<br> 4 from-internal default In Service<br>-------------------<br><br>dahdi-channels.conf:<br>
....................<br><br>; Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 1 06:52:48 2011<br>; If you edit this file and execute /usr/sbin/dahdi_genconf again,<br>; your manual changes will be LOST.<br>; Dahdi Channels Configurations (chan_dahdi.conf)<br>
;<br>; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended<br>; to be #include-d by /etc/chan_dahdi.conf that will include the global settings<br>;<br><br>; Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER) <br>
;;; line="1 WCTDM/4/0 FXSKS (SWEC: MG2)"<br>signalling=fxs_ks<br>callerid=asreceived<br>group=0<br>context=from-pstn<br>channel => 1<br>callerid=<br>group=<br>context=default<br><br>;;; line="2 WCTDM/4/1 FXSKS (SWEC: MG2)"<br>
signalling=fxs_ks<br>callerid=asreceived<br>group=0<br>context=from-pstn<br>channel => 2<br>callerid=<br>group=<br>context=default<br><br>;;; line="3 WCTDM/4/2 FXOKS (SWEC: MG2)"<br>signalling=fxo_ks<br>callerid="Channel 3" <4003><br>
mailbox=4003<br>group=5<br>context=from-internal<br>channel => 3<br>callerid=<br>mailbox=<br>group=<br>context=default<br><br>;;; line="4 WCTDM/4/3 FXOKS (SWEC: MG2)"<br>signalling=fxo_ks<br>callerid="Channel 4" <4004><br>
mailbox=4004<br>group=5<br>context=from-internal<br>channel => 4<br>callerid=<br>mailbox=<br>group=<br>context=default<br><br><br>; Span 2: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1" <br><br>------------------------------------------<br>
chan_dahdi.conf<br>...............<br><br>...<br><br>[channels]<br><br>#include /etc/asterisk/dahdi-channels.conf<br>...<br><br>---------------------------------------------<br><br>root@Trixie:/etc/asterisk# dahdi_hardware<br>
pci:0000:02:01.0 wctdm+ e159:0001 Wildcard TDM400P REV I<br><br><br>---------------------------------------<br><br>root@Trixie:~# lsdahdi<br>### Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER) <br>
1 FXO FXSKS (In use) (SWEC: MG2) <br> 2 FXO FXSKS (In use) (SWEC: MG2) <br> 3 FXS FXOKS (In use) (SWEC: MG2) <br> 4 FXS FXOKS (In use) (SWEC: MG2) <br>### Span 2: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1" <br>
root@Trixie:~# <br><br><br>-------------------------------------------------<br><br>extensions.conf (excerpt)<br><br>; Global variables<br>[globals]<br><br>; Stuff for 911<br>EMERGENCY=0<br>EMERGENCY_TRUNK=DAHDI/4<br>; Change this for production use:<br>
;EMERGENCY_NUM=some_test_phone_number<br>EMERGENCY_NUM=811<br>;EMERGENCY_NUM=911<br><br><br>...<br><br>; Which trunk to use for any DAHDI (PSTN-'Hard Line'-AKA POTS) type stuff<br>POTSTRUNK=DAHDI/4<br><br>...<br><br>
; Emergency -- DO NOT REMOVE!<br>exten => 911,1,Goto(nineoneone,s,1) <br><br>...<br><br><br>; EMERGENCY! See <a href="http://www.voip-info.org/wiki-Asterisk+tips+911">http://www.voip-info.org/wiki-Asterisk+tips+911</a> for details.<br>
[nineoneone]<br>exten => s,1,Set(SET_EMERG_FLAG=0)<br>exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK})<br>exten => s,n,Set(GLOBAL(EMERGENCY)=1)<br>exten => s,n,Set(SET_EMERG_FLAG=1)<br>exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM})<br>
exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY} = 1]?inprogress)<br>exten => s,n,SoftHangup(${EMERGENCY_TRUNK}-1)<br>exten => s,n,Wait(12)<br>exten => s,n,Goto(checkavail)<br>exten => s,s+2(inprogress),Congestion<br>
exten => s,checkavail+101(notavail),Goto(trunkbusy)<br>exten => h,1,GotoIf($[${SET_EMERG_FLAG} = 1]?3)<br>exten => h,3,Set(GLOBAL(EMERGENCY)=0)<br><br><br><br>