Blacklist function difference between inbound routes and direct did -- bug?

lbroyles
Posts: 8
Member Since:
2007-04-09

I am trying to use the blacklist function but it only works for extensions listed in the incoming routes section -- such as call queues or conference lines. It does not work, however, for direct did's. After going thru the config files and watching calls go thru in the console I have found the issue and I am able to fix it manually adding a line -- of course this gets overwritten when any changes are made......

in the [ext-did] section of the extensions_additional it has the following for 4200 (a queue) and 4209 (a direct did). Notice that the Gosub(app-blacklist-check..... line is missing in the direct did. If I add that line -- then the blacklist works as expected for that extension. How can I fix this??

exten => 4200,1,Set(__FROM_DID=${EXTEN})
exten => 4200,n,Gosub(app-blacklist-check,s,1)
exten => 4200,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => 4200,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 4200,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 4200,n,Set(__CALLINGPRES_SV=${CALLINGPRES_${CALLINGPRES}})
exten => 4200,n,SetCallerPres(allowed_not_screened)
exten => 4200,n,Goto(ext-queues,4200,1)

exten => 4209,1,Set(__FROM_DID=${EXTEN})
exten => 4209,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => 4209,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 4209,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => 4209,n,Goto(from-did-direct,4209,1)

Thanks,
H0m3r