TimeoutError:[WinError 10060]尝试使用星号进行调用时

时间:2018-05-05 19:35:46

标签: python-3.x asterisk

我正在尝试initiate a call使用星号。

var path = require('path');
const ExtractTextPlugin = require("extract-text-webpack-plugin");

const SRC_DIR = path.resolve(__dirname,'../src');
const DIST_DIR = path.resolve(__dirname, '../dist');

module.exports = {
    entry: {
        app: SRC_DIR + '/table/AwesomeTable.js'
    },
    output: {
        path: DIST_DIR,
        filename: 'awesome-table-dist.js',
        library: 'AwesomeTable',
        // libraryTarget: 'window'
    },
    module: {
        rules: [
            {
                test: /\.scss$/,
                use: ["style-loader", "css-loader", "sass-loader"],
            },
        ],
    },
    plugins: [
        new ExtractTextPlugin('style.css')
        //if you want to pass in options, you can do so:
        //new ExtractTextPlugin({
        //  filename: 'style.css'
        //})
    ]
};

我收到错误

HOST = "182.156.197.37"
PORT = 5060
# indian number 89788xxxxx country code 91
click_to_call(phone_to_dial='0119189788xxxxx',
              username = 'xxxxx', password = "xxxxxx",
              local_user = '600')

我没有任何分机号码,所以我尝试了

Traceback (most recent call last):
  File "D:/Projects/Trails/testcall.py", line 45, in <module>
local_user = '600')
  File "D:/Projects/Trails/testcall.py", line 30, in click_to_call
s.connect((HOST, PORT))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Process finished with exit code 1

但我仍然有同样的错误。如何纠正错误?

1 个答案:

答案 0 :(得分:0)

检查防火墙,检查/etc/asterisk/manager.conf以及bind ip的包含文件。