<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"><<a href="mailto:xtpl.gayatri@gmail.com">xtpl.gayatri@gmail.com</a>></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> </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> </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 "rpc", nothing appeared, and
then I tried "xml-rpc", again didn't work. I haven't tried, "xmlrpc", 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"><<a href="mailto:adeel.gnome@gmail.com" target="_blank">adeel.gnome@gmail.com</a>></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"><<a href="mailto:boris.krivonog@gmail.com" target="_blank">boris.krivonog@gmail.com</a>></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("http://<freeswitchip>:8080/RPC2")
);<br>config.setBasicPassword("freeswitch");<br>config.setBasicUserName("works");<br>XmlRpcClient
client = new XmlRpcClient();<br>client.setConfig(config);<br>Object[] params
= new Object[]{ "originate",<br>"sofia/gateway/gizmo2/01160176xxxxxx
&park()" };<br>client.execute( "freeswitch.api", params );<br><br>Since
the code above is written "from my memory", 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> Boris<br><br><br>On Fri, Aug 22, 2008 at 12:24 PM,
Boris Krivonog<br><<a href="mailto:boris.krivonog@gmail.com" target="_blank">boris.krivonog@gmail.com</a>> wrote:<br>><br>> 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>><br>> XmlRpcClientConfigImpl
config = new XmlRpcClientConfigImpl();<br>> config.setServerURL( new
URL("http://<freeswitchip>:8080/RPC2") );<br>> XmlRpcClient client
= new XmlRpcClient();<br>> client.setConfig(config);<br>> Object[]
params = new Object[]{ "originate", "sofia/gateway/gizmo2/01160176xxxxxx
&park()" };<br>> client.execute( "freeswitch.api", params
);<br>><br>> Since the code above is written "from my memory",<br>
<div>
<div></div>
<div>><br>><br>><br>> Adeel Ansari wrote:<br>><br>> Hi
All,<br>><br>> 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>><br>> ===<br>> --> originate
sofia/gateway/gizmo2/01160176xxxxxx
&java(net.digitalapps.freeswitch.CallTest)<br>> ===<br>><br>>
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>><br>> 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
another.<br>><br>> Thanks.<br>><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>><br></div></div>
<div>
<div></div>
<div>> ________________________________<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>><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>