Problems configuring TE210P in new 1.6 install

Hi,

I have a brand new 1.6 install on centos 5.5 using a TE210P. The two red lights ont he back of the card are pulsing evenly which aparently means;

So I know I’m on the right track (hopefully).

When I look at my PRI spans I get the following;

thpbx1*CLI> pri show span 1/0 Primary D-channel: 24 Status: Provisioned, In Alarm, Down, Active Switchtype: National ISDN Type: CPE Window Length: 0/7 Sentrej: 0 SolicitFbit: 0 Retrans: 0 Busy: 0 Overlap Dial: 0 Logical Channel Mapping: 0 T200 Timer: 1000 T203 Timer: 10000 T305 Timer: 30000 T308 Timer: 4000 T309 Timer: -1 T313 Timer: 4000 N200 Counter: 3 Overlap Recv: No
I’m in the UK and have an ISDN30 line with 8 lines, but have no idea where I configure this!!

I’ve changed the two zone parameters in /etc/dahdi/system.conf but thats all I could find to change.
I was hoping setup-pstn would detect the line type and do all this for me :frowning:

Can anyone help?

Hi

Looking at what you have configured , its set as T1 also did you set the jumper ?

You need to configure it as e1

Is the circuit brought into service by BT ?

Ian
cyber-cottage.co.uk

[quote=“ianplain”]Hi

Looking at what you have configured , its set as T1 also did you set the jumper ?

You need to configure it as e1

Is the circuit brought into service by BT ?

Ian
cyber-cottage.co.uk[/quote]
Hi Ian, It is a BT circuit, do I need to switch a jumper on the card then? Ill have a look!

Thanks.

Yes , Its all in the install guide, If its a new ISDN you will need to get BT to activate the line. (test it with a ISDN simulator before calling BT)
digium.com/en/supportcenter … ocs/TE210P
Ian

Hi Ian,

Thanks for your help. I switched the jumper and the span is now showing as active. The BT engineer was out yesterday and made the line live so it should work.

Ive hit a new snag now where I am getting an “all circuits are busy now” error;

