VoIP hardware is developing fast - this is where you ask all those “how do I make my SIP Telephone, Adapter or Asterisk box work with my voip provider?” questions.

Advertisement

By Sponsor
By mylesm
#874
Hi

Still learning OBI-100

Recently I have been getting a lot of Spam Calls and One reason I purchased an OBI-100 was to try to block them

I followed this http://www.toao.net/503-blocking-telema ... an-obi-ata

and it works great I now have a user defined digit map called BlockSpam and I enter all the spam numbers into it and then my

X_InboundCallRoute is {(MBlockSpam):sp1(300)},{ph}

This sends any number in BlockSpam File to my SP1 extension 300 which is a crazy monkeys recording works great

Problem is The BlockSpam FIle is getting big

Most of the numbers are coming from 001xxxxxxxxxxx which is international

I get calls from relatives in canada which show as 001604xxxxx and these are the only 001 calls I want to get through

Is there a way to only allow 001604xxxx and block all other 001 calls

here is the contents of my BlockSpam file so far
Code: Select all
(008000053|0091731|001234567890|0016077331419|0016077371409|0016073639766|0016073249764|0016075944642|0016077231168|001607739979|0016073978255|0016075278800|0016077350870|0016077336833|0016077349198|0016077399798|0016072315382|001607249764|001607324986|0016073978256|001607732910|0016077249716|0016077329102|0016072719593|0016077349189|001607737018|0016077399799|0016077229687|0016075299985|0016073249846|0016076995441|0016077954641|0016077229665|0016077350885|001607732906|0016077954626|001607529990|001607737140|0016072719258|0016073639777|0016077670115|0016077622176|0016077329064|0016075628977|0016075550146|0016077239891|00160777329064|0015593869702)
If I could block all 001 except 001604 then I would not have to add numbers to my BlockSpam File as the come in

Thanks

mylesm

Advertisement

By Sponsor
User avatar
By WelshPaul
#875
Of the top of my head try this:
Code: Select all
{(001[012345789][123456789][012356789]xxxxxxxx):sp1(300)},{ph}
I think that should block all 001 numbers matching 001xxxxxxxxxxx but allow 001604xxxxxxxx numbers through.
Code: Select all
{(001[012345789][123456789][012356789]xx.):sp1(300)},{ph}
The above should also work, numbers starting with 001 but shorter in length. Again numbers starting with 001604 of any length will be allowed to ring through.

Not tested this myself so let me know if it works. :thumbsup:
By mylesm
#877
Paul

My Current

X_InboundCallRoute is {(MBlockSpam):sp1(300)},{ph}

This allows Digit map BlockSpam divert to SP1 300 I wanted to keep this facility as I can add numbers to Digit map as and when needed but I wanted to also add in your new code to block 001 numbers but allow 001604

{(001[012345789][123456789][012356789]xx.):sp1(300)},{ph}

Where in the new code do I put the orignal MBlockSpam

Thanks Again

mylesm
User avatar
By WelshPaul
#878
Code: Select all
{(001[012345789][123456789][012356789]xx.|MBlockSpam):sp1(300)},{ph}
Simply put a | after the xx. and add your MBlockSpam numbers.
By mylesm
#881
No Joy Paul

If I have {(MBlockSpam):sp1(300)},{ph}

and I put my mobile number in BLockSpam digit map and call home using my mobile it gets diverted to 300 great

If I replace with {(001[012345789][123456789][012356789]xx.|MBlockSpam):sp1(300)},{ph} and with my mobile still in BlockSpam it now gets through and rings home phone

Any ideas

mylesm
User avatar
By WelshPaul
#882
Did you save and reboot?

I just entered {(001[012345789][123456789][012356789]xx.|MYMOBILENUMBER):sp1(166)},{ph} into the X_InboundCallRoute of SP1 on my OBi202 and it worked just fine. Calling SP1 from my mobile resulted in the call being diverted and answered by my anti spam on 166 without my home phones ever ringing.

I have a OBi100 boxed away I can dig out tomorrow and test this on, drop me a pm with the full dialplan your using in the X_InboundCallRoute field.
By mylesm
#883
sorry Paul

PM not going

heres my dialplan
Hi Paul

I have this in SP1 X_InboundCallRoute

{(001[012345789][123456789][012356789]xx.|MBlockSpam):sp1(300)},{ph}

MBlockSPam Contains

(0876855227)

When I call my home phone rings

iF I replace inboundcallroute with

{(MBlockSpam):sp1(300)},{ph}

and call again it diverts to 300

Thanks again

Myles
User avatar
By WelshPaul
#886
I got both PM's from you. :)

Just to make sure you don't have any () brackets in your MBlockSpam string do you?
Code: Select all
{(001[012345789][123456789][012356789]xx.|MYMOBILENUMBER|ANOTHERPHONENUMBER|YETANOTHERPHONENUMBER):sp1(300)},{ph}
It should be in the format as shown above.
By mylesm
#887
Ok

BlockSpam is User Defined Digit map2 and I intended to use it to store numbers I wanted to block

it contains at the moment this (mymobilenumber) including Brackets

Idea was to add numbers as I needed to

inbound call route {(MBlockSpam):sp1(300)},{ph}

call with mymobile and get diverted to 300

if i change to {(001[012345789][123456789][012356789]xx.|MBlockSpam):sp1(300)},{ph}

and call Phone Rings no diversion

If I change to {(001[012345789][123456789][012356789]xx.|MYMOBILENUMBER):sp1(300)},{ph}

call and it diverts to 300

in this latest

{(001[012345789][123456789][012356789]xx.|MYMOBILENUMBER|ANOTHERPHONENUMBER|YETANOTHERPHONENUMBER):sp1(300)},{ph}

thats the same idea as using BLockSPam I could just keep adding numbers here as required its really the same to do anyway

Is there a limit to how many yet another numbers you can add

mylesm
User avatar
By WelshPaul
#889
This is how you should have it set:
Code: Select all
SP1 Service > X_InboundCallRoute: {(MBlockSpam):sp1(300)},{ph}

User Defined Digit Maps> User Defined Digit Map2 >

Label: BlockSpam
DigitMap: (001[012345789][123456789][012356789]xx.|0876855227)
Tested on my OBi202 and it works just fine, it should works the same way on the 1xx series.

Advertisement

By Sponsor

Just found out that the latest firmware build for …

Supported Products: OBi504vs OBi508vs Firm…

Supported Products: OBi200 OBi202 OBi300 OB…

These are unlocked and unbranded Snom 760 IP Phone…