Hello Users.
I am having a problem in getting my Trixbox server to make/receieve calls from a POTS line.
i am running Asterisk 1.6 with a Yeastar TDM 800 Analog Interface Card
Dahdi Drivers are installed as per instruction on the manufactorers website.
The POTS line comes into the server room via Patching from our exchange to our switch room then is patched to a pannel in our server room in which we have a secondary modtap (we have tried a master also) with a phone extension that connects to an RJ11 which then goes into the one of the 8 port taps that came with the TDM Card.
We can make internal calls no problem. We have set up inbound and outbound routes.
The inbound route points to a ring group with a 20 second time to ring before answer which currently is pointed to ALL of our extensions.
I get these following outputs from running the Dahdi Commands.
Dahdi Show Status
NX24-PBX*CLI> dahdi show status
Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO
YSTDM8xx REV E Board 9 OK 0 0 0 CAS Unk YEL 0 db (CSU)/0-133 feet (DSX-1)
Dahdi Show Channels
NX24-PBX*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo from-internal en default In Service
1 from-internal en default In Service
2 from-internal en default In Service
4 from-internal en default In Service
5 from-internal en default In Service
6 from-internal en default In Service
7 from-pstn en default In Service
8 from-pstn en default In Service
Dahdi show channel 7
NX24-PBXCLI> dahdi show channel 7
Channel: 7LI>
File Descriptor: 21
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID name:
Mailbox: none
Destroy: 0
InAlarm: 1
Signalling Type: FXS Kewlstart
Radio: 0
Owner:
Real:
Callwait:
Threeway:
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: no
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: no
Echo Cancellation:
128 taps
(unless TDM bridged) currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook
Dahdi show channel 8
NX24-PBXCLI> dahdi show channel 8
Channel: 8LI>
File Descriptor: 22
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID name:
Mailbox: none
Destroy: 0
InAlarm: 1LI>
Signalling Type: FXS Kewlstart
Radio: 0
Owner:
Real:
Callwait:
Threeway:
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: no
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: no
Echo Cancellation:
128 taps
NX24-PBX(unless TDM bridged) currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook
I get this output when trying to make an outbound call
= Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
– Executing [9123@from-internal:1] Macro(“SIP/8888-0000000a”, “user-calleri d,SKIPTTL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/8888-0000000a”, “AMPUSER=888 8”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/8888-0000000a”, "0?report ") in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/8888-0000000a”, “1?Set(RE ALCALLERIDNUM=8888)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/8888-0000000a”, “AMPUSER=888 8”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/8888-0000000a”, “AMPUSERCIDN AME=Chris Desktop(Xlite)”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/8888-0000000a”, "0?report ") in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/8888-0000000a”, “AMPUSERCID= 8888”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/8888-0000000a”, “CALLERID(al l)=“Chris Desktop(Xlite)” <8888>”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/8888-0000000a”, “REALCALLERI DNUM=8888”) in new stack
– Executing [s@macro-user-callerid:10] ExecIf(“SIP/8888-0000000a”, “0?Set(C HANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“SIP/8888-0000000a”, “1?conti nue”) in new stack
– Goto (macro-user-callerid,s,20)
– Executing [s@macro-user-callerid:20] NoOp(“SIP/8888-0000000a”, “Using Cal lerID “Chris Desktop(Xlite)” <8888>”) in new stack
– Executing [9123@from-internal:2] Set(“SIP/8888-0000000a”, “NODEST=") in new stack
– Executing [9123@from-internal:3] Macro(“SIP/8888-0000000a”, “record-enabl e,8888,OUT,”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/8888-0000000a”, “1?check” ) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/8888-0000000a”, “recordingch eck,20100406-103001,1270546201.15”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20100406-103001,1270546201.15: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“SIP/8888-0000000a”, “”) in new stack
– Executing [9123@from-internal:4] Macro(“SIP/8888-0000000a”, “dialout-trun k,1,123,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/8888-0000000a”, “DIAL_TRUNK= 1”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/8888-0000000a”, “0?sub-p incheck,s,1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/8888-0000000a”, “0?disabl etrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/8888-0000000a”, “DIAL_NUMBER =123”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/8888-0000000a”, "DIAL_TRUNK OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/8888-0000000a”, “OUTBOUND_GR OUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/8888-0000000a”, “0?nomax” ) in new stack
– Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/8888-0000000a”, “0?chanfu ll”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/8888-0000000a”, “0?skipou tcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/8888-0000000a”, “DIAL_TRUNK _OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/8888-0000000a”, “outbound -callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/8888-0000000a”, “0?Se t(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/8888-0000000a”, “0?Se t(REALCALLERIDNUM=8888)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/8888-0000000a”, “1?no rmcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/8888-0000000a”, “USEROUT CID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/8888-0000000a”, “EMERGEN CYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/8888-0000000a”, “TRUNKOU TCID=02392241955”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/8888-0000000a”, “1?tr unkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/8888-0000000a”, “1?S et(CALLERID(all)=02392241955)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/8888-0000000a”, “0?S et(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/8888-0000000a”, “0?S et(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] ExecIf(“SIP/8888-0000000a”, “0?AGI(f ixlocalprefix)”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/8888-0000000a”, "OUTNUM=123 ") in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/8888-0000000a”, “custom=DAH DI/8”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/8888-0000000a”, “0?Set(D IAL_TRUNK_OPTIONS=M(setmusic^))”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/8888-0000000a”, “dialout- trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/8888-0000 000a”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/8888-0000000a”, “0?bypas s,1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/8888-0000000a”, “0?custo mtrunk”) in new stack
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/8888-0000000a”, “DAHDI/8/1 23,300,”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:20] Goto(“SIP/8888-0000000a”, “s-CHANUNA VAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/8888-0000000a ", “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp(“SIP/8888-0000000a”, “TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to oth er trunks”) in new stack
– Executing [9123@from-internal:5] Macro(“SIP/8888-0000000a”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Playback(“SIP/8888-0000000a”, “all-circui ts-busy-now,noanswer”) in new stack
– Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
– Executing [s@macro-outisbusy:2] Playback(“SIP/8888-0000000a”, “pls-try-ca ll-later,noanswer”) in new stack
– Playing ‘pls-try-call-later.ulaw’ (language ‘en’)
– Executing [s@macro-outisbusy:3] Macro(“SIP/8888-0000000a”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“SIP/8888-0000000a”, “vw”) in n ew stack
– Executing [s@macro-hangupcall:2] NoCDR(“SIP/8888-0000000a”, “”) in new st ack
– Executing [s@macro-hangupcall:3] GotoIf(“SIP/8888-0000000a”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“SIP/8888-0000000a”, "1?skipblkvm ") in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“SIP/8888-0000000a”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“SIP/8888-0000000a”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/8888-0000 000a’ in macro ‘hangupcall’
== Spawn extension (macro-outisbusy, s, 3) exited non-zero on ‘SIP/8888-000000 0a’ in macro ‘outisbusy’
== Spawn extension (from-internal, 9123, 5) exited non-zero on ‘SIP/8888-00000 00a’
– Executing [h@from-internal:1] Macro(“SIP/8888-0000000a”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“SIP/8888-0000000a”, “vw”) in n ew stack
– Executing [s@macro-hangupcall:2] NoCDR(“SIP/8888-0000000a”, “”) in new st ack
– Executing [s@macro-hangupcall:3] GotoIf(“SIP/8888-0000000a”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“SIP/8888-0000000a”, "1?skipblkvm ") in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“SIP/8888-0000000a”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“SIP/8888-0000000a”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/8888-0000 000a’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/8888-0000000a '
and this output when making an inbound call
Manager ‘admin’ logged off from 127.0.0.1
– Executing [s@from-pstn:1] Set(“DAHDI/8-1”, “__FROM_DID=s”) in new stack
– Executing [s@from-pstn:2] Gosub(“DAHDI/8-1”, “app-blacklist-check,s,1”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“DAHDI/8-1”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Return(“DAHDI/8-1”, “”) in new stack
– Executing [s@from-pstn:3] ExecIf(“DAHDI/8-1”, “1 ?Set(CALLERID(name)=)”) in new stack
– Executing [s@from-pstn:4] Ringing(“DAHDI/8-1”, “”) in new stack
– Executing [s@from-pstn:5] Set(“DAHDI/8-1”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [s@from-pstn:6] Set(“DAHDI/8-1”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [s@from-pstn:7] Goto(“DAHDI/8-1”, “from-did-direct,8888,1”) in new stack
– Goto (from-did-direct,8888,1)
– Executing [8888@from-did-direct:1] Macro(“DAHDI/8-1”, “exten-vm,novm,8888”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“DAHDI/8-1”, “user-callerid”) in new stack
– Executing [s@macro-user-callerid:1] Set(“DAHDI/8-1”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“DAHDI/8-1”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“DAHDI/8-1”, “1?Set(REALCALLERIDNUM=)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“DAHDI/8-1”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:5] Set(“DAHDI/8-1”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“DAHDI/8-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing [s@macro-user-callerid:11] GotoIf(“DAHDI/8-1”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:12] Set(“DAHDI/8-1”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“DAHDI/8-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,20)
– Executing [s@macro-user-callerid:20] NoOp(“DAHDI/8-1”, “Using CallerID “” <>”) in new stack
– Executing [s@macro-exten-vm:2] Set(“DAHDI/8-1”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“DAHDI/8-1”, “VMBOX=novm”) in new stack
– Executing [s@macro-exten-vm:4] Set(“DAHDI/8-1”, “EXTTOCALL=8888”) in new stack
– Executing [s@macro-exten-vm:5] Set(“DAHDI/8-1”, “CFUEXT=”) in new stack
– Executing [s@macro-exten-vm:6] Set(“DAHDI/8-1”, “CFBEXT=”) in new stack
– Executing [s@macro-exten-vm:7] Set(“DAHDI/8-1”, “RT=”"") in new stack
– Executing [s@macro-exten-vm:8] Macro(“DAHDI/8-1”, “record-enable,8888,IN”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“DAHDI/8-1”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“DAHDI/8-1”, “recordingcheck,20100406-103229,1270546347.16”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
== Spawn extension (macro-record-enable, s, 4) exited non-zero on ‘DAHDI/8-1’ in macro ‘record-enable’
== Spawn extension (macro-exten-vm, s, 8) exited non-zero on ‘DAHDI/8-1’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 8888, 1) exited non-zero on ‘DAHDI/8-1’
– Hungup ‘DAHDI/8-1’
== Manager ‘admin’ logged on from 127.0.0.1
sometimes the extenstion rings sometimes it does not. but the ringing ends almost instantly.
not really sure where to take it from here. any pointers?