thpbx1*CLI> == 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 [907739487428@from-internal:1] Macro("SIP/550-00000001", "user-callerid,SKIPTTL,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/550-00000001", "AMPUSER=550") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/550-00000001", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/550-00000001", "1?Set(REALCALLERIDNUM=550)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/550-00000001", "AMPUSER=550") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/550-00000001", "AMPUSERCIDNAME=Test Phone") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/550-00000001", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/550-00000001", "AMPUSERCID=550") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/550-00000001", "CALLERID(all)="Test Phone" <550>") in new stack -- Executing [s@macro-user-callerid:9] Set("SIP/550-00000001", "REALCALLERIDNUM=550") in new stack -- Executing [s@macro-user-callerid:10] ExecIf("SIP/550-00000001", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:11] GotoIf("SIP/550-00000001", "1?continue") in new stack -- Goto (macro-user-callerid,s,20) -- Executing [s@macro-user-callerid:20] NoOp("SIP/550-00000001", "Using CallerID "Test Phone" <550>") in new stack -- Executing [907739487428@from-internal:2] Set("SIP/550-00000001", "_NODEST=") in new stack -- Executing [907739487428@from-internal:3] Macro("SIP/550-00000001", "record-enable,550,OUT,") in new stack -- Executing [s@macro-record-enable:1] GotoIf("SIP/550-00000001", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] AGI("SIP/550-00000001", "recordingcheck,20100521-114941,1274438981.2") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck recordingcheck,20100521-114941,1274438981.2: Outbound recording not enabled -- <SIP/550-00000001>AGI Script recordingcheck completed, returning 0 -- Executing [s@macro-record-enable:5] MacroExit("SIP/550-00000001", "") in new stack -- Executing [907739487428@from-internal:4] Macro("SIP/550-00000001", "dialout-trunk,1,7739487428,,") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/550-00000001", "DIAL_TRUNK=1") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/550-00000001", "0?sub-pincheck,s,1") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/550-00000001", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/550-00000001", "DIAL_NUMBER=7739487428") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/550-00000001", "DIAL_TRUNK_OPTIONS=tr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/550-00000001", "OUTBOUND_GROUP=OUT_1") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/550-00000001", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/550-00000001", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/550-00000001", "DIAL_TRUNK_OPTIONS=") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/550-00000001", "outbound-callerid,1") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/550-00000001", "0?Set(CALLERPRES()=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/550-00000001", "0?Set(REALCALLERIDNUM=550)") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/550-00000001", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("SIP/550-00000001", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/550-00000001", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/550-00000001", "TRUNKOUTCID=") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/550-00000001", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,12) -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/550-00000001", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/550-00000001", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/550-00000001", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/550-00000001", "1?AGI(fixlocalprefix)") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix > fixlocalprefix: Using pattern 044|. -- <SIP/550-00000001>AGI Script fixlocalprefix completed, returning 0 -- Executing [s@macro-dialout-trunk:13] Set("SIP/550-00000001", "OUTNUM=07739487428") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/550-00000001", "custom=DAHDI/g0") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/550-00000001", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack -- Executing [s@macro-dialout-trunk:16] Macro("SIP/550-00000001", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/550-00000001", "") in new stack -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/550-00000001", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/550-00000001", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:19] Dial("SIP/550-00000001", "DAHDI/g0/07739487428,300,") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g0/07739487428 -- DAHDI/1-1 is proceeding passing it to SIP/550-00000001 -- Channel 0/1, span 1 got hangup request, cause 1 -- Hungup 'DAHDI/1-1' == Everyone is busy/congested at this time (1:0/0/1) -- Executing [s@macro-dialout-trunk:20] Goto("SIP/550-00000001", "s-CHANUNAVAIL,1") in new stack -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1) -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/550-00000001", "1?noreport") in new stack -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3) -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/550-00000001", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 1) - failing through to other trunks") in new stack -- Executing [907739487428@from-internal:5] Macro("SIP/550-00000001", "outisbusy,") in new stack -- Executing [s@macro-outisbusy:1] Playback("SIP/550-00000001", "all-circuits-busy-now,noanswer") in new stack -- <SIP/550-00000001> Playing 'all-circuits-busy-now.ulaw' (language 'en') -- Executing [s@macro-outisbusy:2] Playback("SIP/550-00000001", "pls-try-call-later,noanswer") in new stack -- <SIP/550-00000001> Playing 'pls-try-call-later.ulaw' (language 'en') -- Executing [s@macro-outisbusy:3] Macro("SIP/550-00000001", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/550-00000001", "vw") in new stack -- Executing [s@macro-hangupcall:2] NoCDR("SIP/550-00000001", "") in new stack -- Executing [s@macro-hangupcall:3] GotoIf("SIP/550-00000001", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,6) -- Executing [s@macro-hangupcall:6] GotoIf("SIP/550-00000001", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,9) -- Executing [s@macro-hangupcall:9] GotoIf("SIP/550-00000001", "1?theend") in new stack -- Goto (macro-hangupcall,s,11) -- Executing [s@macro-hangupcall:11] Hangup("SIP/550-00000001", "") in new stack == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/550-00000001' in macro 'hangupcall' == Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/550-00000001' in macro 'outisbusy' == Spawn extension (from-internal, 907739487428, 5) exited non-zero on 'SIP/550-00000001' -- Executing [h@from-internal:1] Macro("SIP/550-00000001", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/550-00000001", "vw") in new stack -- Executing [s@macro-hangupcall:2] NoCDR("SIP/550-00000001", "") in new stack -- Executing [s@macro-hangupcall:3] GotoIf("SIP/550-00000001", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,6) -- Executing [s@macro-hangupcall:6] GotoIf("SIP/550-00000001", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,9) -- Executing [s@macro-hangupcall:9] GotoIf("SIP/550-00000001", "1?theend") in new stack -- Goto (macro-hangupcall,s,11) -- Executing [s@macro-hangupcall:11] Hangup("SIP/550-00000001", "") in new stack == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/550-00000001' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/550-00000001' thpbx1*CLI>

