[Asterisk-Users] Accessing PARKEDAT variable in AGI

jnuoiqweahf kajhdsff jnuoiqweahf at yahoo.com
Wed Apr 26 21:25:45 MST 2006


I'm attempting to do this in an AGI program:

char line[80];
...
printf("EXEC PARKANDANNOUNCE
pbx-transfer:PARKED|300|Console/dsp\n");
printf("GET VARIABLE ${PARKEDAT}\n");
fgets(line,80,stdin);

The script hangs because asterisk doesn't provide any
response to stdin.

Elsewhere in my program, I have e.g.

printf("EXEC READ foo|enter-password|4\n");
fgets(line,80,stdin); /* Read and discard EXEC result
code. */
printf("GET VARIABLE foo\n");
fgets(line,80,stdin);

which works fine, with the result that line gets
loaded with the value of foo which EXEC READ created.
However, after EXEC PARKANDANNOUNCE, asterisk stops
sending data to stdin, so GET VARIABLE doesn't work
anymore.

After EXEC PARKANDANNOUNCE, how can my program find
out the value of PARKEDAT (the extension which the
call was parked on)?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the asterisk-users mailing list