We have a specific outbound route we use for sending T38 traffic from a downstream switch to a T38 provider. T38 works fine and that is not the issue.
We have the dialplan set up based on caller ID, so the caller ID of the downstream switch handling fax traffic triggers that outbound route / dialplan and sends traffic out over it. We only have one outbound trunk set for this route, and that is the trunk for the T38 traffic.
It looks like when the call does not complete due to a ‘not in service number’, calls are then failing over to one of our other trunks, as if I had multiple trunks on this route set up for failover. That should not be happening - we don’t want it to bother trying a T38 call over any of our other carriers, we just want it to fail… So for this route, we only have the one trunk listed. Why would it try another trunk?
I have pasted that dialplan below (caller ID info changed) - and I know it is using that dialplan, as the first call attempt is placed over the T38 trunk (trunk 4) - and that trunk is ONLY being used in this route.
Then the logs show it moving on to dial out over trunk 2… We also don’t have ‘check to try next trunk’ enabled for the T38 trunk.
The dialplan for these calls is this:
[outrt-25] ; FaxingOut
exten => _+1NXXNXXXXXX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _+1NXXNXXXXXX/1112223333,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _+1NXXNXXXXXX/1112223333,n,Gosub(sub-record-check,s,1(out,${EXTEN},never))
exten => _+1NXXNXXXXXX/1112223333,n,ExecIf($[ “${CALLEE_ACCOUNCODE}” != “” ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _+1NXXNXXXXXX/1112223333,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _+1NXXNXXXXXX/1112223333,n,ExecIf($["${KEEPCID}"!=“TRUE” & ${LEN(${TRUNKCIDOVERRIDE})}=0]?Set(TRUNKCIDOVERRIDE=“Example Company” <1112223333>))
exten => _+1NXXNXXXXXX/1112223333,n,Set(_NODEST=)
exten => _+1NXXNXXXXXX/1112223333,n,Macro(dialout-trunk,4,${EXTEN},off)
exten => _+1NXXNXXXXXX/1112223333,n,Macro(outisbusy,)
exten => _1NXXNXXXXXX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _1NXXNXXXXXX/1112223333,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _1NXXNXXXXXX/1112223333,n,Gosub(sub-record-check,s,1(out,${EXTEN},never))
exten => _1NXXNXXXXXX/1112223333,n,ExecIf($[ “${CALLEE_ACCOUNCODE}” != “” ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _1NXXNXXXXXX/1112223333,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _1NXXNXXXXXX/1112223333,n,ExecIf($["${KEEPCID}"!=“TRUE” & ${LEN(${TRUNKCIDOVERRIDE})}=0]?Set(TRUNKCIDOVERRIDE=“Example Company” <1112223333>))
exten => _1NXXNXXXXXX/1112223333,n,Set(_NODEST=)
exten => _1NXXNXXXXXX/1112223333,n,Macro(dialout-trunk,4,+${EXTEN},off)
exten => _1NXXNXXXXXX/1112223333,n,Macro(outisbusy,)
exten => _NXXNXXXXXX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _NXXNXXXXXX/1112223333,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _NXXNXXXXXX/1112223333,n,Gosub(sub-record-check,s,1(out,${EXTEN},never))
exten => _NXXNXXXXXX/1112223333,n,ExecIf($[ “${CALLEE_ACCOUNCODE}” != “” ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _NXXNXXXXXX/1112223333,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _NXXNXXXXXX/1112223333,n,ExecIf($["${KEEPCID}"!=“TRUE” & ${LEN(${TRUNKCIDOVERRIDE})}=0]?Set(TRUNKCIDOVERRIDE=“Example Company” <1112223333>))
exten => _NXXNXXXXXX/1112223333,n,Set(_NODEST=)
exten => _NXXNXXXXXX/1112223333,n,Macro(dialout-trunk,4,+1${EXTEN},off)
exten => _NXXNXXXXXX/1112223333,n,Macro(outisbusy,)
exten => _NXXXXXX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _NXXXXXX/1112223333,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _NXXXXXX/1112223333,n,Gosub(sub-record-check,s,1(out,${EXTEN},never))
exten => _NXXXXXX/1112223333,n,ExecIf($[ “${CALLEE_ACCOUNCODE}” != “” ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _NXXXXXX/1112223333,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _NXXXXXX/1112223333,n,ExecIf($["${KEEPCID}"!=“TRUE” & ${LEN(${TRUNKCIDOVERRIDE})}=0]?Set(TRUNKCIDOVERRIDE=“Example Company” <1112223333>))
exten => _NXXXXXX/1112223333,n,Set(_NODEST=)
exten => _NXXXXXX/1112223333,n,Macro(dialout-trunk,4,+111${EXTEN},off)
exten => _NXXXXXX/1112223333,n,Macro(outisbusy,)
;–== end of [outrt-25] ==–;
FreePBX version 6.12.65-32
Asterisk version 11.21.2