From: Lonnie A. <li...@lo...> - 2019-08-17 22:28:48
|
> On Aug 17, 2019, at 4:44 PM, Fernando Fuentes <ffu...@da...> wrote: > > Team, > > I have a blacklist setup and works perfectly fine for incoming. > I have one number that I want to block outgoing. > > Can I do that? Can I block an outgoing number if it exists in the blacklist? Sure, take a look in your current extensions.conf and see how the inbound handles the blacklist using -- ${DB_EXISTS(blacklist/${CALLERID(num)} -- study it and refresh your memory how this works. Then, when dialing out, the "${CALLERID(num)" would be replaced with the dialout number passed to your outbound provider. You probably don't need to act on "${DB_RESULT}", just if DB_EXISTS(...) = 0 do nothing. Then create an outbound blacklist gosub to test and act accordingly and call the gosub in the outbound path. Then test. Though, personally I don't see how generally useful this would be. Lonnie |