Giter Club home page Giter Club logo

agispeedy's Introduction

Привет 😉

  • Живу в Красноярске
  • Работаю разработчиком ПО в Мобилон Телеком
  • Интересы в сфере технологий, продаж ИТ-продуктов, командной работы
  • 🖥 [email protected]

agispeedy's People

Contributors

hoowa avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

vdedyukhin

agispeedy's Issues

GOTO Function doesn't work

Hello,

I am sorry to bother you on your personal email, but I have been struggling to run GOTO application from AGI Speedy. I am using the latest version of AGISPEEDY (v1.6) and PHP 5.6. Everything works great but when I do the following

$agi->agi_exec('goto',"context,extension,1");

The dialplan just stops and nothing happens further, no error, no information is found in logs.

I tried to find alot on Web but nothing similar has been reported. Please advise what am I doing wrong. GOTO works fine from asterisk Dialplan but not from AGISPEEDY.

Your help will be highly appreciated.

Regards
Habib

PHP Fatal Error on 1.5 version

What steps will reproduce the problem?
1. agispeedy.php --verbose --debug
2. enable log_errors = On and error_log = syslog on php.ini
3. telnet localhost 4573

php: PHP Fatal error:  Using $this when not in object context in 
/usr/local/bin/agispeedy.php on line 569

Original issue reported on code.google.com by [email protected] on 3 Sep 2012 at 8:55

Slowly read from socet.

What steps will reproduce the problem?
1. Set more verbose to console.


What is the expected output? What do you see instead?
20 conclusions can be output verbose 2-3 seconds.

What version of the product are you using? On what operating system?
agispeedy - latest

php -v
PHP 5.3.5-1ubuntu7.11 with Suhosin-Patch (cli) (built: Sep 12 2012 18:47:04) 

uname -a
Linux hivede7-2347 2.6.18-308.8.2.el5.028stab101.1 #1 SMP Sun Jun 24 20:25:35 
MSD 2012 x86_64 x86_64 x86_64 GNU/Linux

asterisk -v
Asterisk 1.6.2.9-2ubuntu2.1, Copyright (C) 1999 - 2010 Digium, Inc. and others.


Please provide any additional information below.
I fix this in function socket_read_response
Set 
$select_tv_usec = 100; 
Previso value is 100000

Original issue reported on code.google.com by [email protected] on 20 Dec 2012 at 6:35

Wrong code in agispeedy.php can cause agispeedy to stuck?

What steps will reproduce the problem?
1. Sometimes agispeedy stops listen even if it's still in execution
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

I noticed there is " $server_stop(); " at line 528 of agispeedy.php instead of 
" server_stop(); " ... maybe is this the problem?

Original issue reported on code.google.com by [email protected] on 30 Jul 2014 at 1:35

agispeedy调用agi失败

测试版本:agispeedy 1.1 (php)
asterisk 版本 1.6.2.20
linux 版本:ubuntu 10.04
linux 内核:Linux ubuntu 2.6.32-21-generic


What steps will reproduce the problem?
1. 安装agispeedy
2. agispeedy直接send "hangup"
agi debug log:
root@ubuntu:/agispeedy# ./bin/agispeedy.php --verbose
[INFO][1331876622,1032]: Agispeedy - AGI ApplicationServer 1.1 starting...
[INFO][1331876622,1032][socket_open]: Services on 0.0.0.0:4573
[DEBUG][1331876622,1032][server_loop]: children 1034 created!
[DEBUG][1331876622,1032][server_loop]: children 1035 created!
[DEBUG][1331876622,1032][server_loop]: children 1036 created!
[DEBUG][1331876622,1032][server_loop]: children 1037 created!
[DEBUG][1331876623,1032][server_loop]: children 1038 created!
[DEBUG][1331876623,1032][server_loop]: children 1039 created!
[DEBUG][1331876623,1032][server_loop]: children 1040 created!
[DEBUG][1331876623,1032][server_loop]: children 1041 created!
[INFO][1331876662,1034][server_children_work]: catch one!
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1032][server_loop]: children 1151 created!
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[INFO][1331876662,1034][socket_read_response]: read (499)bytes end.
[INFO][1331876662,1034][socket_send_command]: Send "HANGUP"
[DEBUG][1331876662,1034][socket_read_response]: read a bit.
[INFO][1331876662,1034][socket_read_response]: read (13)bytes end.
[DEBUG][1331876662,1034][socket_send_command]: Received 200 result=1
[INFO][1331876662,1034][server_children_work]: exit!
[INFO][1331876692,1035][server_children_work]: catch one!
[DEBUG][1331876692,1035][socket_read_response]: read a bit.
[DEBUG][1331876692,1035][socket_read_response]: read a bit.
[INFO][1331876692,1035][socket_read_response]: read (499)bytes end.
[INFO][1331876692,1035][socket_send_command]: Send "HANGUP"
[DEBUG][1331876692,1032][server_loop]: children 1157 created!
[DEBUG][1331876692,1035][socket_read_response]: read a bit.
[INFO][1331876692,1035][socket_read_response]: read (13)bytes end.
[DEBUG][1331876692,1035][socket_send_command]: Received 200 result=1
[INFO][1331876692,1035][server_children_work]: exit!