any ideas what could be the issue here???

Thanks!

I know that the line is live and that the card is working as I can receive calls;

thpbx1*CLI> -- Accepting call from '' to '368550' on channel 0/1, span 1 -- Executing [368550@from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=368550") in new stack -- Executing [368550@from-pstn:2] Gosub("DAHDI/1-1", "app-blacklist-check,s,1") in new stack -- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/1-1", "0?blacklisted") in new stack -- Executing [s@app-blacklist-check:2] Return("DAHDI/1-1", "") in new stack -- Executing [368550@from-pstn:3] ExecIf("DAHDI/1-1", "1 ?Set(CALLERID(name)=)") in new stack -- Executing [368550@from-pstn:4] Set("DAHDI/1-1", "__CALLINGPRES_SV=unknown") in new stack -- Executing [368550@from-pstn:5] Set("DAHDI/1-1", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [368550@from-pstn:6] Goto("DAHDI/1-1", "from-did-direct,550,1") in new stack -- Goto (from-did-direct,550,1) -- Executing [550@from-did-direct:1] Macro("DAHDI/1-1", "exten-vm,novm,550") in new stack -- Executing [s@macro-exten-vm:1] Macro("DAHDI/1-1", "user-callerid") in new stack -- Executing [s@macro-user-callerid:1] Set("DAHDI/1-1", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/1-1", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/1-1", "1?Set(REALCALLERIDNUM=)") in new stack -- Executing [s@macro-user-callerid:4] Set("DAHDI/1-1", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:5] Set("DAHDI/1-1", "AMPUSERCIDNAME=") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/1-1", "1?report") in new stack -- Goto (macro-user-callerid,s,11) -- Executing [s@macro-user-callerid:11] GotoIf("DAHDI/1-1", "0?continue") in new stack -- Executing [s@macro-user-callerid:12] Set("DAHDI/1-1", "__TTL=64") in new stack -- Executing [s@macro-user-callerid:13] GotoIf("DAHDI/1-1", "1?continue") in new stack -- Goto (macro-user-callerid,s,20) -- Executing [s@macro-user-callerid:20] NoOp("DAHDI/1-1", "Using CallerID "" <>") in new stack -- Executing [s@macro-exten-vm:2] Set("DAHDI/1-1", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("DAHDI/1-1", "VMBOX=novm") in new stack -- Executing [s@macro-exten-vm:4] Set("DAHDI/1-1", "EXTTOCALL=550") in new stack -- Executing [s@macro-exten-vm:5] Set("DAHDI/1-1", "CFUEXT=") in new stack -- Executing [s@macro-exten-vm:6] Set("DAHDI/1-1", "CFBEXT=") in new stack -- Executing [s@macro-exten-vm:7] Set("DAHDI/1-1", "RT=""") in new stack -- Executing [s@macro-exten-vm:8] Macro("DAHDI/1-1", "record-enable,550,IN") in new stack -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/1-1", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] AGI("DAHDI/1-1", "recordingcheck,20100521-115637,1274439397.8") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck recordingcheck,20100521-115637,1274439397.8: Inbound recording not enabled -- <DAHDI/1-1>AGI Script recordingcheck completed, returning 0 -- Executing [s@macro-record-enable:5] MacroExit("DAHDI/1-1", "") in new stack -- Executing [s@macro-exten-vm:9] Macro("DAHDI/1-1", "dial,"",tr,550") in new stack -- Executing [s@macro-dial:1] GotoIf("DAHDI/1-1", "1?dial") in new stack -- Goto (macro-dial,s,3) -- Executing [s@macro-dial:3] AGI("DAHDI/1-1", "dialparties.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi dialparties.agi: Starting New Dialparties.agi == Manager 'admin' logged on from 127.0.0.1 dialparties.agi: Caller ID name is 'unknown' number is 'unknown' > dialparties.agi: USE_CONFIRMATION: 'FALSE' > dialparties.agi: RINGGROUP_INDEX: '' dialparties.agi: Methodology of ring is 'none' -- dialparties.agi: Added extension 550 to extension map > dialparties.agi: Extension 550 has call screening off -- dialparties.agi: Extension 550 cf is disabled -- dialparties.agi: Extension 550 do not disturb is disabled > dialparties.agi: extnum 550 has: cw: 1; hascfb: 0 [] hascfu: 0 [] > dialparties.agi: ExtensionState: 0 -- dialparties.agi: DbDel CALLTRACE/550 - Caller ID is not defined -- dialparties.agi: Filtered ARG3: 550 == Manager 'admin' logged off from 127.0.0.1 -- <DAHDI/1-1>AGI Script dialparties.agi completed, returning 0 -- Executing [s@macro-dial:7] Dial("DAHDI/1-1", "SIP/550,"",tr") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 == Using SIP VRTP TOS bits 136 == Using SIP VRTP CoS mark 6 -- Called 550 -- SIP/550-00000004 is ringing -- SIP/550-00000004 answered DAHDI/1-1 -- Executing [h@macro-dial:1] Macro("DAHDI/1-1", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] ResetCDR("DAHDI/1-1", "vw") in new stack -- Executing [s@macro-hangupcall:2] NoCDR("DAHDI/1-1", "") in new stack -- Executing [s@macro-hangupcall:3] GotoIf("DAHDI/1-1", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,6) -- Executing [s@macro-hangupcall:6] GotoIf("DAHDI/1-1", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,9) -- Executing [s@macro-hangupcall:9] GotoIf("DAHDI/1-1", "1?theend") in new stack -- Goto (macro-hangupcall,s,11) -- Executing [s@macro-hangupcall:11] Hangup("DAHDI/1-1", "") in new stack == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'DAHDI/1-1' in macro 'hangupcall' == Spawn extension (macro-dial, h, 1) exited non-zero on 'DAHDI/1-1' == Spawn extension (macro-dial, s, 7) exited non-zero on 'DAHDI/1-1' in macro 'dial' == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'DAHDI/1-1' in macro 'exten-vm' == Spawn extension (from-did-direct, 550, 1) exited non-zero on 'DAHDI/1-1' -- Hungup 'DAHDI/1-1' thpbx1*CLI>

Have you set
pridialplan=unknown
prilocaldialplan=unknown

?
Ian

Hi Ian, I havent set anything at all :smile:

I don’t have a zapata.conf so not sure where this would be set, would it be in /etc/dahdi/system.conf?

Hi

try chan_dahdi.conf or the like

Ian

all I have in dahdi_chan.conf is [code];
; DAHDI telephony
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include setup-pstn configs
#include dahdi-channels.conf

group=1

;Include PBXconfig configs
#include chan_dahdi_additional.conf

[/code]

hmmmmmm

for outgoing calls you probably have to set the right callerid before trying to dial.

thus - I advice to ask your provider what callerid they expect for your outgoing calls and set this value in the trunk definition (freepbx -> trunks -> Outbound Caller ID)

HTH,
Ioan.

just set the outbound caller ID but it hasnt made any difference :frowning:

please ask them and try after this - if still not working please post a new asterisk log.

ive spoken with the provider and im definitely using the correct outbound id

Hi I see that the two settings I mentioned near the start still arnt set, these need to be for the UK

also it doesn’t matter what caller ID you set , as BT will only honour a match on a number they are sending you.

Ian

Hi Ian,

Where can you see this? Sorry im probably being quite stupid!

Hi

in your dahdi_chan.conf you need to add the settings I posted at the start the restart asterisk

Ian