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
Help with call blocking
Good to see your problem solved.
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.
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
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)
dialplan (<9*:*>[0-9*][0-9*].T<:@sipbroker>|[0-9*].T)