3. 修改/agispeedy/bin/agispeedy.php 中的loadenviromentvars函数
修改为:
    function loadenviromentvars()
    {
        $szSocketRead=socket_read_response($this->sock,"\012\012");  //ENVIROMENT is \n\n end of
        $agienv = $this->envresult2array($szSocketRead);
        $this->input = $agienv[0];
        $this->param = $agienv[1];

        if (isset($this->input['agi_network_script'])==false)
            return(true);

        // fix scriptname if end with ?
        // check params in url mode like asterisk 1.4
        $agi_request = $this->input['agi_network_script'];
     if (strpos($agi_request,'?')!==false) {
            $fullname = explode("?",$agi_request);
            $this->scriptname = $fullname[0];
            //have params
            if (isset($fullname[1])) {
                foreach (explode("&",$fullname[1]) as $each) {
                    $kv = explode("=",$each);
                    if (count($kv) < 1)
                        continue;
                    $kv[0] = trim($kv[0]);
                    if (isset($kv[1])) {
                        $kv[1] = trim($kv[1]);
                        $this->param[$kv[0]]=$kv[1];
                    } else {
                        $this->param[$kv[0]]=null;
                    }
                }
            }
        }else {
                 $this->scriptname = $agi_request;
        }

Original issue reported on code.google.com by [email protected] on 16 Mar 2012 at 6:16

asterisk cannot access the agi scripts, need to restart agispeedy

What steps will reproduce the problem?
1. there are times that asterisk cannot access the agi scripts
2.
3.

What is the expected output? What do you see instead?
restart the agispeedy and everything works

What version of the product are you using? On what operating system?
agispeedy.1.5.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 20 Sep 2013 at 12:09

The idle memory locker requires write access to /var/run

Despite having configuration options for all other file locations, the idle 
memory lock file is hardcoded to use /var/run, which requires root access to 
create the file.

ie:
Line 257
// idle memory and locker
$GLOBALS['CHILDRENIDLE_LOCKER']='/var/run/'.$SERVER['name'].'.memidle';

This simply isn't required and an unrequired barrier to running as a limited 
user.


Original issue reported on code.google.com by [email protected] on 24 Aug 2012 at 2:39

asterisk in agispeedy necessary or not?

What steps will reproduce the problem?
1. execution of AGISERVER (host-Agispeedy)..[socket_open]: Services on 
0.0.0.0:4573..----> suceess
2. execution of agi script from asterisk server "PBXSERVER"
3. in asterisk cli does not generate the content of the script

What is the expected output? What do you see instead?
Elastix(AGISERVER)- Elastix(PBXSERVER) success
centos 6.4(AGISERVER)- Elastix(PBXSERVER) failed

What version of the product are you using? On what operating system?
AGISERVER -> centos 6.4 
PBXSERVER -> Elastix 2.3

Please provide any additional information below.
I want to know if I need asterisk installed on the AGISERVER?

Original issue reported on code.google.com by [email protected] on 8 Jan 2014 at 9:23

Big time dialing is not working

What steps will reproduce the problem?
1. Make call with big connection time (biggest 60 second)
2.
3.

What is the expected output? What do you see instead?
Method exec_dial returned false
array (
'code' => false,
'result' => NULL,
'data' => NULL,
)
Instruction 
Agi->get_variable('ANSWEREDTIME');
Agi->get_variable('DIALSTATUS');
returned
array (
'code' => 200,
'result' => 1,
'data' => NULL,
)

What version of the product are you using? On what operating system?


Please provide any additional information below.
I used additional method 
function exec_dial($ArgumentDial){
  return $this->agi_exec('DIAL', $ArgumentDial);
}

Original issue reported on code.google.com by [email protected] on 20 Dec 2012 at 6:43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.