VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
xtpl.gayatri at gmail.com Guest
|
Posted: Tue Sep 02, 2008 4:52 am Post subject: [Freeswitch-users] API info |
|
|
Hi all,
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?
Is there a way to find out the syntax expected by the XML-RPC module for invoking the API
I tried a code in Java to find out as follows:
<code>
getSipServices(XmlRpcClientConfigImpl conf, PrintStream services_file) {
try {
//create client:
XmlRpcClient registryClient = new XmlRpcClient(conf.getServerURL());
String url_str = conf.getServerURL().toString();
//create collection
RemoteCollection Switch = new RemoteCollection(registryClient, getUri(url_str));
//actually obtain services:
.services = Switch.getServices();
.props = Switch.getProperties();
.props.list(services_file);
Enumeration prop_enum = props.elements();
System.out.println("--------------Properties----------------");
while (prop_enum.hasMoreElements()){
System.out.println(prop_enum.nextElement());
}
System.out.println("----------------------------------------");
String[] resources = Switch.listResources();
int i = 0;
System.out.println("--------------Resources----------------");
while(i < resources.length){
System.out.println(resources);
}
System.[i]out.println("----------------------------------------");
}
catch (Exception e) { ....}
return (services);
}
</code>
Unfortunately, the it does not return any properties! for resources, it returns an exception:
java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest
and services returned are:
-----List of available services--------
XPathQueryService
CollectionManagementService
UserManagementService
DatabaseInstanceManager
IndexQueryService
XUpdateQueryService
ValidationService
----------------------------------------
with these services, how do I originate a call from within my application
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect. |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Tue Sep 02, 2008 4:54 am Post subject: [Freeswitch-users] API info |
|
|
do a "show api" at the cli.
/b
On Sep 2, 2008, at 4:45 AM, Gayatri Kulkarni wrote:
Quote: | Hi all,
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?
Is there a way to find out the syntax expected by the XML-RPC module for invoking the API
I tried a code in Java to find out as follows:
<code>
getSipServices(XmlRpcClientConfigImpl conf, PrintStream services_file) {
try {
//create client:
XmlRpcClient registryClient = new XmlRpcClient(conf.getServerURL());
String url_str = conf.getServerURL().toString();
//create collection
RemoteCollection Switch = new RemoteCollection(registryClient, getUri(url_str));
//actually obtain services:
.services = Switch.getServices();
.props = Switch.getProperties();
.props.list(services_file);
Enumeration prop_enum = props.elements();
System.out.println("--------------Properties----------------");
while (prop_enum.hasMoreElements()){
System.out.println(prop_enum.nextElement());
}
System.out.println("----------------------------------------");
String[] resources = Switch.listResources();
int i = 0;
System.out.println("--------------Resources----------------");
while(i < resources.length){
System.out.println(resources);
}
System.[i]out.println("----------------------------------------");
}
catch (Exception e) { ....}
return (services);
}
</code>
Unfortunately, the it does not return any properties! for resources, it returns an exception:
java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest
and services returned are:
-----List of available services--------
XPathQueryService
CollectionManagementService
UserManagementService
DatabaseInstanceManager
IndexQueryService
XUpdateQueryService
ValidationService
----------------------------------------
with these services, how do I originate a call from within my application
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url] |
|
Back to top |
|
|
xtpl.gayatri at gmail.com Guest
|
Posted: Tue Sep 02, 2008 5:16 am Post subject: [Freeswitch-users] API info |
|
|
Also, how to originate calls between endpoints registered to 2 different FSs??
Thanks a lot in advance,
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
From: Gayatri Kulkarni (xtpl.gayatri@gmail.com)
Sent: Tuesday, September 02, 2008 2:45 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: API info
Hi all,
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?
Is there a way to find out the syntax expected by the XML-RPC module for invoking the API
I tried a code in Java to find out as follows:
<code>
getSipServices(XmlRpcClientConfigImpl conf, PrintStream services_file) {
try {
//create client:
XmlRpcClient registryClient = new XmlRpcClient(conf.getServerURL());
String url_str = conf.getServerURL().toString();
//create collection
RemoteCollection Switch = new RemoteCollection(registryClient, getUri(url_str));
//actually obtain services:
.services = Switch.getServices();
.props = Switch.getProperties();
.props.list(services_file);
Enumeration prop_enum = props.elements();
System.out.println("--------------Properties----------------");
while (prop_enum.hasMoreElements()){
System.out.println(prop_enum.nextElement());
}
System.out.println("----------------------------------------");
String[] resources = Switch.listResources();
int i = 0;
System.out.println("--------------Resources----------------");
while(i < resources.length){
System.out.println(resources);
}
System.[i]out.println("----------------------------------------");
}
catch (Exception e) { ....}
return (services);
}
</code>
Unfortunately, the it does not return any properties! for resources, it returns an exception:
java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest
and services returned are:
-----List of available services--------
XPathQueryService
CollectionManagementService
UserManagementService
DatabaseInstanceManager
IndexQueryService
XUpdateQueryService
ValidationService
----------------------------------------
with these services, how do I originate a call from within my application
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect. |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Tue Sep 02, 2008 5:20 am Post subject: [Freeswitch-users] API info |
|
|
You'll have to have a sip path from one to the other.
originate sofia/profile/1002@other-fs-box 1000
Then make 1002@other-fs-box lead to 1002 thats registered there.
/b
On Sep 2, 2008, at 5:09 AM, Gayatri Kulkarni wrote:
Quote: | Also, how to originate calls between endpoints registered to 2 different FSs??
Thanks a lot in advance,
Regards,
Gayatri Kulkarni
|
Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url] |
|
Back to top |
|
|
xtpl.gayatri at gmail.com Guest
|
Posted: Tue Sep 02, 2008 5:22 am Post subject: [Freeswitch-users] API info |
|
|
okay,
Thanks Brian.
I realize the output is same as that of "help" on CLI
and how do I find out what applications are supported by the originate API
e.g: originate sofia/internal/1001 sofia/internal/1002 &park
which other than "park" are supported
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
From: Brian West (brian@freeswitch.org)
Sent: Tuesday, September 02, 2008 2:53 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] API info
do a "show api" at the cli.
/b
On Sep 2, 2008, at 4:45 AM, Gayatri Kulkarni wrote:
Quote: | Hi all,
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?
Is there a way to find out the syntax expected by the XML-RPC module for invoking the API
I tried a code in Java to find out as follows:
<code>
getSipServices(XmlRpcClientConfigImpl conf, PrintStream services_file) {
try {
//create client:
XmlRpcClient registryClient = new XmlRpcClient(conf.getServerURL());
String url_str = conf.getServerURL().toString();
//create collection
RemoteCollection Switch = new RemoteCollection(registryClient, getUri(url_str));
//actually obtain services:
.services = Switch.getServices();
.props = Switch.getProperties();
.props.list(services_file);
Enumeration prop_enum = props.elements();
System.out.println("--------------Properties----------------");
while (prop_enum.hasMoreElements()){
System.out.println(prop_enum.nextElement());
}
System.out.println("----------------------------------------");
String[] resources = Switch.listResources();
int i = 0;
System.out.println("--------------Resources----------------");
while(i < resources.length){
System.out.println(resources);
}
System.[i]out.println("----------------------------------------");
}
catch (Exception e) { ....}
return (services);
}
</code>
Unfortunately, the it does not return any properties! for resources, it returns an exception:
java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest
and services returned are:
-----List of available services--------
XPathQueryService
CollectionManagementService
UserManagementService
DatabaseInstanceManager
IndexQueryService
XUpdateQueryService
ValidationService
----------------------------------------
with these services, how do I originate a call from within my application
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url]
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Tue Sep 02, 2008 5:27 am Post subject: [Freeswitch-users] API info |
|
|
They are all supported... and that originate syntax you have there isn't correct. "show application" at the cli.
/b
On Sep 2, 2008, at 5:15 AM, Gayatri Kulkarni wrote:
Quote: | okay,
Thanks Brian.
I realize the output is same as that of "help" on CLI
and how do I find out what applications are supported by the originate API
e.g: originate sofia/internal/1001 sofia/internal/1002 &park
which other than "park" are supported
|
Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url] |
|
Back to top |
|
|
adeel.gnome at gmail.com Guest
|
Posted: Tue Sep 02, 2008 9:25 pm Post subject: [Freeswitch-users] API info |
|
|
May be you are confusing between bridge and park.
Below are valid syntax,
originate sofia/internal/1001 &park
originate sofia/internal/1001 &bridge(sofia/internal/1002)
Cheers.
On Tue, Sep 2, 2008 at 6:15 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com (xtpl.gayatri@gmail.com)> wrote:
Quote: | okay,
Thanks Brian.
I realize the output is same as that of "help" on CLI
and how do I find out what applications are supported by the originate API
e.g: originate sofia/internal/1001 sofia/internal/1002 &park
which other than "park" are supported
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
From: Brian West (brian@freeswitch.org)
Sent: Tuesday, September 02, 2008 2:53 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] API info
do a "show api" at the cli.
/b
On Sep 2, 2008, at 4:45 AM, Gayatri Kulkarni wrote:
Quote: | Hi all,
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?
Is there a way to find out the syntax expected by the XML-RPC module for invoking the API
I tried a code in Java to find out as follows:
<code>
getSipServices(XmlRpcClientConfigImpl conf, PrintStream services_file) {
try {
//create client:
XmlRpcClient registryClient = new XmlRpcClient(conf.getServerURL());
String url_str = conf.getServerURL().toString();
//create collection
RemoteCollection Switch = new RemoteCollection(registryClient, getUri(url_str));
//actually obtain services:
.services = Switch.getServices();
.props = Switch.getProperties();
.props.list(services_file);
Enumeration prop_enum = props.elements();
System.out.println("--------------Properties----------------");
while (prop_enum.hasMoreElements()){
System.out.println(prop_enum.nextElement());
}
System.out.println("----------------------------------------");
String[] resources = Switch.listResources();
int i = 0;
System.out.println("--------------Resources----------------");
while(i < resources.length){
System.out.println(resources);
}
System.[i]out.println("----------------------------------------");
}
catch (Exception e) { ....}
return (services);
}
</code>
Unfortunately, the it does not return any properties! for resources, it returns an exception:
java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest
and services returned are:
-----List of available services--------
XPathQueryService
CollectionManagementService
UserManagementService
DatabaseInstanceManager
IndexQueryService
XUpdateQueryService
ValidationService
----------------------------------------
with these services, how do I originate a call from within my application
Regards,
Gayatri Kulkarni
-----
Whenever you find yourself on the side of the majority, it is time to pause and reflect.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
Brian West
sip:brian@freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
--
Best,
Adeel Ansari
http://www.linkedin.com/in/adeelansari |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|