Help with call blocking

Catalog of dial plans
deskbound
Posts: 53
Joined: Tue Sep 15, 2009 7:47 pm
Location: NC

Eureka

Post by deskbound » Sat Feb 20, 2010 4:56 am

DoDo,

You solved my problem! You are the man! Not to minimize Mnipp, Aaron and others. The snap shot of your default plan led me to what I suspected all along was my problem. I have no clue how the dialing plan worked. And seeing that the dialing plan is everything, I can reduce that to just saying, I have no clue.

I didn't set up an incoming and outgoing plan but just had a default with both codes in it.

Using your lasted posted incoming plan that Mnipp had helped with, how would I string 2 more blocked numbers? Just use a comma and one/or no space separating them? /7041234567, 7042345678, 7042345679/ ?

Thanks again DoDo and guys for persisting. I'm sure there will be other folks that never messed with Asterisk, SS or what not that will benefit. I learn slow but I learn permanent.

Michael

mnipp
Posts: 192
Joined: Sat Oct 03, 2009 9:48 am
Location: NSW Australia

Post by mnipp » Sat Feb 20, 2010 6:32 am

Good to see your problem solved.

Code: Select all

case req.Header.from.FromURI.User.to_s 
    when /HERE NUMBER1 YOU WANT TO BLOCK/ then sys.Respond(403, "Forbidden")  # No Country code ( 7041234567 ) 
    when /HERE NUMBER2 YOU WANT TO BLOCK/ then sys.Respond(403, "Forbidden")
    when /HERE NUMBER3 YOU WANT TO BLOCK/ then sys.Respond(403, "Forbidden")
end
just add more "when statement" lines between the case number to test and end line.

I will soon post a update to this inplan with a howto on Blacklist and Whitelist numbers.
billion 7404VGP
dialplan (<9*:*>[0-9*][0-9*].T<:@sipbroker>|[0-9*].T)

deskbound
Posts: 53
Joined: Tue Sep 15, 2009 7:47 pm
Location: NC

Post by deskbound » Sat Feb 20, 2010 1:20 pm

mnipp,

Thanks for all your help designing plans.

Michael

Post Reply