天号码www.ahjesus.com1.Astgo支持双IP绑定。

算法名称 Alias Method

Astgo服务器相关:

public class AliasMethod {
        /* The probability and alias tables. */
        private int[] _alias;
        private double[] _probability;

        public AliasMethod(List<Double> probabilities) {

            /* Allocate space for the probability and alias tables. */
            _probability = new double[probabilities.Count];
            _alias = new int[probabilities.Count];

            /* Compute the average probability and cache it for later use. */
            double average = 1.0 / probabilities.Count;

            /* Create two stacks to act as worklists as we populate the tables. */
            var small = new Stack<int>();
            var large = new Stack<int>();

            /* Populate the stacks with the input probabilities. */
            for (int i = 0; i < probabilities.Count; ++i) {
                /* If the probability is below the average probability, then we add
                 * it to the small list; otherwise we add it to the large list.
                 */
                if (probabilities[i] >= average)
                    large.Push(i);
                else
                    small.Push(i);
            }

            /* As a note: in the mathematical specification of the algorithm, we
             * will always exhaust the small list before the big list.  However,
             * due to floating point inaccuracies, this is not necessarily true.
             * Consequently, this inner loop (which tries to pair small and large
             * elements) will have to check that both lists aren't empty.
             */
            while (small.Count > 0 && large.Count > 0) {
                /* Get the index of the small and the large probabilities. */
                int less = small.Pop();
                int more = large.Pop();

                /* These probabilities have not yet been scaled up to be such that
                 * 1/n is given weight 1.0.  We do this here instead.
                 */
                _probability[less] = probabilities[less] * probabilities.Count;
                _alias[less] = more;

                /* Decrease the probability of the larger one by the appropriate
                 * amount.
                 */
                probabilities[more] = (probabilities[more] + probabilities[less] - average);

                /* If the new probability is less than the average, add it into the
                 * small list; otherwise add it to the large list.
                 */
                if (probabilities[more] >= average)
                    large.Push(more);
                else
                    small.Push(more);
            }

            /* At this point, everything is in one list, which means that the
             * remaining probabilities should all be 1/n.  Based on this, set them
             * appropriately.  Due to numerical issues, we can't be sure which
             * stack will hold the entries, so we empty both.
             */
            while (small.Count > 0)
                _probability[small.Pop()] = 1.0;
            while (large.Count > 0)
                _probability[large.Pop()] = 1.0;
        }

        /**
         * Samples a value from the underlying distribution.
         *
         * @return A random value sampled from the underlying distribution.
         */
        public int next() {

            long tick = DateTime.Now.Ticks;
            var seed = ((int)(tick & 0xffffffffL) | (int)(tick >> 32));
            unchecked {
                seed = (seed + Guid.NewGuid().GetHashCode() + new Random().Next(0, 100));
            }
            var random = new Random(seed);
            int column = random.Next(_probability.Length);

            /* Generate a biased coin toss to determine which option to pick. */
            bool coinToss = random.NextDouble() < _probability[column];

            return coinToss ? column : _alias[column];
        }
    }

1.Astgo支撑对IP绑定,比如联通、电信IP,Astgo 默认SIP端口 5080及5061 菜单:
选项->系统设置 可以装以上参数

测试

2.支撑RC4加密,自动判断处理

Dictionary<String, Double> map = new Dictionary<String, Double>();
            map.Add("1金币", 0.2);
            map.Add("2金币", 0.15);
            map.Add("3金币", 0.1);
            map.Add("4金币", 0.05);
            map.Add("未中奖", 0.5);

            List<Double> list = new List<Double>(map.Values);
            List<String> gifts = new List<String>(map.Keys);

            AliasMethod method = new AliasMethod(list);

            Dictionary<String, int> resultMap = new Dictionary<String, int>();

            for (int i = 0; i < 10; i++) {
                int index = method.next();
                string key = gifts[index];
                Console.WriteLine(index+":"+key);
            }

