FastAGI incomplete command

Asterisk receives incomplete records from my FastAGI script:

[quote]AGI Rx << GET DATA silence/1 5000 1
– Playing ‘silence/1’ (language ‘en’)
AGI Tx >> 200 result= (timeout)
AGI Rx << ST1CLI>
AGI Tx >> 510 Invalid or unknown command
AGI Rx << REAM FILE ctt/ctt8 "1234567890
#"
AGI Tx >> 510 Invalid or unknown command
AGI Rx << GET DATA silence/1 5000 1
– Playing ‘silence/1’ (language ‘en’)
– AGI Script agi://192.168.0.48/CTT-PRI-Agent.ini@Ag … LANGUAGE=e completed, returning 0
TRN-ASTX-GTW1*CLI>[/quote]

Here’s the scenario:

-Existing call is transferred to an agent using the Dial command
-The call sits in an ACD queue (not and Asterisk Q), while the calling party sits on hold with music

  • After a timeout of 3 minutes, I tell the called script to stream a file then exit. That’s where you see the partially received record above. It receives the first 2 letters of the STREAM command, then the rest. Notice the out of sync CLI> prompt as well. Regardless of what command I put in there, it’s Always the first 2 letters then the rest that is received from Asterisk. What’s funny is that if the timeout period is set to 2 minutes, everything is fine.

I have tried this from version 1.2.9.1 to 1.2.15 all with the same result. It could be my script but who knows, since it works sporadically.

Any ideas?

Nic.