> On Aug 17, 2019, at 4:44 PM, Fernando Fuentes <ffuen...@darktcp.net> 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



_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to