Skip to main content
Participant
December 8, 2010
Question

Answering calls on the server side.

  • December 8, 2010
  • 1 reply
  • 597 views

Hello,

I'm experimenting with directly handling incoming calls in the application's SSAS script. So far, an incoming call is successfully answered but I cannot seem to properly create and write a stream for it. The created .flv file is lesser than 1KB and unplayable. This makes me think that the file only contains header information and no actual data.

See my altered versions of the FlashPhone's main.asc sendOnLeg and sendLegStatusUpdate functions:

Implementation around the Stream object in the sendOnLeg function is meant to replace the client side NetStream implementation to subscribe to the remote stream.

Any clues as to why this server side handling of the incoming call isn't properly creating a stream?

Thanks,

- Georges

This topic has been closed for replies.

1 reply

December 9, 2010

Try after exchanging the inputs to Stream.get() & stream.play().

i.e. Stream.get("callStream"); // the name with which you want to record the file.

&   Stream.play(obj.incomingStream); // The existing stream on FMS the content of which is to be recorded/renamed

-Pankaj

Participant
December 9, 2010

That worked, thank you!