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:
fsApi.Execute("originate",
string.Format("[origination_uuid={0},origination_caller_id_number={1}]sofia/gateway/broadvox/{2}
&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())
{
Log.WriteLine(LogLevel.Alert,
"Inside::CallReturns:!Session.answered::Loop");
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.
Phil
_______________________________________________
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org