Blocking Calls from 'Unknown'

Started by Uncle_Wiggley, July 28, 2014, 08:29:24 PM

Previous topic - Next topic

ianobi

@ InetUser - I upgrade my agreement to 100% regarding your comment regarding labels.

Empirical testing always beats making assumptions   :)

MarkObihai

#21
This is probably a good place to park this information on how call routes work, just for clarification.  I hope it's of use.  :)

For each Trunk (SP, LI, PP, BT etc), configure routing rules for incoming calls in the following format:

rule  or  {rule},{rule},....,  where:


•   Rules and peerings are tested from left to right
•   The first matched rule will be selected and used to route the call
•   Every rule must be placed inside a pair of { } curly brackets
•   Digitmaps always inside round brackets (Mabc)
•   If there is only 1 rule, then { } is optional.
•   {0255556666:SP2}  is the same as {(0255556666):SP2} - since 0255556666 is just a constant, the parentheses are optional - however:
•   If the rule includes things like xxxx and so forth that is a part of digitmap syntax, the round brackets are required, like this:   {(025xx.):SP2}  or  {(xxx|123|(MMMM)):}
Obihai Technology (London, United Kingdom)

ianobi

Neat table. Much clearer than the Admin Guide.

Also, nice to see postings from Obihai staff   :)

MarkObihai

#23
It's a table from this document (Page 7):

http://www.obihai.com/docs/OBi-VoIP-Device-Attach-Legacy-IP-Phone-Workbook-v1-0.pdf

I created that document a few months ago as a follow on to this digit maps tutorial that I created for our Australian users on the Whirlpool forum:

http://www.obihai.com/docs/OBi-VoIP-Device-Australian-Localisation-Workbook-v1-1.pdf

Skimming through both documents, there are some errors than can be fixed and tidied, but I could also rewrite both documents in a more generic manner and combine them into an "Introduction to digit maps and call routing" - would that be of benefit?

- Mark.
Obihai Technology (London, United Kingdom)

ianobi

I believe an "Introduction to digit maps and call routing" would be a great benefit to OBi users. All of the information does exist, but it is spread around all over the place in various documents and postings on this forum. To have a good basic guide in one place where new (and not so new) users could be directed would be useful.

Let's wait a day or two and see if other forum posters agree.

drgeoff

I not only agree but strongly encourage Mark to write such a guide.

Uncle_Wiggley

I've been away for awhile and have just seen the replies here.

I will try enclosing the digit map reference in parenthesis and see what happens.

Thanks for all of the hand holding.

Uncle_Wiggley

Ok, success in blocking all of the 'bad guys' I have in my 'Ban' list.

Now, another question:

Right now, it appears that the banned numbers don't ring my phone, but do go to voicemail.

For some numbers, that is fine, but for others, I don't even want to give them a shot a voicemail.

Is there a way to specify or configure that somehow?

azrobert

Setup a 2nd ban list then add the following rule to the inbound route:
{(Mban2):sp2(lenny@sip.itslenny.com)}

SP2 must be defined as SIP.

See: http://www.itslenny.com/
Lenny will answer the call, so it won't go to VM.

Uncle_Wiggley

Quote from: azrobert on August 28, 2014, 01:46:52 PM
Setup a 2nd ban list then add the following rule to the inbound route:
{(Mban2):sp2(lenny@sip.itslenny.com)}

SP2 must be defined as SIP.

See: http://www.itslenny.com/
Lenny will answer the call, so it won't go to VM.


Well, that's pretty funny, but it might not be the best remedy.

Best would probably be the ability to forward to a 'not in service' message and hang up.

How would one do something like that?

azrobert

#30
I send these calls to Callcentric's Fax to Email service.
Get a CC free Freedom account.
In call treatments route all inbound calls to CC's Fax to Email service.
Send the calls to sp2(17771234567@in.callcentric.com)
17771234567 is your CC account number.
If the caller is smart enough they can send you an ad via fax.
I've been doing this for years and I never received a fax.

OR

Here are some Bell System Recorded Announcements:
http://www.beatriceco.com/bti/porticus/bell/recordedannouncements.html
The one you want is BlankNumber-.wav

Play the above several times and use any recording software to record it.
Use the recording as a greeting for an email service.
GoogleVoice allows a custom greeting.
Send the calls to the email service.

