Hi Michael, On Sun, 2007-09-16 at 15:10 +0200, Michael Kamleitner wrote: > thx very much Nasir & Philipp, I'm gonna try this tomorrow when I'm > back at the server... > > however, I wonder if this behavior has changed recently, as I swear > [ ;) ] that this script has been working before...
yes you are right. but this is only true if your are using FastAGI. its not available in regular AGI please visit http://www.voip-info.org/wiki-Asterisk+FastAGI for more info. Regards Nasir Iqbal http://www.ictinnovations.com > > > regards, > michael > > On 9/15/07, Philipp Kempgen <[EMAIL PROTECTED]> wrote: > Michael Kamleitner wrote: > > > I've built a simple PHP-script utilizing the AGI-interface. > in > > extensions.conf I trigger the script and pass a single value > as first > > argument: > > > > exten => h,1,DeadAGI(process.php|${Enter}) > > > > On the Asterisk-console, I can actually see that the script > is called > > correctly (something like "DeadAGI(process.php|1234)"). > However, when I read > > stdin in the PHP script, I receive all AGI-environment > variables > > (agi_request, agi_callerid etc.) correctly, but I'm missing > the actual > > passed value (which should be in agi_arg_1 etc.). the last > thing I get from > > stdin is the environment-variable agi_accountcode, after > this it seems to > > stop. > > You don't append the argument to STDIN (which is fine). > In the PHP script check the $argv array. The first argument > (after the name of the script itself) should be in $argv[1] . > > Regards, > Philipp Kempgen > > -- > amooma GmbH - Bachstr. 126 - 56566 Neuwied - > http://www.amooma.de > Let's use IT to solve problems and not to create new ones. > Asterisk? -> http://www.das-asterisk-buch.de > My pick of the month: rfc 2822 3.6.5 > > Geschäftsführer: Stefan Wintermeyer > Handelsregister: Neuwied B 14998 > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. > http://www.astricon.net/ > > --Bandwidth and Colocation Provided by > http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > -- > Mag. Michael Kamleitner > --------------------------------------------------------------------- > [EMAIL PROTECTED] > https://www.xing.com/profile/Michael_Kamleitner > --------------------------------------------------------------------- > +43 699 116 07 923 > --------------------------------------------------------------------- > http://www.kamleitner.com > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
