Quoting "René Enskat [Teamware GmbH]" <[EMAIL PROTECTED]>:
What I normally do now with agi->verbose is to pass it a variable using print_r($outputvariable, true). thus if I want to output a string "xxxx" or an array of some sort it goes out in the form $output = "xxxx" $agi->verbose(print_r($output, true)) What I suggest now is to suppress screen output as much as you can and see if the 510 errors go away. I also realised after using phpagi 1 before that the variable hashes had changed in phpagi 2. So if you are adapting some code from phpagi 1 check the hashes. Do a print_r on the result variables and see if the hashes are what you expect them to be. > I have the phpagi 2 library too. > So what did you change in details there to mute the vebrose things? > > > > > > -----Ursprüngliche Nachricht----- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag von Obelix > > Gesendet: Montag, 17. Oktober 2005 11:02 > > An: Asterisk Users Mailing List - Non-Commercial Discussion > > Betreff: Re: [Asterisk-Users] AGI Problem > > > > Quoting "René Enskat [Teamware GmbH]" <[EMAIL PROTECTED]>: > > > > In my experience most AGI problems I had came from other info > > sent to the terminal via verbose commands and other stdout > > output. There is some info on the voip-info wiki about using AGI. > > > > I use the phpagi 2 library, and carefully setting up the > > agi->verbose commmands fixes my 510 problems > > > > > > > > Hmm still have problems with the get variable with PHP i have this > > > error now separated with a script: > > > > > > Sending string GET VARIABLE CALLERIDNUM\n to Asterisk... > > > Wroten bytes to STDOUT: 25 > > > > > > Reading 80 bytes response from Asterisk... > > > Received response: 510 Invalid or unknown command > > > > > > > > > > > > _______________________________________________ > > > --Bandwidth and Colocation sponsored by Easynews.com -- > > > > > > Asterisk-Users mailing list > > > [email protected] > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > To UNSUBSCRIBE or update options visit: > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > > > > > > > > ---------------------------------------------------------------- > > This message was sent using IMP, the Internet Messaging Program. > > > > _______________________________________________ > > --Bandwidth and Colocation sponsored by Easynews.com -- > > > > Asterisk-Users mailing list > > [email protected] > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > [email protected] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