Maybe someone else will suggest a better method for using the recording.

azrobert

#31
You can set up a Tropo script to play the recording from my last post directly from the Web site. Tropo is a free service when used for development. I've had my free account for years.
Here is the script to play the disconnect recording:
<?php

answer
();
say("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
say("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
reject();

?>


It plays a Sit tone then the "Disconnected" message twice and hangs up.
If anyone wants to try this get a free Tropo account here:
https://www.tropo.com/register

Create an App with a name like "Ban"
Then create a file/script for the App with the above code and name it "Ban.php"
The script is written in PHP, so the file suffix must be php.

I have trouble creating/modifying Tropo scripts using Internet Explorer, so I use Chrome.
If you have trouble creating an App, I can walk you thru it.

After the App is created they give you a SIP URI to access it.
It will be like this:
9990012345@sip.tropo.com

Edit:
I changed the "Hangup" to "Reject".

Edit2:
I found a better quality recording and changed the script.

Uncle_Wiggley

Quote from: azrobert on August 31, 2014, 09:52:51 AM
You can set up a Tropo script to play the recording from my last post directly from the Web site. Tropo is a free service when used for development. I've had my free account for years.
Here is the script to play the disconnect recording:
<?php

answer
();
say("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
say("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
reject();

?>


It plays a Sit tone then the "Disconnected" message twice and hangs up.
If anyone wants to try this get a free Tropo account here:
https://www.tropo.com/register

Create an App with a name like "Ban"
Then create a file/script for the App with the above code and name it "Ban.php"
The script is written in PHP, so the file suffix must be php.

I have trouble creating/modifying Tropo scripts using Internet Explorer, so I use Chrome.
If you have trouble creating an App, I can walk you thru it.

After the App is created they give you a SIP URI to access it.
It will be like this:
9990012345@sip.tropo.com

Edit:
I changed the "Hangup" to "Reject".

Edit2:
I found a better quality recording and changed the script.


I'm familiar with Tropo and this should work well.

However, for some reason I'm currently getting server errors anytime I try to do something with Tropo.

I'll have to try at another time.

Uncle_Wiggley

Quote from: azrobert on August 31, 2014, 09:52:51 AM
You can set up a Tropo script to play the recording from my last post directly from the Web site. Tropo is a free service when used for development. I've had my free account for years.
Here is the script to play the disconnect recording:
<?php

answer
();
say("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
say("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
reject();

?>


It plays a Sit tone then the "Disconnected" message twice and hangs up.
If anyone wants to try this get a free Tropo account here:
https://www.tropo.com/register

Create an App with a name like "Ban"
Then create a file/script for the App with the above code and name it "Ban.php"
The script is written in PHP, so the file suffix must be php.

I have trouble creating/modifying Tropo scripts using Internet Explorer, so I use Chrome.
If you have trouble creating an App, I can walk you thru it.

After the App is created they give you a SIP URI to access it.
It will be like this:
9990012345@sip.tropo.com

Edit:
I changed the "Hangup" to "Reject".

Edit2:
I found a better quality recording and changed the script.


Finally go Tropo to accept my script, but it doesn't seem to work on the Tropo end.

I know it makes it to Tropo because I can see the logging information there.

All I hear is a brief ring, and then basically silence.

azrobert

#34
I'm having trouble using Internet Explorer with Tropo. In the past my Tropo scripts weren't getting updated with IE. I have an older computer running Vista with Chrome installed. Chrome worked perfectly with Tropo.

For this script I had a Tropo App I don't use, so I thought I would modify it instead of creating a new App. I used IE and it seemed to update, but when I looked at it again it wasn't updated. If someone told me this I would think he was wacko. I never had a problem like this with IE.

Are you using Internet Explorer?

Anyway, I created another App from scratch using the following script:

<?php
say
("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
say("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
hangup();
?>


First, the previous script worked for me. It took a few seconds before the message was played after it answered the call. I removed the optional Answer command. It didn't make a difference. I removed the blank lines and changed the last command back to Hangup.

I created a Speed Dial to test it like this:
sp2(9991425987@sip.tropo.com)

If you want to test, the above is the actual number for my App.  I feel uncomfortable leaving this App public, so I will be deleting it in a few days.

Edit:
First, I am far from a Tropo expert. The script doesn't force the call to end. When I test it with a Speed Dial the call stays in session until I hang up. That is why I changed the last command to Reject, but I got the same result.

Edit2:
I just noticed a error with the previous script. I inserted a blank as the 1st character of the script when I did the cut and paste. I don't know if this would cause a problem.

Edit3:
The App stopped answering. I think Tropo is having problems.

Edit4:
The App is working again without any changes.
Using IE going thru MY FILES (Instead of MY APPS) to update the script worked.





Uncle_Wiggley

Quote from: azrobert on September 02, 2014, 08:26:43 PM
I'm having trouble using Internet Explorer with Tropo. In the past my Tropo scripts weren't getting updated with IE. I have an older computer running Vista with Chrome installed. Chrome worked perfectly with Tropo.

For this script I had a Tropo App I don't use, so I thought I would modify it instead of creating a new App. I used IE and it seemed to update, but when I looked at it again it wasn't updated. If someone told me this I would think he was wacko. I never had a problem like this with IE.

Are you using Internet Explorer?

Anyway, I created another App from scratch using the following script:

<?php
say
("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
say("http://www.thisisarecording.com/z/z/206-201-0000X.mp3");
hangup();
?>


First, the previous script worked for me. It took a few seconds before the message was played after it answered the call. I removed the optional Answer command. It didn't make a difference. I removed the blank lines and changed the last command back to Hangup.

I created a Speed Dial to test it like this:
sp2(9991425987@sip.tropo.com)

If you want to test, the above is the actual number for my App.  I feel uncomfortable leaving this App public, so I will be deleting it in a few days.

Edit:
First, I am far from a Tropo expert. The script doesn't force the call to end. When I test it with a Speed Dial the call stays in session until I hang up. That is why I changed the last command to Reject, but I got the same result.

Edit2:
I just noticed a error with the previous script. I inserted a blank as the 1st character of the script when I did the cut and paste. I don't know if this would cause a problem.

Edit3:
The App stopped answering. I think Tropo is having problems.

Edit4:
The App is working again without any changes.
Using IE going thru MY FILES (Instead of MY APPS) to update the script worked.






I did all my editing with Chrome.

I am trying to use your Tropo App, but get the same results as mine: short ring and then nothing except some very faint pulsating static.

I'm changing the the X_InboundCallRoute for my SP2 voice service to include the following rule:

{(MHangup):sp2(9991425987@sip.tropo.com)}, ...

Not sure if the problem has something to do with transferring a call on sp2 to sp2 again.

The call does make it to Tropo, but I can't hear the result for some reason.

azrobert

I did all my testing with a Speed Dial.
I just now changed the X_InboundCallRoute for a GV account to the following and it worked.
{sp2(9991425987@sip.tropo.com)}

Can you run your App from a browser?
Log into Tropo.
Click on your App.
There are 2 places you can call the App.
On the top right or bottom of the page.
You will get a pop-up keypad.
Click on the phone symbol on the bottom left.
You might get a 2nd pop-up.
Click on the circle next to Allow.

Uncle_Wiggley

Quote from: azrobert on September 03, 2014, 06:55:45 PM
I did all my testing with a Speed Dial.
I just now changed the X_InboundCallRoute for a GV account to the following and it worked.
{sp2(9991425987@sip.tropo.com)}

Can you run your App from a browser?
Log into Tropo.
Click on your App.
There are 2 places you can call the App.
On the top right or bottom of the page.
You will get a pop-up keypad.
Click on the phone symbol on the bottom left.
You might get a 2nd pop-up.
Click on the circle next to Allow.


There isn't a phone number associated with my app, but I don't think it is my app because I get the same results with your app. It must be something else, probably on the Obi side of things.

azrobert

You don't have to dial a number.
Click on "Call my App from browser".
Then click on the Phone symbol.
You don't dial a number.

Uncle_Wiggley

Quote from: azrobert on September 03, 2014, 07:22:26 PM
You don't have to dial a number.
Click on "Call my App from browser".
Then click on the Phone symbol.
You don't dial a number.

OK, I get the same results as with forwarding the Obi calls.

The call answers, then silence, then hangs up.