instead of originate to park then sending the uuid to the constructor<div>try supplying the dial string to the constructor which will place the call <br><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 8:30 AM, Phillip Jones <span dir="ltr"><<a href="mailto:pjintheusa@gmail.com">pjintheusa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">In example two you are parking the call. You are then playing media into a parked call. I am not sure this is valid. According to the wiki "Please note that to retrieve a call that has been "parked", you'll have
to <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge" title="Misc. Dialplan Tools bridge" target="_blank">bridge</a> to them or transfer the
call to a valid location." - so you might need to transfer that parked call to a DialPlan App before you try and play media - or just not park it in the first place.<br><br>I might be wrong - but that where I would start.<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Wed, Jul 7, 2010 at 8:03 AM, Durmuş Ali Öztürk <span dir="ltr"><<a href="mailto:ali.stgt@gmail.com" target="_blank">ali.stgt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hello,<br>
<br>
I have successfully entegrated a dll-module (written udner .Net / c#)<br>
in fs which is loadable by the mod_managed component.<br>
<br>
Now, if I try to stream a wav file to the callee then the sound is<br>
very poor and choppy (also the file is played slower).<br>
<br>
The fs is running under Windows XP and tested under Windows 2003 with<br>
the same result.<br>
<br>
Streaming by using FreeSWITCH.Native.Api() works without problems,<br>
sound is perfect.<br>
<br>
Samples which I have tried:<br>
<br>
<br>
<br>
1 - This works fine but delegate mechanism is missing there:<br>
<br>
FreeSWITCH.Native.Api fsApi = new FreeSWITCH.Native.Api();<br>
<br>
string uuid = fsApi.ExecuteString("create_uuid");<br>
string apiResult = fsApi.Execute("originate",<br>
string.Format("{{ignore_early_media=false,absolute_codec_string='PCMU'}}[origination_uuid={0},origination_caller_id_number={1}]sofia/gateway/Test/{2}<br>
&&playback({3}", uuid, callerID, phoneNumber, wavFile));<br>
<br>
<br>
<br>
<br>
2 - ManagedSession is integrated but we have sound problems:<br>
<br>
FreeSWITCH.Native.Api fsApi = new FreeSWITCH.Native.Api();<br>
<br>
string uuid = fsApi.ExecuteString("create_uuid");<br>
<br>
string apiResult = fsApi.Execute("originate",<br>
string.Format("{{ignore_early_media=false,absolute_codec_string='PCMU'}}[origination_uuid={0},origination_caller_id_number={1}]sofia/gateway/Test/{2}<br>
&park", uuid, callerID, phoneNumber));<br>
<br>
FreeSWITCH.Native.ManagedSession blegSession = new<br>
FreeSWITCH.Native.ManagedSession(uuid);<br>
<br>
if (blegSession.IsAvailable)<br>
{<br>
while (!blegSession.answered())<br>
{<br>
blegSession.sleep(500, 1);<br>
}<br>
<br>
if (blegSession.Ready() && blegSession.mediaReady())<br>
{<br>
//blegSession.Answer();<br>
//blegSession.Execute("playback",wavFile);<br>
blegSession.StreamFile(wavFile, 0);<br>
}<br>
<br>
blegSession.Hangup("Normal call clearing");<br>
}<br>
<br>
<br>
<br>
<br>
Is there a mistake in my code or do I have forgotten something? Can<br>
you support me with some examples?<br>
<br>
<br>
Another issue is, that I am not able to make a origination directly by<br>
ManagedSession or CoreSession without using the<br>
FreeSWITCH.Native.Api(). How can I create an instance of a CoreSession<br>
object?<br>
<br>
<br>
Many thanks for you help in advance.<br>
<br>
Ali<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>