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

Anthony Minessale anthony.minessale at gmail.com
Thu Aug 27 13:30:03 PDT 2009


try wedging {ignore_early_media=true} before the first [ in your dial string
and eliminate the code waiting for answer.


On Thu, Aug 27, 2009 at 3:09 PM, Phillip Jones <pjintheusa at gmail.com> wrote:

> 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
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090827/dbee51db/attachment-0002.html 


More information about the FreeSWITCH-users mailing list