I'm not familiar with the phone number syntax of Switzerland, but assuming
there is something you can match on reliability in the caller-id, it should
be fairly straight forward to create a 'permit' rule to only allow inbound
calls from those numbers, and then block everything else. This would most
likely being the ideal option, as opposed to trying to manually blacklist
everything else.

Assuming 0800 means the equivalent of a toll-free (reverse charge) call,
you will probably want to make sure you aren't answering the rejected calls
in the catch-all section of the dialplan. You can use session progress to
play a rejection message and then reject the call so you don't get billed
on the blacklisted numbers. Or just reject them flat out, though an 'out of
area' type message might help to alleviate confusion.

Is this a Swiss number? If so, is it even possible to call it from out of
the country if it is toll-free? I know US 8XX numbers can only be reached
from the US by default, and have to generally opt-in to get calls from
Canada, etc., but can't generally be called directly from Europe, etc. I'm
also pretty certain that most US toll-free providers allow you to restrict
the calling area down even more (to a specific state or region). If your
provider can do this on their side, it might make things even easier for
you.

--James

On Wed, Jan 20, 2016 at 5:28 AM, Michael Keuter <li...@mksolutions.info>
wrote:

>
> Am 19.01.2016 um 23:13 schrieb nedi <n...@gmx.ch>:
>
> > Hi All,
> >
> > I have a customer with 0800 Number  and  I would like to block all
> inbound calls to this number. Only Number from switzerland should pass the
> filter.
> >
> > I can make blacklist by provider but i must put every area code  number
> manual  to blacklist
> >
> > regards
> > Nedi
>
> Hi Nedi,
>
> I'm not sure if I understood it right, but maybe this is what you need:
>
> it is called the "ex-girlfriend logic" (no joke): search for it on this
> site:
>
> http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf
>
> Basically:
>
> exten => 1234/_256NXXXXXX,1,Answer()
>
> Only callers which CallerID starts with "256" can call "1234"
>
> Michael
>
> http://www.mksolutions.info
>
>
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> 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.
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
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