[SOLVED] Unable to make Outbound calls UK ISDN

Something happened yesterday at some point.

Two month old installation has been working fine and all of a sudden, this morning there was no inbound or outbound calls.

I quickly rebooted and the incoming calls returned however we are still unable make outbound calls.

We get the message “The number you have dialed is not in service”

We have a Sangoma A500 BRI card and 4 ISDN channels

 cat /etc/dahdi/system.conf
# -------------------------------------------------------------------------------;
# Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
# this file must be done via the web gui. There are alternative files to make    ;
# custom modifications, details at: http://freepbx.org/configuration_files       ;
# -------------------------------------------------------------------------------;
#
span=1,0,0,CCS,AMI
span=2,0,0,CCS,AMI
bchan=1-2,4-5
hardhdlc=3,6
loadzone=uk
defaultzone=uk
echocanceller=OSLEC,1-4

This is the the file that bothers me - shouldn’t bchan be 1-2, 3-4 ?

dahdi_cfg -vvv
DAHDI Tools Version - 2.11.1

DAHDI Version: 2.11.1
Echo Canceller(s): OSLEC
Configuration
======================

SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Echo Canceler: OSLEC) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: OSLEC) (Slaves: 02)
Channel 03: Hardware assisted D-channel (Default) (Echo Canceler: OSLEC) (Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: OSLEC) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: none) (Slaves: 05)
Channel 06: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 06)

6 channels to configure.

Setting echocan for channel 1 to OSLEC
Setting echocan for channel 2 to OSLEC
Setting echocan for channel 3 to OSLEC
Setting echocan for channel 4 to OSLEC
Setting echocan for channel 5 to none
Setting echocan for channel 6 to none

This also shows 6 channels when I only have 4.

I have also had the lines checked and they are all ok.

The configuration looks good to me, but I am not an expert. The fact that inbound is working is strange, give us a sanitized call trace of a failed outbound call, I expect there is a clue there.

