<div dir="ltr">After looking at the code, I assume the command we have for freeswitch can be passed as a parameter. i.e. originate, conference, etc.<br>I doubt that we already have any document for it.<br><br>Cheers.<br><br>
<div class="gmail_quote">On Fri, Aug 22, 2008 at 7:55 PM, Gayatri Kulkarni <span dir="ltr">&lt;<a href="mailto:xtpl.gayatri@gmail.com">xtpl.gayatri@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" bgcolor="#ffffff" name="Compose message area">
<div><font face="Arial" size="2">Hey guys,</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">How would you find out list of APIs that you can 
provide as param[] member to the client.execute(...) call?</font></div>
<div><font face="Arial" size="2">Really appreciate your help</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Regards,</font></div>
<div><font face="Arial" size="2">Gayatri Kulkarni</font></div>
<div style="font-family: Tahoma; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<div><br></div>
<div style="background: rgb(245, 245, 245) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<div><b>From:</b> <a title="adeel.gnome@gmail.com" href="mailto:adeel.gnome@gmail.com" target="_blank">Adeel Ansari</a> </div>
<div><b>Sent:</b> Friday, August 22, 2008 3:34 AM</div><div class="Ih2E3d">
<div><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a> 
</div>
</div><div><b>Subject:</b> Re: [Freeswitch-users] How to originate a session from 
outside</div></div></div><div><div></div><div class="Wj3C7c">
<div><br></div>
<div dir="ltr">Actually, I searched the wiki with &quot;rpc&quot;, nothing appeared, and 
then I tried &quot;xml-rpc&quot;, again didn&#39;t work. I haven&#39;t tried, &quot;xmlrpc&quot;, this is 
working. Thanks again, for your inputs.<br><br>
<div class="gmail_quote">On Fri, Aug 22, 2008 at 6:32 PM, Adeel Ansari <span dir="ltr">&lt;<a href="mailto:adeel.gnome@gmail.com" target="_blank">adeel.gnome@gmail.com</a>&gt;</span> 
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  <div dir="ltr">Glad to hear you, Gayatri.<br>Thanks, Boris. What else I need 
  now. Thanks alot buddy. Will get back to you, with a success message, 
  hopefully. 
  <div>
  <div></div>
  <div><br><br>
  <div class="gmail_quote">On Fri, Aug 22, 2008 at 6:26 PM, Boris Krivonog <span dir="ltr">&lt;<a href="mailto:boris.krivonog@gmail.com" target="_blank">boris.krivonog@gmail.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The 
    easiest way would be using XML-RPC<br>(<a href="http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC" target="_blank">http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC</a>), with 
    Apache<br>XML-RPC (<a href="http://ws.apache.org/xmlrpc/client.html" target="_blank">http://ws.apache.org/xmlrpc/client.html</a>) libraries the 
    code<br>would look something like:<br><br>XmlRpcClientConfigImpl config = 
    new XmlRpcClientConfigImpl();<br>config.setServerURL( new 
    URL(&quot;http://&lt;freeswitchip&gt;:8080/RPC2&quot;) 
    );<br>config.setBasicPassword(&quot;freeswitch&quot;);<br>config.setBasicUserName(&quot;works&quot;);<br>XmlRpcClient 
    client = new XmlRpcClient();<br>client.setConfig(config);<br>Object[] params 
    = new Object[]{ &quot;originate&quot;,<br>&quot;sofia/gateway/gizmo2/01160176xxxxxx 
    &amp;park()&quot; };<br>client.execute( &quot;freeswitch.api&quot;, params );<br><br>Since 
    the code above is written &quot;from my memory&quot;, take it for<br>illustrative 
    purpose only, however you should get the idea.<br><br>If you need more 
    control over the call(s), consider using<br><a href="http://wiki.freeswitch.org/wiki/Event_Socket" target="_blank">http://wiki.freeswitch.org/wiki/Event_Socket</a>.<br><br>Hope 
    this helps,<br>&nbsp;Boris<br><br><br>On Fri, Aug 22, 2008 at 12:24 PM, 
    Boris Krivonog<br>&lt;<a href="mailto:boris.krivonog@gmail.com" target="_blank">boris.krivonog@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; The 
    easiest way would be using XML-RPC (<a href="http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC" target="_blank">http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC</a>), with 
    Apache XML-RPC (<a href="http://ws.apache.org/xmlrpc/client.html" target="_blank">http://ws.apache.org/xmlrpc/client.html</a>) libraries the 
    code would look something like:<br>&gt;<br>&gt; XmlRpcClientConfigImpl 
    config = new XmlRpcClientConfigImpl();<br>&gt; config.setServerURL( new 
    URL(&quot;http://&lt;freeswitchip&gt;:8080/RPC2&quot;) );<br>&gt; XmlRpcClient client 
    = new XmlRpcClient();<br>&gt; client.setConfig(config);<br>&gt; Object[] 
    params = new Object[]{ &quot;originate&quot;, &quot;sofia/gateway/gizmo2/01160176xxxxxx 
    &amp;park()&quot; };<br>&gt; client.execute( &quot;freeswitch.api&quot;, params 
    );<br>&gt;<br>&gt; Since the code above is written &quot;from my memory&quot;,<br>
    <div>
    <div></div>
    <div>&gt;<br>&gt;<br>&gt;<br>&gt; Adeel Ansari wrote:<br>&gt;<br>&gt; Hi 
    All,<br>&gt;<br>&gt; I had success in bridging a session, using my Java 
    Program as a hook, and manage to connect one mobile phone to another. It 
    goes like below.<br>&gt;<br>&gt; ===<br>&gt; --&gt; originate 
    sofia/gateway/gizmo2/01160176xxxxxx 
    &amp;java(net.digitalapps.freeswitch.CallTest)<br>&gt; ===<br>&gt;<br>&gt; 
    In this case, freeswitch call my Java program. Now, My intension is to not 
    use console at all, instead use my java program to originate a session in 
    freeswitch and then bridge the session. So, call freeswitch from my program, 
    not the other way around.<br>&gt;<br>&gt; Is it possible? Need suggestions 
    in any case. I mean if I need to come up with my own client. Actually, I was 
    looking JAIN-SIP to achieve this. But then thought of asking your 
    suggestions. With JAIN I might go like this, place a call, hit the dial plan 
    invoke my Java Hook Program and bridge the call. But I am afraid that it 
    might connect my client with the mobile phone, not one phone to 
    &nbsp;another.<br>&gt;<br>&gt; Thanks.<br>&gt;<br>&gt; --<br>&gt; 
    Best,<br>&gt; Adeel Ansari<br>&gt;<br>&gt; <a href="http://www.linkedin.com/in/adeelansari" target="_blank">http://www.linkedin.com/in/adeelansari</a><br>&gt;<br></div></div>
    <div>
    <div></div>
    <div>&gt; ________________________________<br>&gt; 
    _______________________________________________<br>&gt; Freeswitch-users 
    mailing list<br>&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; 
    UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; 
    <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>&gt;<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>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br>
  <div>Best,<br>Adeel Ansari<br><br><a href="http://www.linkedin.com/in/adeelansari" target="_blank">http://www.linkedin.com/in/adeelansari</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Best,<br>Adeel Ansari<br>
<br><a href="http://www.linkedin.com/in/adeelansari" target="_blank">http://www.linkedin.com/in/adeelansari</a><br></div>
<p>
</p><hr>

<p></p>_______________________________________________<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>
</div></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>Best,<br>Adeel Ansari<br><br><a href="http://www.linkedin.com/in/adeelansari">http://www.linkedin.com/in/adeelansari</a><br>
</div>