3.支撑公网路由器下放置私网Astgo服务器配置。

末尾推荐个站,全世界的手机号码免费应用
天号码www.ahjesus.com

5.Astgo得安装于centos5.5
的Linux 系统或其它支持yum 自动更新的
Linux 系统

 

6.硬件配置要求:INTEL 双核CPU 两粒,内存 4G ,硬盘 40G
或以上(最好做硬盘raid)

7.带宽配置:按并发数量计算:

G711 每线90.4kbit/s 100线并作占 9Mbps

G729 每线34.4kbit/s 100线并发占用 3.4Mbps

G723 每线22.9kbit/s 100线并发占用 2.2Mbps

8.Astgo服务器多久又开一赖,一般不用重新开,一般可以免间断运行一年以上。如果出特殊要求可以重启。

9.Astgo
支撑语音编码自动转换.目前支持的编码:ulaw,alaw,GSM,G729a,G723.1(5.3k或6.4k),G722,Speex等

Astgo总管用户admin:

1.Astgo 总管admin 有些许单密码,默认分别吗 feeadmin和admin

2.密码feeadmin 是足以于一级代理充值使用的财务密码, 密码admin
是平凡管理密码

 

 

Astgo用户帐号:

1.Astgo系统之用户帐号具有一个帐号全部功能的来意,回拨、半直拨、一号属、SIP帐号、DID号码、集团号码、呼叫中心号码自动集成一体。

2.如发生两样业务费率需要装不同,用户帐号或储值卡中有活动加前缀:SIP加前缀、直拨加前缀、回拨加前缀来自动路由和兼容不同的费率

 

Astgo计费方式:

1.流量代理计费方式:
代理及顶头上司代理及用户帐号必须设置费率,每次打电话按代理费率和用户费率同时扣费

2.面值代理计费方式:代理不扣费,只有用户帐号按用户费率扣费

 

什么添加预约号:

1.菜单:中继路由->中继管理->新增中继落地 添加中继号码对方的生之
IP

2.菜单:中继路由->呼入路由->新增呼入路由 业务类别选择 回拨预约

 

怎回铃后输入编号会提醒呼叫失败请与公的服务商联系:

1.回铃线路是否支持回拨,也便是是否可规范之接收用户输入的编号

2.反省代理商费率、检查用户费率

3.检查呼出路由组中呼出路由是否有

 

什么样设置预约号及充值号码:

1.负就管理->添加预约号落地

2.呼入路由->添加中继预约

 

什么设置回铃主叫号码:

1.系安装,全局回铃主叫号码,如果安也*
那么网会自行用帐号作为主叫号码

2.安用户帐号 的主叫号码号码:用户管理->配置 设置帐号主叫号码

3.呼出路由设置主叫号码池

 

怎么设置不#号收号:

1.Astgo自动支持是意义,在输入编号后3秒左右活动呼出

 

半直拨、回拨回铃输入编号前播放余额是否好输入编号:

1.半直拨、回拨回铃输入编号前播放余额的时候,用户的按键输入按键将卡住进入输入编号语音,系统自动采集用户的按键

 

扭曲回工作回铃和被叫是否好利用不同之路由:

1.好,回铃路由好装也躲的线,被叫路由得以安装也透传的线路,实现合理使用资源

 

Astgo支持快捷拨号吗:

1.支持拨号自动记录被叫号码,用户还拨打已经拨打的数码时只是直接输入尾数1到4各即可

 

网络电话语音网关或软件电话怎么查话费:

1.呼入路由 添加 被于吧 8000 的 IVR主菜单或查费业务

2.网关或者软件电话直接反过来打 8000即可

 

设若换Astgo适合播放的wav文件:

1.下载 GoldWave 软件

2.开辟GoldWave软件,在主菜单的 “文件” 下的 “批处理”

 

图片 1B7WC(D%5D48%246%7B07VUM.jpg)

图片 2

相关文章