Connected to Asterisk 11.23.0 currently running on localhost (pid = 2105) == Using SIP RTP CoS mark 5 == Extension Changed 300[ext-local] new state InUse for Notify User 300 == Extension Changed 300[ext-local] new state InUse for Notify User 306 == Extension Changed 300[ext-local] new state InUse for Notify User 316 -- Executing [907799603779@from-internal:1] Macro("SIP/300-00000014", "user-callerid,LIMIT,EXTERNAL,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/300-00000014", "TOUCH_MONITOR=1472731590.30") in new stack -- Executing [s@macro-user-callerid:2] Set("SIP/300-00000014", "AMPUSER=300") in new stack -- Executing [s@macro-user-callerid:3] GotoIf("SIP/300-00000014", "0?report") in new stack -- Executing [s@macro-user-callerid:4] ExecIf("SIP/300-00000014", "1?Set(REALCALLERIDNUM=300)") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/300-00000014", "AMPUSER=300") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/300-00000014", "0?limit") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/300-00000014", "AMPUSERCIDNAME=Reception") in new stack -- Executing [s@macro-user-callerid:8] GotoIf("SIP/300-00000014", "0?report") in new stack -- Executing [s@macro-user-callerid:9] Set("SIP/300-00000014", "AMPUSERCID=300") in new stack -- Executing [s@macro-user-callerid:10] Set("SIP/300-00000014", "__DIAL_OPTIONS=Ttr") in new stack -- Executing [s@macro-user-callerid:11] Set("SIP/300-00000014", "CALLERID(all)="Reception" <300>") in new stack -- Executing [s@macro-user-callerid:12] GotoIf("SIP/300-00000014", "0?limit") in new stack -- Executing [s@macro-user-callerid:13] ExecIf("SIP/300-00000014", "1?Set(GROUP(concurrency_limit)=300)") in new stack -- Executing [s@macro-user-callerid:14] ExecIf("SIP/300-00000014", "0?Set(CHANNEL(language)=)") in new stack -- Executing [s@macro-user-callerid:15] GotoIf("SIP/300-00000014", "1?continue") in new stack -- Goto (macro-user-callerid,s,29) -- Executing [s@macro-user-callerid:29] Set("SIP/300-00000014", "CALLERID(number)=300") in new stack -- Executing [s@macro-user-callerid:30] Set("SIP/300-00000014", "CALLERID(name)=Reception") in new stack -- Executing [s@macro-user-callerid:31] GotoIf("SIP/300-00000014", "ISNULL(Reception)?cnum") in new stack -- Goto (macro-user-callerid,s,33) -- Executing [s@macro-user-callerid:33] Set("SIP/300-00000014", "CDR(cnum)=300") in new stack -- Executing [s@macro-user-callerid:34] Set("SIP/300-00000014", "CHANNEL(language)=en") in new stack -- Executing [907799603779@from-internal:2] Gosub("SIP/300-00000014", "sub-record-check,s,1(out,907799603779,dontcare)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/300-00000014", "0?initialized") in new stack -- Executing [s@sub-record-check:2] Set("SIP/300-00000014", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:3] Set("SIP/300-00000014", "NOW=1472731590") in new stack -- Executing [s@sub-record-check:4] Set("SIP/300-00000014", "__DAY=01") in new stack -- Executing [s@sub-record-check:5] Set("SIP/300-00000014", "__MONTH=09") in new stack -- Executing [s@sub-record-check:6] Set("SIP/300-00000014", "__YEAR=2016") in new stack -- Executing [s@sub-record-check:7] Set("SIP/300-00000014", "__TIMESTR=20160901-130630") in new stack -- Executing [s@sub-record-check:8] Set("SIP/300-00000014", "__FROMEXTEN=300") in new stack -- Executing [s@sub-record-check:9] Set("SIP/300-00000014", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:10] NoOp("SIP/300-00000014", "Recordings initialized") in new stack -- Executing [s@sub-record-check:11] ExecIf("SIP/300-00000014", "0?Set(ARG3=dontcare)") in new stack -- Executing [s@sub-record-check:12] Set("SIP/300-00000014", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/300-00000014", "0?Set(REC_STATUS=NO)") in new stack -- Executing [s@sub-record-check:14] GotoIf("SIP/300-00000014", "3?checkaction") in new stack -- Goto (sub-record-check,s,17) -- Executing [s@sub-record-check:17] GotoIf("SIP/300-00000014", "1?sub-record-check,out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out@sub-record-check:1] NoOp("SIP/300-00000014", "Outbound Recording Check from 300 to 907799603779") in new stack -- Executing [out@sub-record-check:2] Set("SIP/300-00000014", "RECMODE=dontcare") in new stack -- Executing [out@sub-record-check:3] ExecIf("SIP/300-00000014", "1?Goto(routewins)") in new stack -- Goto (sub-record-check,out,7) -- Executing [out@sub-record-check:7] Gosub("SIP/300-00000014", "recordcheck,1(dontcare,out,907799603779)") in new stack -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/300-00000014", "Starting recording check against dontcare") in new stack -- Executing [recordcheck@sub-record-check:2] Goto("SIP/300-00000014", "dontcare") in new stack -- Goto (sub-record-check,recordcheck,3) -- Executing [recordcheck@sub-record-check:3] Return("SIP/300-00000014", "") in new stack -- Executing [out@sub-record-check:8] Return("SIP/300-00000014", "") in new stack -- Executing [907799603779@from-internal:3] ExecIf("SIP/300-00000014", "0 ?Set(CDR(accountcode)=)") in new stack -- Executing [907799603779@from-internal:4] Set("SIP/300-00000014", "MOHCLASS=default") in new stack -- Executing [907799603779@from-internal:5] ExecIf("SIP/300-00000014", "1?Set(TRUNKCIDOVERRIDE=01248675910)") in new stack -- Executing [907799603779@from-internal:6] Set("SIP/300-00000014", "_NODEST=") in new stack -- Executing [907799603779@from-internal:7] Macro("SIP/300-00000014", "dialout-trunk,1,07799603779,,off") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/300-00000014", "DIAL_TRUNK=1") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/300-00000014", "0?sub-pincheck,s,1()") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/300-00000014", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/300-00000014", "DIAL_NUMBER=07799603779") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/300-00000014", "DIAL_TRUNK_OPTIONS=Ttr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/300-00000014", "OUTBOUND_GROUP=OUT_1") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/300-00000014", "0?nomax") in new stack -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/300-00000014", "0?chanfull") in new stack -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/300-00000014", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/300-00000014", "DIAL_TRUNK_OPTIONS=Tt") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/300-00000014", "outbound-callerid,1") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/300-00000014", "0?Set(CALLERPRES(name-pres)=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/300-00000014", "0?Set(CALLERPRES(num-pres)=)") in new stack -- Executing [s@macro-outbound-callerid:3] ExecIf("SIP/300-00000014", "0?Set(REALCALLERIDNUM=300)") in new stack -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/300-00000014", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,7) -- Executing [s@macro-outbound-callerid:7] Set("SIP/300-00000014", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/300-00000014", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:9] Set("SIP/300-00000014", "TRUNKOUTCID=01248675910") in new stack -- Executing [s@macro-outbound-callerid:10] GotoIf("SIP/300-00000014", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,15) -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/300-00000014", "1?Set(CALLERID(all)=01248675910)") in new stack -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/300-00000014", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/300-00000014", "1?Set(CALLERID(all)=01248675910)") in new stack -- Executing [s@macro-outbound-callerid:18] ExecIf("SIP/300-00000014", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:19] ExecIf("SIP/300-00000014", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:20] Set("SIP/300-00000014", "CDR(outbound_cnum)=01248675910") in new stack -- Executing [s@macro-outbound-callerid:21] Set("SIP/300-00000014", "CDR(outbound_cnam)=") in new stack -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/300-00000014", "1?sub-flp-1,s,1()") in new stack -- Executing [s@sub-flp-1:1] ExecIf("SIP/300-00000014", "0?Set(TARGET_FLP_1=7799603779)") in new stack -- Executing [s@sub-flp-1:2] GotoIf("SIP/300-00000014", "0?match") in new stack -- Executing [s@sub-flp-1:3] Return("SIP/300-00000014", "") in new stack -- Executing [s@macro-dialout-trunk:13] Set("SIP/300-00000014", "OUTNUM=07799603779") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/300-00000014", "custom=DAHDI/g0") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/300-00000014", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/300-00000014", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack -- Executing [s@macro-dialout-trunk:17] Macro("SIP/300-00000014", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/300-00000014", "") in new stack -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/300-00000014", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/300-00000014", "1?Set(CONNECTEDLINE(num,i)=07799603779)") in new stack -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/300-00000014", "1?Set(CONNECTEDLINE(name,i)=CID:01248675910)") in new stack -- Executing [s@macro-dialout-trunk:21] ExecIf("SIP/300-00000014", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)01248675910)") in new stack -- Executing [s@macro-dialout-trunk:22] GotoIf("SIP/300-00000014", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:23] Dial("SIP/300-00000014", "DAHDI/g0/07799603779,300,Tt") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called DAHDI/g0/07799603779 -- DAHDI/i1/07799603779-8 is proceeding passing it to SIP/300-00000014 -- Span 1: Channel 0/1 got hangup request, cause 1 -- Hungup 'DAHDI/i1/07799603779-8' == Everyone is busy/congested at this time (1:0/0/1) -- Executing [s@macro-dialout-trunk:24] NoOp("SIP/300-00000014", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1") in new stack -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/300-00000014", "0?continue,1:s-CHANUNAVAIL,1") in new stack -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1) -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/300-00000014", "RC=1") in new stack -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/300-00000014", "1,1") in new stack -- Goto (macro-dialout-trunk,1,1) -- Executing [1@macro-dialout-trunk:1] Goto("SIP/300-00000014", "s-INVALIDNMBR,1") in new stack -- Goto (macro-dialout-trunk,s-INVALIDNMBR,1) -- Executing [s-INVALIDNMBR@macro-dialout-trunk:1] NoOp("SIP/300-00000014", "Dial failed due to trunk reporting Address Incomplete - giving up") in new stack -- Executing [s-INVALIDNMBR@macro-dialout-trunk:2] Progress("SIP/300-00000014", "") in new stack -- Executing [s-INVALIDNMBR@macro-dialout-trunk:3] Playback("SIP/300-00000014", "ss-noservice,noanswer") in new stack -- <SIP/300-00000014> Playing 'ss-noservice.ulaw' (language 'en') > 0xb5ab8410 -- Probation passed - setting RTP source address to 192.168.14.132:11782 -- Executing [s-INVALIDNMBR@macro-dialout-trunk:4] Busy("SIP/300-00000014", "20") in new stack [2016-09-01 13:06:36] WARNING[13026][C-0000000c]: channel.c:4861 ast_prod: Prodding channel 'SIP/300-00000014' failed == Spawn extension (macro-dialout-trunk, s-INVALIDNMBR, 4) exited non-zero on 'SIP/300-00000014' in macro 'dialout-trunk' == Spawn extension (from-internal, 907799603779, 7) exited non-zero on 'SIP/300-00000014' -- Executing [h@from-internal:1] Macro("SIP/300-00000014", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] ExecIf("SIP/300-00000014", "0?Set(CDR(recordingfile)=.wav)") in new stack -- Executing [s@macro-hangupcall:2] GotoIf("SIP/300-00000014", "1?theend") in new stack -- Goto (macro-hangupcall,s,4) -- Executing [s@macro-hangupcall:4] ExecIf("SIP/300-00000014", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [s@macro-hangupcall:5] Hangup("SIP/300-00000014", "") in new stack == Spawn extension (macro-hangupcall, s, 5) exited non-zero on 'SIP/300-00000014' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/300-00000014' == Extension Changed 300[ext-local] new state Idle for Notify User 300 == Extension Changed 300[ext-local] new state Idle for Notify User 306 == Extension Changed 300[ext-local] new state Idle for Notify User 316

Just also noticed that the occasional incoming call now displays ‘asterisk’ instead of the CID on the telephones.

I found the answer!

pridialplan and prilocaldiaplan

These were set to National - changed to Unknown and all is now well.

Now to figure out WHY it happened.