Ext-did-catchall doesn't catch DIDs

Hi everybody,

I’ve added an inbound route for DIDs to an old PBX (closed: do not permit any modification) sitting behind a new FreePBX installation.

N.B:
for outbound route, I can pas calls without any problems0

So that my incoming calls pass I must carry the following changes to the extensions_additional.conf file:

From :

[ext-did-catchall]
include => ext-did-catchall-custom
exten => _.,1,Noop(Catch-All DID Match - Found ${EXTEN} - You probably want a DID for this.) ==> line to modifiy
exten => _.,n,Goto(ext-did,s,1)

; end of [ext-did-catchall]

To :

[ext-did-catchall]
include => ext-did-catchall-custom
exten => _.,1,Set(CUSTID=${EXTEN}) ==> modified line
exten => _.,n,Goto(ext-did,s,1)

; end of [ext-did-catchall]

From :

[ext-did-0001]
include => ext-did-0001-custom
exten => s,1,Set(__FROM_DID=${EXTEN}) ==> line to modifiy
exten => s,n,ExecIf($[ “${CALLERID(name)}” = “” ] ,Set,CALLERID(name)=${CALLERID(num)})
exten => s,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => s,n,SetCallerPres(allowed_not_screened)
exten => s,n(dest-ext),Goto(astrtr,s,1)

; end of [ext-did-0001]

To:

[ext-did-0001]
include => ext-did-0001-custom
exten => s,1,Set(__FROM_DID=${CUSTID}) ==> modified line
exten => s,n,ExecIf($[ “${CALLERID(name)}” = “” ] ,Set,CALLERID(name)=${CALLERID(num)})
exten => s,n,Set(_CALLINGPRES_SV=${CALLINGPRES${CALLINGPRES}})
exten => s,n,SetCallerPres(allowed_not_screened)
exten => s,n(dest-ext),Goto(astrtr,s,1)

; end of [ext-did-0001]

And that’s work while I do not execute amportal restart (override extensions_additional.conf).

Now I need to know if there is a mean to do that with another file like extensions_override_freepbx.conf in order to keep modifications.

I appreciate any idea or help.

Best regards.

Put the following in extensions_override_freepbx.conf:
[ext-did-0001]
exten => s,1,Set(__FROM_DID=${CUSTID})
[ext-did-catchall]
exten => _.,1,Set(CUSTID=${EXTEN})

It gives me that after adding this modifications
[ext-did-0001]
exten => s,1,Set(__FROM_DID=${CUSTID})
[ext-did-catchall]
exten => _.,1,Set(CUSTID=${EXTEN})
in in extensions_override_freepbx.conf:


– Accepting call from ‘’ to ‘3034’ on channel 0/26, span 1
– Executing [3034@from-pstn:1] Set(“DAHDI/i1/-390”, “CUSTID=3034”) in new stack (==> here is good it takes my DID 3034)*
– Executing [3034@from-pstn:2] Goto(“DAHDI/i1/-390”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] Set(“DAHDI/i1/-390”, “__FROM_DID=s”) in new stack (==> But here isn’t good, it pass s to my pbx)*
– Executing [s@ext-did:2] Gosub(“DAHDI/i1/-390”, “app-blacklist-check,s,1”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“DAHDI/i1/-390”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“DAHDI/i1/-390”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“DAHDI/i1/-390”, “”) in new stack
– Executing [s@ext-did:3] Set(“DAHDI/i1/-390”, “CHANNEL(language)=fr”) in new stack
– Executing [s@ext-did:4] ExecIf(“DAHDI/i1/-390”, “1 ?Set(CALLERID(name)=)”) in new stack
– Executing [s@ext-did:5] Set(“DAHDI/i1/-390”, “__CALLINGPRES_SV=unavailable”) in new stack
– Executing [s@ext-did:6] Set(“DAHDI/i1/-390”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [s@ext-did:7] Goto(“DAHDI/i1/-390”, “ext-trunk,5,1”) in new stack
– Goto (ext-trunk,5,1)
– Executing [5@ext-trunk:1] Set(“DAHDI/i1/-390”, “TDIAL_STRING=SIP/vboxTrunk”) in new stack
– Executing [5@ext-trunk:2] Set(“DAHDI/i1/-390”, “DIAL_TRUNK=5”) in new stack
– Executing [5@ext-trunk:3] Goto(“DAHDI/i1/-390”, “ext-trunk,tdial,1”) in new stack
– Goto (ext-trunk,tdial,1)
– Executing [tdial@ext-trunk:1] Set(“DAHDI/i1/-390”, “OUTBOUND_GROUP=OUT_5”) in new stack
– Executing [tdial@ext-trunk:2] GotoIf(“DAHDI/i1/-390”, “0?nomax”) in new stack
– Executing [tdial@ext-trunk:3] GotoIf(“DAHDI/i1/-390”, “0?hangit”) in new stack
– Executing [tdial@ext-trunk:4] ExecIf(“DAHDI/i1/-390”, “1?Set(CALLERPRES()=unavailable)”) in new stack
– Executing [tdial@ext-trunk:5] Set(“DAHDI/i1/-390”, “DIAL_NUMBER=s”) in new stack
– Executing [tdial@ext-trunk:6] GosubIf(“DAHDI/i1/-390”, “0?sub-flp-5,s,1”) in new stack
– Executing [tdial@ext-trunk:7] Set(“DAHDI/i1/-390”, “OUTNUM=s”) in new stack
– Executing [tdial@ext-trunk:8] Dial(“DAHDI/i1/-390”, “SIP/vboxTrunk/s,300,”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/vboxTrunk/s
– SIP/vboxTrunk-0000038f is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [tdial@ext-trunk:9] Set(“DAHDI/i1/-390”, “CALLERID(number)=”) in new stack
– Executing [tdial@ext-trunk:10] Set(“DAHDI/i1/-390”, “CALLERID(name)=”) in new stack
– Executing [tdial@ext-trunk:11] Hangup(“DAHDI/i1/-390”, “”) in new stack
== Spawn extension (ext-trunk, tdial, 11) exited non-zero on ‘DAHDI/i1/-390’
– Hungup ‘DAHDI/i1/-390’

(*) my comments