FreeSwitch outgoing call. Answering machine(fax) detection - voip

Is there a way to detect and log calling on fax machines somehow to see the number of 'real'(human-human) calls and 'false'(human-fax) ones before someone answers the call?
I've searched for solutions and found possible ones:
spandsp_start_fax_detect.
<action application="spandsp_start_fax_detect" data="transfer 'fax XML default' 3"/>
tone_detect.
<action application="tone_detect" data="busy 425 r 0 hangup 'normal_clearing' 3"/>
mod_com_amd module
I'm not sure that these solutions are the ones I need, and AMD module costs 50$ per channel, so I'm asking for help.
Using FusionPBX(FreeSwitch).
Does anyone know the correct way of resolving the problem?

before someone answers the call?
There is no way to detect if its a fax machine or Human before answering a call.
tone_detect and spandsp are the ones in freeswitch to detect fax - Free module
I've 90% success rate in detecting fax calls with
<action application="tone_detect" data="fax 1100 r +5000 transfer 'faxreceive XML fax' 1"/>
Check for the params explanation here

Related

Sendy.co generating errors and filling up hard drive

I am using sendy.co and although I purchased the script directly from sendy.co website I am noticing a ton of errors in my error log each time I send an email blast that says
Undefined array key "license" in /includes/functions.php eval()'d code on 270
Also
Undefined array key "userID" in /includes/functions.php eval()'d code on 150
Unfortunately, functions.php is an encrypted file and I don't want to try to reverse-engineer it. Wondering if anyone ever had this issue and how it might of been resolved.
I sent an email to the hello#sendy.co but as i wait for an answer was hoping maybe someone else came across this issue and resolved it

Date parameters for Google Finance API not working

I am trying to pull over end-of-day share prices going back in time. The code below provides exactly what I need but it appears that that the year/month/day parameters do not work.
import requests
params={'q': 'NASDAQ:AAPL', 'expd': 10, 'expm': 3, 'expy': 2018, 'output': 'json'}
response = requests.get('https://finance.google.com/finance', params=params, allow_redirects=False, timeout=10.0)
print(response.content)
The closing price for this is "l" : "178.65" which is the most recent closing price (15 March) and not for 10 March as specified. I am assuming I cannot rely on this service as it is no longer supported by Google but would be good if someone can confirm if I am correct around the dates not working or if I am missing something.
Well, up until this morning this used to work:
http://finance.google.com/finance/historical?q=NASDAQ:msft&output=csv&startdate=Mar+15%2c+2018&enddate=Mar+15%2c+2018
I asked two other people to confirm on different ISPs and we all get the same error message:
We're sorry... but your computer or network may be sending automated queries. To protect our users, we can't process your request enter code here`right now. See Google Help for more information.
same here:
https://finance.google.com/finance/historical?q=AAPL&output=csv
it looks like google close finance api or change path.
This URL still works:
https://finance.google.co.uk/bctzjpnsun/historical?q=NASDAQ:msft&output=csv&startdate=Mar+15%2c+2018&enddate=Mar+15%2c+2018
I recommend you to make a copy of the data ASAP though, because Google will probably close this other link soon.

v8 on mac includes malware?

I use Comodo antivirus scan my mac and found that there are some threads.
All are marked with name:
UnclassifiedMalware#290428014
for file
string-replace-gc.js
Just wonder if Comodo makes mistake or there is something infects V8?
Your comment welcome
It's a test that doesn't even get executed normally.
So I'd bet it's a false positive. You can compare that with github if you want.

message text not available when using psloglist

I'm using psloglist to analysis the saved event log for my windows 2003 server, however, the critical information i need is not retrieved properly and "message text not available. insertion strings" is appended instead. I've been searching for long while and still unable to find any solution or the root cause, anybody come across the same and could give some help in this? Thanks.
psloglist \\localhost -d 7 application -o "Source" | find "MessageText"

How to call telephone number through asterisk trunk from external application talking through prophecy?

Wow, that title was a mouthful...
I'm sure that sounds very confusing at first glance. This is the basis of what I've got going on:
I have:
-a server set up with Asterisk and Voxeo Prophecy running on it.
-Prophecy set up as extension for Asterisk.
-another server running an external application.
The external application generates some two XMLs: one ccxml and one vxml file, for Voxeo to read and execute, which then initiates a call to (up until today) an asterisk extension.
The project is moving along, though, and yesterday I got a SIP Trunk and a DID number in hopes to turn this application into something that can call real people.
The trunk is working on Asterisk, and I've been able to initiate calls through a softphone (X-lite) to my cell phone number. That works just fine.
However, when I try to initiate calls from the external application, it does not go through. I've tried numerous things to try to fix it but it's just not working.
Prior to the trunk/DID business, the working code to call an asterisk extension was as follows:
<createcall>dest="'sip:*Extension here*#*IP Address here*'"
connectionid="myOutBoundConnectionID" timeout="'45s'" callerid="'*Extension here*
#*IP Address here*'"</createcall>
My first thought was that I might need to have a trunk specified for Prophecy as well as for Asterisk, but I'm probably way off base.
The reformatted code that I thought would work was as follows:
<createcall>dest="'tel:*Phone Number here*'" connectionid=
"myOutBoundConnectionID" timeout="'45s'" callerid="'*Phone Number here*
'"</createcall>
...but this does not work at all.
The log files say things like this when I call from my softphone:
-- Executing [*My phone number*#from-internal:1] Macro("SIP/1001-0000007d", "user-
callerid,LIMIT,") in new stack
but when I call from the external application, things are a little different:
-- Executing [*My phone number*#from-sip-external:1] NoOp("SIP/*IP Address:5080-0000007c",
"Received incoming SIP connection from unknown peer to *phone number*") in new stack
Can anyone shed some light on what is happening here? Thanks in advance!
You should make your reformatted create call look something like this:
<createcall>dest="'tel:*Phone Number here*#*IP Address of Asterisk*'" connectionid= "myOutBoundConnectionID" timeout="'45s'" callerid= "'*Prophecy's Asterisk Extension'"</createcall>
Make sure your Asterisk server has an outbound rule to hit 10-digit phone number via your SIP trunk (I assume it does if your softphone calls work.
Depending on your SIP provider, this may result in your outbound calls appearing to come from the Extension number, not whatever external number you want to present. If you wish to present another number, you probably need to get prophecy to register the SIP station it uses, if you haven't already (in Prophecy's config.xml), in fact you may need/have to do this anyway before this will work.

Resources