简体   繁体   中英

how to pass values from extensions to AGI script and use that values in script

extension to call php_agi

exten => 8380,n,AGI(php_falup.agi,${MSISDN},${var})

php_agiscript to grep values

<?
//require 'phpagi.php';
require('include/phpagi-2.20/phpagi.php');
$agi = new AGI();
$Variable =$agi->request[agi_arg_1,agi_arg_2];

I am trying this isthis currect.

You can access passed vars by

$var1=$argv[1];
$var2=$argv[2];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM