Well, I don't block individual numbers but I do control outbound international calls. I have a list of permitted country codes in ActionList and I check against those for all calls starting with 00 or 011. If the country code is not in my (comma separated) list then I ask the caller to Authenticate() and if that passes then it is ok to dial. I implemented this years ago when international calls cost way more than they do now. But still its a nice check to have. Premium rate 900 calls might also be good to block (or require a passcode).
David On Sat, Aug 17, 2019 at 6:28 PM Lonnie Abelbeck <li...@lonnie.abelbeck.com> wrote: > > > > 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. >
_______________________________________________ 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.