jehowe
Guru
- Joined
- Nov 14, 2007
- Messages
- 288
- Reaction score
- 4
I can't seem to get this working using PIAF with asterisk v1.8.x. I've set up a very simple test to try and pass a variable within the dialplan using a simple test.agi file, viewing the result using NoOP.....
Dialplan
test.agi
I've googled around and just can't seem to get it going. Thanks for any help or pointers!
Dialplan
Code:
exten => _X.,n,AGI(/var/lib/asterisk/agi-bin/test.agi)
exten => _X.,n,NoOp(variable value=${ScriptResult})
test.agi
Code:
#!/usr/bin/php
<?php
$vartest= 'value';
$agi = new AGI();
$agi->set_variable('ScriptResult', $vartest);
?>
I've googled around and just can't seem to get it going. Thanks for any help or pointers!