[Asterisk-Users] First AGI help..
WipeOut
wipe_out at onetel.com
Wed Nov 5 05:42:16 MST 2003
Paul Liew wrote:
>Hi
>
>
>><?php
>>// From Kapjod's sample..
>>ob_implicit_flush(true);
>>set_time_limit(0);
>>$err = fopen("php://stderr","w");
>>$in = fopen("php://stdin","r");
>>$out = fopen("php://stdout","w");
>>
>>//This works..
>>fputs($out, "Verbose \"Calling phone"\n");
>>// This doesn't
>>fputs($out, "exec(Dial(sip/2012)\n");
>>
>>fclose($in);
>>fclose($out);
>>fclose($err);
>>?>
>>
>>
>
>You'll find its to do with your syntax - "show agi exec" produces
> Usage: EXEC <application> <options>
> Executes <application> with given <options>.
> Returns whatever the application returns, or -2 on failure to find
>application
>
>ie use spaces not "(".
>
>Paul
>
>_______________________________________________
>
>
Thanks Paul..
I was trying to glue bits from other scripts together and I guess I
misinterpreted the syntax from the other scripts..
So thats working now I can try more interesting things and hopefully get
somewhere in learning AGI..
Thanks again..
Later..
More information about the asterisk-users
mailing list