Skip to main content
March 11, 2011
Question

Automatic disconnect?

  • March 11, 2011
  • 1 reply
  • 695 views

If I mute my microphone, I get a "leg.state.hangup" event after 90  seconds (also with the FlashPhone sample application). Is there a  possibility to avoid this behavior (or to increase the value of 90  seconds)?

Thanks!

This topic has been closed for replies.

1 reply

March 11, 2011

Flash Player stops sending data when microphone is muted; consequently, current build of FMG doesn't send any packet to SIP server downstream. Some SIP servers don't like a dry stream and consider it as a connect break when no data comes from FMG for a set timeout. This timeout may vary for different SIP server depending upon their configurable/default settings from few seconds to Never.

- For now, if possible, one option is to change the timeout in the SIP server to which FMG is connected.

- If not, a workable option is to feed callLeg with another flv encoded with nellymoser 8K audio in parallel to flash player stream using API CallLegService.pushNewStream . The FLV should have low/comfortable level of noise and be sufficiently long in duration.

-Pankaj

March 15, 2011

Hi Pankaj,

thanks for your reply. How can I feed the callLeg with a flv from the harddisk? I've put one into streams\_definst_ and tried to play it with pushStreamToLeg(legId, "flv:filename"), but that doesn't work. Could you give an example how to do it right? Would it also be possible to use an mp3 file instead of an flv?

Thanks

March 15, 2011

Following is how pushnewStream API can be used for feeding foo.flv in parallel to input from flashPlayer microphone.

application.legService.pushNewStream(legId, "foo");    // new statement to feed FMG with stream "foo" for leg=legId

application.legService.pushNewStream(legId, <fromFlashPlayer>); // existing API call to feed from flash player

I think what you are trying is almost correct; FMG does subscribe a  recorded file when the file name is mentioned in pushNewStream API. The recorded file on FMS should be encoded in a supported codec i.e. Nellymoser 8KHz, 22KHz or  Speex only. Mp3 files are not supported. If required, do check FMG\log\core00.log files for error messages to confirm if FMG is complaining about unsupported codec.

Another thread is somewhat relevant to understand pushNewStream API: http://forums.adobe.com/thread/746378?tstart=0

-Pankaj