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 [[email protected]:1] Set(“DAHDI/i1/-390”, “CUSTID=3034”) in new stack (==> here is good it takes my DID 3034)*
– Executing [[email protected]:2] Goto(“DAHDI/i1/-390”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [[email protected]:1] Set(“DAHDI/i1/-390”, “__FROM_DID=s”) in new stack (==> But here isn’t good, it pass s to my pbx)*
– Executing [[email protected]:2] Gosub(“DAHDI/i1/-390”, “app-blacklist-check,s,1”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/i1/-390”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/i1/-390”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“DAHDI/i1/-390”, “”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/i1/-390”, “CHANNEL(language)=fr”) in new stack
– Executing [[email protected]:4] ExecIf(“DAHDI/i1/-390”, “1 ?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/i1/-390”, “__CALLINGPRES_SV=unavailable”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/i1/-390”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [[email protected]:7] Goto(“DAHDI/i1/-390”, “ext-trunk,5,1”) in new stack
– Goto (ext-trunk,5,1)
– Executing [[email protected]:1] Set(“DAHDI/i1/-390”, “TDIAL_STRING=SIP/vboxTrunk”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/i1/-390”, “DIAL_TRUNK=5”) in new stack
– Executing [[email protected]:3] Goto(“DAHDI/i1/-390”, “ext-trunk,tdial,1”) in new stack
– Goto (ext-trunk,tdial,1)
– Executing [[email protected]:1] Set(“DAHDI/i1/-390”, “OUTBOUND_GROUP=OUT_5”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/i1/-390”, “0?nomax”) in new stack
– Executing [[email protected]:3] GotoIf(“DAHDI/i1/-390”, “0?hangit”) in new stack
– Executing [[email protected]:4] ExecIf(“DAHDI/i1/-390”, “1?Set(CALLERPRES()=unavailable)”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/i1/-390”, “DIAL_NUMBER=s”) in new stack
– Executing [[email protected]:6] GosubIf(“DAHDI/i1/-390”, “0?sub-flp-5,s,1”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/i1/-390”, “OUTNUM=s”) in new stack
– Executing [[email protected]: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 [[email protected]:9] Set(“DAHDI/i1/-390”, “CALLERID(number)=”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/i1/-390”, “CALLERID(name)=”) in new stack
– Executing [[email protected]: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