FreePBX does not recognise DID

this is what it shows:

[ Context ‘ext-did-0002’ created by ‘pbx_config’ ]
‘+4923452000083’ => 1. Set(__DIRECTION=INBOUND) [extensions_additional.conf:1280]
2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [extensions_additional.conf:1281]
3. Set(CHANNEL(tonezone)=us) [extensions_additional.conf:1282]
4. Set(__FROM_DID=${EXTEN}) [extensions_additional.conf:1283]
5. Set(returnhere=1) [extensions_additional.conf:1284]
6. Gosub(app-blacklist-check,s,1()) [extensions_additional.conf:1285]
[did] 7. Set(CDR(did)=${FROM_DID}) [extensions_additional.conf:1286]
8. GotoIf(${LEN(${BLDEST})}?${BLDEST}) [extensions_additional.conf:1287]
[callerid] 9. ExecIf($[ “${CALLERID(name)}” = “” ] ?Set(CALLERID(name)=${CALLERID(num)})) [extensions_additional.conf:1288]
10. Set(__MOHCLASS=) [extensions_additional.conf:1289]
11. Set(__REVERSAL_REJECT=FALSE) [extensions_additional.conf:1290]
12. GotoIf($[“${REVERSAL_REJECT}”!=“TRUE”]?post-reverse-charge) [extensions_additional.conf:1291]
13. GotoIf($[“${CHANNEL(reversecharge)}”=“1”]?macro-hangupcall) [extensions_additional.conf:1292]
[post-reverse-charge] 14. Noop() [extensions_additional.conf:1293]
15. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [extensions_additional.conf:1294]
16. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [extensions_additional.conf:1295]
17. Set(CALLERID(name-pres)=allowed_not_screened) [extensions_additional.conf:1296]
18. Set(CALLERID(num-pres)=allowed_not_screened) [extensions_additional.conf:1297]
[did-cid-hook] 19. Noop(CallerID Entry Point) [extensions_additional.conf:1298]
20. Set(__CRM_DIRECTION=INBOUND) [extensions_additional.conf:1299]
21. Set(__CRM_SOURCE=${CALLERID(num)}) [extensions_additional.conf:1300]
22. Set(__CRM_LINKEDID=${CHANNEL(LINKEDID)}) [extensions_additional.conf:1301]
23. AGI(agi://127.0.0.1/sangomacrm.agi,true) [extensions_additional.conf:1302]
24. ExecIf($[“${CRM_DIRECTION}”=“INBOUND”]?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)) [extensions_additional.conf:1303]
[dest-ext] 25. Goto(from-did-direct,1,1) [extensions_additional.conf:1304]
‘498003772266’ => 1. Set(__DIRECTION=INBOUND) [extensions_additional.conf:1306]
2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [extensions_additional.conf:1307]
3. Set(CHANNEL(tonezone)=us) [extensions_additional.conf:1308]
4. Set(__FROM_DID=${EXTEN}) [extensions_additional.conf:1309]
5. Set(returnhere=1) [extensions_additional.conf:1310]
6. Gosub(app-blacklist-check,s,1()) [extensions_additional.conf:1311]
[did] 7. Set(CDR(did)=${FROM_DID}) [extensions_additional.conf:1312]
8. GotoIf(${LEN(${BLDEST})}?${BLDEST}) [extensions_additional.conf:1313]
[callerid] 9. ExecIf($[ “${CALLERID(name)}” = “” ] ?Set(CALLERID(name)=${CALLERID(num)})) [extensions_additional.conf:1314]
10. Set(__MOHCLASS=) [extensions_additional.conf:1315]
11. Set(__REVERSAL_REJECT=FALSE) [extensions_additional.conf:1316]
12. GotoIf($[“${REVERSAL_REJECT}”!=“TRUE”]?post-reverse-charge) [extensions_additional.conf:1317]
13. GotoIf($[“${CHANNEL(reversecharge)}”=“1”]?macro-hangupcall) [extensions_additional.conf:1318]
[post-reverse-charge] 14. Noop() [extensions_additional.conf:1319]
15. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [extensions_additional.conf:1320]
16. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [extensions_additional.conf:1321]
17. Set(CALLERID(name-pres)=allowed_not_screened) [extensions_additional.conf:1322]
18. Set(CALLERID(num-pres)=allowed_not_screened) [extensions_additional.conf:1323]
[did-cid-hook] 19. Noop(CallerID Entry Point) [extensions_additional.conf:1324]
20. Set(__CRM_DIRECTION=INBOUND) [extensions_additional.conf:1325]
21. Set(__CRM_SOURCE=${CALLERID(num)}) [extensions_additional.conf:1326]
22. Set(__CRM_LINKEDID=${CHANNEL(LINKEDID)}) [extensions_additional.conf:1327]
23. AGI(agi://127.0.0.1/sangomacrm.agi,true) [extensions_additional.conf:1328]
24. ExecIf($[“${CRM_DIRECTION}”=“INBOUND”]?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)) [extensions_additional.conf:1329]
[dest-ext] 25. Goto(from-did-direct,1,1) [extensions_additional.conf:1330]
‘fax’ => 1. Set(__DIRECTION=INBOUND) [extensions_additional.conf:1277]
2. Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)}) [extensions_additional.conf:1278]
Include => ‘ext-did-0002-custom’ [pbx_config]

I dont know whether this info helps, but if I use a pattern in the inbound DID config:

_498XXXXXXXXX

it works. As soon as I replace more Xs with the phone number it fails. Is Freepbx confused because of the “00” in the phone number?

Very strange. I don’t see how this could be a FreePBX problem, because extensions_additional.conf was built correctly. It would have to be an Asterisk problem, either the number somehow gets garbled before being tested, or the matching process isn’t working correctly.

I assume that unless you acquire multiple toll-free numbers that need to be routed differently, your workaround is a good solution. Is that correct?

A log of an inbound call with _498XXXXXXXXX in the Inbound Route should show whether the extension (DID) is corrupted at the time the match is done. If so, that would likely be easy to find. If not (an exact match does not work correctly), I have no idea what could be wrong.

Please explain. The Distro is a complete system including OS that wipes everything; if installed on a web server, the machine isn’t a web server anymore (except for FreePBX functions). Is there a VM or container involved? I’m asking because Asterisk may have been compiled incorrectly, it’s running in an environment with incompatible utilities or libraries, etc.

FWIW, my system has some (US) 800 numbers and there is no problem with the DIDs being matched.

I booked a root-server online and then used the FreePBX-distro-iso to set it up, so yeah, I guess it wiped it clean before the installation.

What language is this?

English? :smiley:

But how did you ‘book a root-server’ ?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.