<p>Btw, red alarms means phisical problems....check cable first.</p>
<div class="gmail_quote">El 27/04/2012 10:23, "Danny Dias" <<a href="mailto:ing.diasdanny@gmail.com">ing.diasdanny@gmail.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Did you asked OpenVOX for support?</p>
<div class="gmail_quote">El 27/04/2012 01:48, "John Millican" <<a href="mailto:john@millican.us" target="_blank">john@millican.us</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
I have an OpenVox A400E02 (2FXO) in a box running Debian 6.0.2 running Asterisk 1.8.6.0. I have to POTS line on it from Verizon in Virginia, USA. Whenever I place a call to one of the two lines I get a red alam and then it clears and repeats this till I hang up. There is no caller ID on the Line (boss won't pay for it).<br>
Any help is most appreciated.<br>
TIA,<br>
JohnM<br>
<br>
lspci relevent output:<br>
08:00.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface<br>
<br>
cat /proc/interrupts:<br>
19: 54390 1286431613 IO-APIC-fasteoi wctdm<br>
(no shared interupts)<br>
<br>
dahdi show channels<br>
Chan Extension Context Language MOH Interpret Blocked State<br>
pseudo default default In Service<br>
1 altrurstn default In Service<br>
2 altrurstn default In Service<br>
<br>
PBX1:/home/jmillican# dahdi_cfg -vvv<br>
DAHDI Tools Version - 2.5.0.1<br>
<br>
DAHDI Version: 2.5.0.1<br>
Echo Canceller(s): HWEC, MG2<br>
Configuration<br>
======================<br>
<br>
Channel map:<br>
<br>
Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)<br>
Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)<br>
<br>
2 channels to configure.<br>
<br>
Setting echocan for channel 1 to mg2<br>
Setting echocan for channel 2 to mg2<br>
<br>
<br>
in chan_dahdi.conf<br>
[channels]<br>
context=altrurstn<br>
signalling=fxs_ks<br>
rxwink=300<br>
usecallerid=yes<br>
hidecallerid=no<br>
callwaiting=yes<br>
usecallingpres=yes<br>
callwaitingcallerid=yes<br>
threewaycalling=yes<br>
transfer=yes<br>
canpark=yes<br>
cancallforward=yes<br>
callreturn=yes<br>
echocancel=yes<br>
echocancelwhenbridged=no<br>
faxdetect=incoming<br>
echotraining=800<br>
rxgain=0.0<br>
txgain=0.0<br>
callgroup=1<br>
pickupgroup=1<br>
<br>
immediate=no<br>
<br>
#include dahdi_additional.conf<br>
#include dahdi-channels.conf<br>
<br>
in dahdi-channels.conf<br>
; Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)<br>
;;; line="1 WCTDM/4/0"<br>
signalling=fxs_ks<br>
callerid=asreceived<br>
group=0<br>
context=altrurstn<br>
channel => 1<br>
callerid=<br>
group=<br>
context=altrurstn<br>
<br>
;;; line="2 WCTDM/4/1"<br>
signalling=fxs_ks<br>
callerid=asreceived<br>
group=0<br>
context=altrurstn<br>
channel => 2<br>
callerid=<br>
group=<br>
context=altrurstn<br>
<br>
/etc/dahdi/modules loads only wctdm.<br>
<br>
/etc/dahdi/system.conf:<br>
fxsks=1<br>
echocanceller=mg2,1<br>
fxsks=2<br>
echocanceller=mg2,2<br>
<br>
Relevent Extensions.conf:<br>
[altrurstn-in]<br>
<br>
exten => s,1,Wait(1);<br>
exten => s,n,Set(CDR(accountcode)=<u></u>fromoustide)<br>
exten => s,n,Set(CDR(userfield)=POTS-${<u></u>EXTEN})<br>
exten => s,n,GoTo(999,1);<br>
<br>
exten => 999,1,Answer();<br>
exten => 999,n,NoOp(${CALLERID(all)});<br>
exten => 999,n,wait(1);<br>
exten => 999,n,Set(foo=0);<br>
exten => 999,n,Set(count=0);<br>
exten => 999,n,Read(foo,0001&0002,4,,,<u></u>2);<br>
exten => 999,n,GoToIf($["${foo}"="9"]?<u></u>directory);<br>
exten => 999,n,GoToIf($["${foo}"="0"]?<u></u>oper)<br>
exten => 999,n,GoToIf($["${LEN(${foo})}<u></u>" < "4"]?restart:altrurstn,${foo},<u></u>1);<br>
exten => 999,n(restart),Set(COUNT=$[${<u></u>COUNT} + 1]);<br>
exten => 999,n,NoOp(${COUNT});<br>
exten => 999,n,GoToIf($["${COUNT}" > "1"]?oper:continue);<br>
exten => 999,n(continue),Read(foo,0002,<u></u>4,,,2);<br>
exten => 999,n,GoToIf($["${foo}"="9"]?<u></u>directory);<br>
exten => 999,n,GoToIf($["${foo}"="0"]?<u></u>oper)<br>
exten => 999,n,GoToIf($["${LEN(${foo})}<u></u>"<"4"]?restart:altrurstn,${<u></u>foo},1);<br>
exten => 999,n(oper),GoTo(0,1);<br>
exten => 999,n(directory),Directory(<u></u>default,altrurstn,p(500));<br>
exten => 999,n,Hangup();<br>
<br>
What I get in the CLI:<br>
[Apr 26 19:26:53] -- Starting simple switch on 'DAHDI/1-1'<br>
[Apr 26 19:26:53] -- Executing [s@altrurstn-in:1] Wait("DAHDI/1-1", "1") in new stack<br>
[Apr 26 19:26:54] -- Executing [s@altrurstn-in:2] Set("DAHDI/1-1", "CDR(accountcode)=fromoustide"<u></u>) in new stack<br>
[Apr 26 19:26:54] -- Executing [s@altrurstn-in:3] Set("DAHDI/1-1", "CDR(userfield)=POTS-s") in new stack<br>
[Apr 26 19:26:54] -- Executing [s@altrurstn-in:4] Goto("DAHDI/1-1", "999,1") in new stack<br>
[Apr 26 19:26:54] -- Goto (altrurstn-in,999,1)<br>
[Apr 26 19:26:54] -- Executing [999@altrurstn-in:1] Answer("DAHDI/1-1", "") in new stack<br>
[Apr 26 19:26:54] -- Executing [999@altrurstn-in:2] NoOp("DAHDI/1-1", """ <>") in new stack<br>
[Apr 26 19:26:54] -- Executing [999@altrurstn-in:3] Wait("DAHDI/1-1", "1") in new stack<br>
[Apr 26 19:26:55] WARNING[11189]: chan_dahdi.c:7728 handle_alarms: Detected alarm on channel 1: Red Alarm<br>
[Apr 26 19:26:55] == Spawn extension (altrurstn-in, 999, 3) exited non-zero on 'DAHDI/1-1'<br>
[Apr 26 19:26:55] -- Hanging up on 'DAHDI/1-1'<br>
[Apr 26 19:26:55] -- Hungup 'DAHDI/1-1'<br>
[Apr 26 19:26:58] NOTICE[11159]: sig_analog.c:3709 analog_handle_init_event: Alarm cleared on channel 1<br>
[Apr 26 19:26:59] -- Starting simple switch on 'DAHDI/1-1'<br>
[Apr 26 19:26:59] -- Executing [s@altrurstn-in:1] Wait("DAHDI/1-1", "1") in new stack<br>
[Apr 26 19:27:00] -- Executing [s@altrurstn-in:2] Set("DAHDI/1-1", "CDR(accountcode)=fromoustide"<u></u>) in new stack<br>
[Apr 26 19:27:00] -- Executing [s@altrurstn-in:3] Set("DAHDI/1-1", "CDR(userfield)=POTS-s") in new stack<br>
[Apr 26 19:27:00] -- Executing [s@altrurstn-in:4] Goto("DAHDI/1-1", "999,1") in new stack<br>
[Apr 26 19:27:00] -- Goto (altrurstn-in,999,1)<br>
[Apr 26 19:27:00] -- Executing [999@altrurstn-in:1] Answer("DAHDI/1-1", "") in new stack<br>
[Apr 26 19:27:00] -- Executing [999@altrurstn-in:2] NoOp("DAHDI/1-1", """ <>") in new stack<br>
[Apr 26 19:27:00] -- Executing [999@altrurstn-in:3] Wait("DAHDI/1-1", "1") in new stack<br>
[Apr 26 19:27:01] WARNING[11190]: chan_dahdi.c:7728 handle_alarms: Detected alarm on channel 1: Red Alarm<br>
[Apr 26 19:27:01] == Spawn extension (altrurstn-in, 999, 3) exited non-zero on 'DAHDI/1-1'<br>
[Apr 26 19:27:01] -- Hanging up on 'DAHDI/1-1'<br>
[Apr 26 19:27:01] -- Hungup 'DAHDI/1-1'<br>
[Apr 26 19:27:04] NOTICE[11159]: sig_analog.c:3709 analog_handle_init_event: Alarm cleared on channel 1<br>
[Apr 26 19:27:04] -- Starting simple switch on 'DAHDI/1-1' (This is where I hang up the call)<br>
[Apr 26 19:27:04] -- Executing [s@altrurstn-in:1] Wait("DAHDI/1-1", "1") in new stack<br>
[Apr 26 19:27:05] -- Executing [s@altrurstn-in:2] Set("DAHDI/1-1", "CDR(accountcode)=fromoustide"<u></u>) in new stack<br>
[Apr 26 19:27:05] -- Executing [s@altrurstn-in:3] Set("DAHDI/1-1", "CDR(userfield)=POTS-s") in new stack<br>
[Apr 26 19:27:05] -- Executing [s@altrurstn-in:4] Goto("DAHDI/1-1", "999,1") in new stack<br>
[Apr 26 19:27:05] -- Goto (altrurstn-in,999,1)<br>
[Apr 26 19:27:05] -- Executing [999@altrurstn-in:1] Answer("DAHDI/1-1", "") in new stack<br>
[Apr 26 19:27:05] -- Executing [999@altrurstn-in:2] NoOp("DAHDI/1-1", """ <>") in new stack<br>
[Apr 26 19:27:05] -- Executing [999@altrurstn-in:3] Wait("DAHDI/1-1", "1") in new stack<br>
[Apr 26 19:27:06] -- Executing [999@altrurstn-in:4] Set("DAHDI/1-1", "foo=0") in new stack<br>
[Apr 26 19:27:06] -- Executing [999@altrurstn-in:5] Set("DAHDI/1-1", "count=0") in new stack<br>
[Apr 26 19:27:06] -- Executing [999@altrurstn-in:6] Read("DAHDI/1-1", "foo,0001&0002,4,,,2") in new stack<br>
[Apr 26 19:27:06] -- Accepting a maximum of 4 digits.<br>
[Apr 26 19:27:06] -- <DAHDI/1-1> Playing '0001.gsm' (language 'en')<br>
[Apr 26 19:27:09] -- <DAHDI/1-1> Playing '0002.gsm' (language 'en')<br>
[Apr 26 19:27:17] -- User entered nothing.<br>
<br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</blockquote></div>
</blockquote></div>