[wordpress插件] Asterisk Web Callback星号Web回调

wordpress 插件 文章 2020-02-22 08:20 528 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

A widget that allows you to make a callback to a client number via your Asterisk from your site.

一个小部件,可让您通过星号从您的站点回拨到客户号码。

If you have own site and Asterisk for SIP calls, and need to make callback to your customer, use Asterisk Web Callback widget!

如果您拥有自己的站点和用于SIP呼叫的Asterisk,并且需要向客户进行回叫,请使用Asterisk Web回叫小部件!

It’s simple solution to add callback function at web site.

这是在网站上添加回调函数的简单解决方案。

Major features in Asterisk Web Callback include:

Asterisk Web回调的主要功能包括:

    1. Make a callback to a customer number via Asterisk Manager Interface (AMI) at working time;

      在工作时通过Asterisk Manager Interface(AMI)回调客户编号;

    2. Pattern validate customer number when input (notify on the site page);

      模式在输入时验证客户编号(在网站页面上通知);

    3. Notification that a callback is in progress (message on the site page);

      有关正在进行回调的通知(网站页面上的消息);

    4. Sending notifications to your e-mail if the customer requested a callback when:

      在以下情况下,如果客户要求回电,则将通知发送到您的电子邮件中:

        • working day is off or holyday;
        • 工作日是休息日或假日;

        • Asterisk was unavailable for callback.
        • 星号不可用于回调。

      • Easy navigation to the form of a callback with a floating button.

        轻松导航到带有浮动按钮的回调形式。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.

      将插件文件上传到 / wp-content / plugins / plugin-name 目录,或直接通过WordPress插件屏幕安装插件。

    2. Activate the plugin through the ‘Plugins’ screen in WordPress

      通过WordPress中的“插件”屏幕激活插件

    3. Use the Appearance->Widgets to add Asterisk Web Callback widget

      使用外观->小部件添加Asterisk Web回调小部件

    4. Activate Asterisk AMI, eg:

      激活Asterisk AMI,例如:

      /etc/asterisk/manager.conf

      /etc/asterisk/manager.conf

      [general]

      [一般]

      enabled = yes

      已启用=是

      port = 5038

      端口= 5038

      bindaddr = 0.0.0.0

      bindaddr = 0.0.0.0

    5. Add Asterisk AMI user, eg:

      添加Asterisk AMI用户,例如:

      /etc/asterisk/manager.conf

      /etc/asterisk/manager.conf

      [c2call]

      [c2call]

      secret=VeryStrongPassword

      secret =非常强密码

      deny=0.0.0.0/0.0.0.0

      deny = 0.0.0.0 / 0.0.0.0

      permit=YourWebServerIP

      permit = YourWebServerIP

      read=system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

      读取=系统,调用,日志,详细,命令,代理,用户,配置,命令,dtmf,报告,cdr,拨号计划,起源

      write=system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

      write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

    6. Reload your Asterisk, eg:

      重新加载星号,例如:

      asterisk -rx “module reload manager”

      asterisk -rx“模块重新加载管理器”

    7. Enable fsockopen() php-method on your web server, eg:

      在您的Web服务器上启用fsockopen()php方法,例如:

      php.ini:

      php.ini:

      allow_url_fopen = On

      allow_url_fopen =开

    8. Set widget parameters:

      设置小部件参数:

        • Title: web form title;
        • 标题:网络表单标题;

        • SIP host: external ip or name of your SIP Asterisk server;
        • SIP主机:SIP Asterisk服务器的外部IP或名称;

        • SIP port: external port for connect to Asterisk AMI;
        • SIP端口:用于连接到Asterisk AMI的外部端口;

        • User name: Asterisk AMI user name;
        • 用户名:Asterisk AMI用户名;

        • Password: Asterisk AMI user password (set strong value);
        • 密码:Asterisk AMI用户密码(设置为强值);

        • CallerID prefix: prefix for CallerID value (eg: web);
        • CallerID前缀:CallerID值的前缀(例如:web);

        • Tel number lenght: digits count of customer number (used to exclude the entry of unwanted numbers), eg: 11 for Russia;
        • 电话号码长度:客户电话号码的位数(用于排除不必要的电话号码),例如:俄罗斯为11;

        • Region code: customer number prefix (used to exclude the entry of unwanted numbers), eg: 89 – for mobile numbers in Russia;
        • 地区代码:客户号码前缀(用于排除不需要的号码),例如:89 –用于俄罗斯的手机号码;

        • SIP channel: your Asterisk SIP channel, used for incoming web calls;
        • SIP频道:您的Asterisk SIP频道,用于传入网络呼叫;

        • SIP context: your Asterisk SIP context, used for incoming web calls;
        • SIP上下文:您的Asterisk SIP上下文,用于传入Web呼叫;

        • Wait time: count of ms answer waiting, eg: 60000 – for 1 minute answer waiting;
        • 等待时间:等待等待的毫秒数,例如:60000 –等待1分钟的等待时间;

        • SIP priority: your Asterisk SIP priority for callback function;
        • SIP优先级:您的Asterisk SIP回调功能的优先级;

        • Notify e-mail: address for receiving notifications of attempts to callback outside office hours.
        • 通知电子邮件:用于接收在办公时间以外尝试回叫的通知的地址。

下载地址
https://downloads.wordpress.org/plugin/asterisk-web-callback.zip
-EOF-

AI助手支持GPT4.0