That decently woks to originate the call but passing that UUID into a new ManagedSession does not seem to like to the session created using that UUID.  Once i create a session used the API you suggested how would i then access the session in the Managed Code?<br>

<br><div>Chris</div><div><br><div class="gmail_quote">On Tue, Mar 9, 2010 at 7:04 AM, Phillip Jones <span dir="ltr">&lt;<a href="mailto:pjintheusa@gmail.com">pjintheusa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

You could use the api:<br><br> FreeSWITCH.Native.Api fsApi = new FreeSWITCH.Native.Api();<br>string apiResult = string.Empty;<br>string Uuid;<br>string NumberToDial = &quot;3475558308&quot;;<br>string OutgoingCallerID = &quot;2155556666&quot;;<br>


<br>Uuid = fsApi.ExecuteString(&quot;create_uuid&quot;);<br><br>apiResult = fsApi.Execute(&quot;originate&quot;, string.Format(&quot;{{ignore_early_media=false,absolute_codec_string=&#39;PCMU&#39;}}[origination_uuid={0},origination_caller_id_number={1}]sofia/gateway/broadvox/{2}&quot;, Uuid, OutgoingCallerID, NumberToDial));<br>


<br><br><br><br><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Mar 7, 2010 at 12:02 AM, Chris <span dir="ltr">&lt;<a href="mailto:freeswitch@gilligan.id.au" target="_blank">freeswitch@gilligan.id.au</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div class="h5">
<span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Hi,<br>I am trying to create a mod_managed API application that takes 2 phone numbers as params.  These numbers should then be used to make 2 calls and to bridge them. The issue i am having is working out how to place the first call leg from in mod_managed.  All the methods i have found are for the second leg and require you to pass in the first call leg.<br>




<br>I know there are easier way to do this out of the managed code but i want it in the managed code as this is just a proof of concept to prove we can do a callback like system via managed code to be hooked into other external systems.<br>




In wiki <a href="http://wiki.freeswitch.org/wiki/Session" style="color:rgb(17, 65, 112)" target="_blank">http://wiki.freeswitch.org/wiki/Session</a> there is this example<br><br>s = new Session(&quot;{ignore_early_media=true}sofia/default/<a href="mailto:foo@bar.com" style="color:rgb(17, 65, 112)" target="_blank">foo@bar.com</a>&quot;);<br>




while (s.ready()) {<br>// The call has been answered<br>}<div><br></div><div>This seems to be exactly what i am looking for but seems to be missing from mod_managed. I am hoping someone can tell me how to do something similar in mod_managed since even if it is not part of the managed code mod_managed is meant to have the native access as well so i would assume it would be possible.</div>




<div><br></div><div>Thanks in advance</div><div><br></div><font color="#888888"><font color="#888888"><div>Chris</div></font></font></span>
<br></div></div><div class="im">_______________________________________________<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>
<br></div></blockquote></div><br>
<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></div>