[Freeswitch-users] Can I stream a file to a parked call.

Phillip Jones pjintheusa at gmail.com
Thu Aug 27 13:09:10 PDT 2009

Hi there,

I know there are other ways of doing this. I am just trying get to
know have fun with the FreeSWITCH API.

I am using originate and park a call:

&park", blegSession.Uuid, OutgoingCallerID, NumberToDial));

That works great, the phone rings. I want to play something to this
called party when they pick up.

 while (!blegSession.answered())
        blegSession.sleep(500, 1);

string promptFile = "prompts/whisper.wav";
blegSession.StreamFile(promptFile, 0);

This works - but the audio is choppy and slow.

Is there something I need to do to that parked call before streaming that file?

Thanks for any input.


More information about the FreeSWITCH-users mailing list