<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">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 class="Wj3C7c"><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 class="Ih2E3d">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">http://www.linkedin.com/in/adeelansari</a><br>
</div>