jnuoiqweahf kajhdsff
2006-Apr-26 21:25 UTC
[Asterisk-Users] Accessing PARKEDAT variable in AGI
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
Andrew Kohlsmith
2006-Apr-27 04:33 UTC
[Asterisk-Users] Accessing PARKEDAT variable in AGI
On Thursday 27 April 2006 00:25, jnuoiqweahf kajhdsff wrote:> I'm attempting to do this in an AGI program:I have had *great* difficulty accessing channel variables in *ANY* AGI language for some time now. I have not filed a bug though, so I am partly to blame for its not being fixed. -A.