<div dir="ltr">May be you are confusing between bridge and park.<br><br>Below are valid syntax,<br><br><font face="Arial" size="2"><font face="Courier">originate
sofia/internal/1001 &park<br></font></font><font face="Arial" size="2"><font face="Courier">originate
sofia/internal/1001 &bridge(sofia/internal/1002</font></font>)<br><br>Cheers.<br><br><div class="gmail_quote">On Tue, Sep 2, 2008 at 6:15 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">okay,</font></div>
<div><font face="Arial" size="2">Thanks Brian.</font></div>
<div><font face="Arial" size="2">I realize the output is same as that of "help" on
CLI</font></div>
<div><font face="Arial" size="2">and how do I find out what <font face="Courier">applications</font> are supported by the originate API</font></div>
<div><font face="Arial" size="2">e.g: <font face="Courier">originate
sofia/internal/1001 sofia/internal/1002 &park</font></font></div>
<div><font face="Arial" size="2">which other than "park" are supported</font></div><div class="Ih2E3d">
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Regards,<br>Gayatri Kulkarni</font></div>
<div> </div>
<div><font face="Arial" size="2">-----<br>Whenever you find yourself on the side of
the majority, it is time to pause and reflect.<br></font></div>
</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="brian@freeswitch.org" href="mailto:brian@freeswitch.org" target="_blank">Brian West</a> </div>
<div><b>Sent:</b> Tuesday, September 02, 2008 2:53 AM</div><div class="Ih2E3d">
<div><b>To:</b> <a title="mailto:freeswitch-users@lists.freeswitch.org
CTRL + Click to follow link" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>
</div>
</div><div><b>Subject:</b> Re: [Freeswitch-users] API info</div></div></div><div><div></div><div class="Wj3C7c">
<div><br></div>do a "show api" at the cli.
<div><br></div>
<div>/b</div>
<div><br>
<div>
<div>On Sep 2, 2008, at 4:45 AM, Gayatri Kulkarni wrote:</div><br>
<blockquote type="cite">
<div style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" name="Compose message area" bgcolor="#ffffff">
<div><font face="Arial" size="2">Hi all,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Is there a way to find out what all API are
accepted through the XML-RPC module and the list of parameters that each API
would require?</font></div>
<div><font face="Arial" size="2">Is there a way to find out the syntax expected by
the XML-RPC module for invoking the API</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I tried a code in Java to find out as
follows:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><code></font></div>
<div><font size="2"></font>
<p align="left"><font size="2">getSipServices(XmlRpcClientConfigImpl conf,
PrintStream services_file) </font><font size="2">{</font></p><font size="2"></font>
<p align="left"><b><font size="2" color="#7f0055">try</font></b><font size="2" color="#7f0055"></font><font size="2"> {</font></p><font size="2"></font>
<p align="left"><font size="2" color="#3f7f5f">//create client:</font></p>
<p align="left"><font size="2"> XmlRpcClient registryClient
= </font><b><font size="2" color="#7f0055">new</font></b><font size="2" color="#7f0055"></font><font size="2"> XmlRpcClient(conf.getServerURL());</font></p><font size="2"></font>
<p align="left"><font size="2">String url_str =
conf.getServerURL().toString();</font></p><font size="2"></font>
<p align="left"><font size="2" color="#3f7f5f">//create collection</font></p><font size="2" color="#3f7f5f"></font><font size="2"></font>
<p align="left"><font size="2">RemoteCollection Switch = </font><b><font size="2" color="#7f0055">new</font></b><font size="2" color="#7f0055"></font><font size="2"> RemoteCollection(registryClient,
<i>getUri</i>(url_str));</font></p><font size="2"></font>
<p align="left"><font size="2" color="#3f7f5f">//actually obtain
services:</font></p><font size="2" color="#3f7f5f"></font><font size="2"></font>
<p align="left"><font size="2">.</font><i><font size="2" color="#0000c0">services</font></i><font size="2" color="#0000c0"></font><font size="2"> =
Switch.getServices();</font></p><font size="2"></font>
<p align="left"><font size="2">.</font><i><font size="2" color="#0000c0">props</font></i><font size="2" color="#0000c0"></font><font size="2"> =
Switch.getProperties();</font></p><font size="2"></font>
<p align="left"><font size="2">.</font><i><font size="2" color="#0000c0">props</font></i><font size="2" color="#0000c0"></font><font size="2">.list(services_file);</font></p><font size="2"></font>
<p align="left"><font size="2"><u>Enumeration</u> prop_enum = </font><i><font size="2" color="#0000c0">props</font></i><font size="2" color="#0000c0"></font><font size="2">.elements();</font></p><font size="2"></font>
<p align="left"><font size="2">System.</font><i><font size="2" color="#0000c0">out</font></i><font size="2" color="#0000c0"></font><font size="2">.println(</font><font size="2" color="#2a00ff">"--------------Properties----------------"</font><font size="2">);</font></p>
<font size="2"></font>
<p align="left"><b><font size="2" color="#7f0055">while</font></b><font size="2" color="#7f0055"></font><font size="2">
(prop_enum.hasMoreElements()){</font></p><font size="2"></font>
<p align="left"><font size="2">System.</font><i><font size="2" color="#0000c0">out</font></i><font size="2" color="#0000c0"></font><font size="2">.println(prop_enum.nextElement());</font></p><font size="2">
<p align="left">}</p></font>
<p align="left"><font size="2">System.</font><i><font size="2" color="#0000c0">out</font></i><font size="2" color="#0000c0"></font><font size="2">.println(</font><font size="2" color="#2a00ff">"----------------------------------------"</font><font size="2">);</font></p>
<font size="2">
<div><br></div>
<p align="left">String[] resources = Switch.listResources();</p></font>
<p align="left"><b><font size="2" color="#7f0055">int</font></b><font size="2" color="#7f0055"></font><font size="2"> i = 0;</font></p><font size="2"></font>
<p align="left"><font size="2">System.</font><i><font size="2" color="#0000c0">out</font></i><font size="2" color="#0000c0"></font><font size="2">.println(</font><font size="2" color="#2a00ff">"--------------Resources----------------"</font><font size="2">);</font></p>
<font size="2"></font>
<p align="left"><b><font size="2" color="#7f0055">while</font></b><font size="2" color="#7f0055"></font><font size="2">(i < resources.</font><font size="2" color="#0000c0">length</font><font size="2">){</font></p><font size="2"></font>
<p align="left"><font size="2">System.</font><i><font size="2" color="#0000c0">out</font></i><font size="2" color="#0000c0"></font><font size="2">.println(resources[i]);</font></p><font size="2">
<p align="left">}</p></font>
<p align="left"><font size="2">System.</font><i><font size="2" color="#0000c0">out</font></i><font size="2" color="#0000c0"></font><font size="2">.println(</font><font size="2" color="#2a00ff">"----------------------------------------"</font><font size="2">);</font></p>
<font size="2">
<div><br></div></font><font size="2">
<p align="left">}</p>
<p align="left">catch (Exception e) { ....}</p></font><font size="2"></font>
<p align="left"><b><font size="2" color="#7f0055">return</font></b><font size="2" color="#7f0055"></font><font size="2"> (</font><i><font size="2" color="#0000c0">services</font></i><font size="2" color="#0000c0"></font><font size="2">);</font></p>
<font size="2">
<p align="left">}</p>
<p align="left"></code></p>
<p align="left"><font face="Arial">Unfortunately, the it does not return any
properties! for resources, it returns an exception: </font><font size="2" color="#ff0000"></font></p><font size="2" color="#ff0000">
<p>java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest </p>
<p><font face="Arial" color="#000000">and services returned are:</font></p>
<div><font face="Arial" color="#000000"> </font><font size="2"></font><br></div><font size="2">
<p align="left"><font face="Arial" color="#000000">-----List of available
services--------</font></p>
<p align="left"><font face="Arial" color="#000000">XPathQueryService</font></p>
<p align="left"><font face="Arial" color="#000000">CollectionManagementService</font></p>
<p align="left"><font face="Arial" color="#000000">UserManagementService</font></p>
<p align="left"><font face="Arial" color="#000000">DatabaseInstanceManager</font></p>
<p align="left"><font face="Arial" color="#000000">IndexQueryService</font></p>
<p align="left"><font face="Arial" color="#000000">XUpdateQueryService</font></p>
<p align="left"><font face="Arial" color="#000000">ValidationService</font></p>
<p><font face="Arial" color="#000000">----------------------------------------</font></p>
<p><font face="Arial" color="#000000">with these services, how do I originate a
call from within my application</font></p>
<div><br> </div></font></font></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Regards,<br>Gayatri Kulkarni</font></div>
<div> </div>
<div><font face="Arial" size="2">-----<br>Whenever you find yourself on the side
of the majority, it is time to pause and
reflect.<br></font></div></div>_______________________________________________<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><span style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;">
<div style=""><span style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;">
<div style=""><span style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;">
<div style="">
<div>Brian West</div>
<div><a>sip:brian@freeswitch.org</a></div>
<div><br></div>
<div><br></div></div></span><br></div></span><br></div></span><br></div><br></div>
</div></div><p>
</p><hr><div class="Ih2E3d">
<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>
<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>