Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How to originate a session from outside

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
xtpl.gayatri at gmail.com
Guest





PostPosted: Fri Aug 22, 2008 5:24 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

Hey,
I am trying to do the same thing using Jini system. But the thing is, Freeswitch should publish it's services firstto the Jini registry. I don’t think it does that so far

There is an XML repository though! but how to access it using any outside program?!! Check out the xml-rpc, sockets, event-handlers etc. and let me know if us know too if you find anything.

Regards,
Gayatri Kulkarni


From: Adeel Ansari (adeel.gnome@gmail.com)
Sent: Friday, August 22, 2008 3:02 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: [Freeswitch-users] How to originate a session from outside




Hi All,

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.

===
--> originate sofia/gateway/gizmo2/01160176xxxxxx &java(net.digitalapps.freeswitch.CallTest)
===

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.

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.

Thanks.
--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari



_______________________________________________
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
boris.krivonog at gmai...
Guest





PostPosted: Fri Aug 22, 2008 5:27 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

The easiest way would be using XML-RPC
(http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache
XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code
would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
config.setBasicPassword("freeswitch");
config.setBasicUserName("works");
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate",
"sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory", take it for
illustrative purpose only, however you should get the idea.

If you need more control over the call(s), consider using
http://wiki.freeswitch.org/wiki/Event_Socket.

Hope this helps,
Boris


On Fri, Aug 22, 2008 at 12:24 PM, Boris Krivonog
<boris.krivonog@gmail.com> wrote:
Quote:

The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate", "sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory",



Adeel Ansari wrote:

Hi All,

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.

===
--> originate sofia/gateway/gizmo2/01160176xxxxxx &java(net.digitalapps.freeswitch.CallTest)
===

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.

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.

Thanks.

--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari

________________________________
_______________________________________________
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


_______________________________________________
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
adeel.gnome at gmail.com
Guest





PostPosted: Fri Aug 22, 2008 5:33 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

Glad to hear you, Gayatri.
Thanks, Boris. What else I need now. Thanks alot buddy. Will get back to you, with a success message, hopefully.

On Fri, Aug 22, 2008 at 6:26 PM, Boris Krivonog <boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:
The easiest way would be using XML-RPC
(http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache
XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code
would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
config.setBasicPassword("freeswitch");
config.setBasicUserName("works");
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate",
"sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory", take it for
illustrative purpose only, however you should get the idea.

If you need more control over the call(s), consider using
http://wiki.freeswitch.org/wiki/Event_Socket.

Hope this helps,
Boris


On Fri, Aug 22, 2008 at 12:24 PM, Boris Krivonog
<boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:

The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate", "sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory",

Quote:



Adeel Ansari wrote:

Hi All,

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.

===
--> originate sofia/gateway/gizmo2/01160176xxxxxx &java(net.digitalapps.freeswitch.CallTest)
===

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.

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.

Thanks.

--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari




Quote:
________________________________
_______________________________________________
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
adeel.gnome at gmail.com
Guest





PostPosted: Fri Aug 22, 2008 5:35 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

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.

On Fri, Aug 22, 2008 at 6:32 PM, Adeel Ansari <adeel.gnome@gmail.com (adeel.gnome@gmail.com)> wrote:
Quote:
Glad to hear you, Gayatri.
Thanks, Boris. What else I need now. Thanks alot buddy. Will get back to you, with a success message, hopefully.


On Fri, Aug 22, 2008 at 6:26 PM, Boris Krivonog <boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:
The easiest way would be using XML-RPC
(http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache
XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code
would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
config.setBasicPassword("freeswitch");
config.setBasicUserName("works");
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate",
"sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory", take it for
illustrative purpose only, however you should get the idea.

If you need more control over the call(s), consider using
http://wiki.freeswitch.org/wiki/Event_Socket.

Hope this helps,
Boris


On Fri, Aug 22, 2008 at 12:24 PM, Boris Krivonog
<boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:

The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate", "sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory",

Quote:



Adeel Ansari wrote:

Hi All,

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.

===
--> originate sofia/gateway/gizmo2/01160176xxxxxx &java(net.digitalapps.freeswitch.CallTest)
===

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.

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.

Thanks.

--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari




Quote:
________________________________
_______________________________________________
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





--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Fri Aug 22, 2008 7:04 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

Hey guys,

How would you find out list of APIs that you can provide as param[] member to the client.execute(...) call?
Really appreciate your help

Regards,
Gayatri Kulkarni


From: Adeel Ansari (adeel.gnome@gmail.com)
Sent: Friday, August 22, 2008 3:34 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] How to originate a session from outside




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.

On Fri, Aug 22, 2008 at 6:32 PM, Adeel Ansari <adeel.gnome@gmail.com (adeel.gnome@gmail.com)> wrote:
Quote:
Glad to hear you, Gayatri.
Thanks, Boris. What else I need now. Thanks alot buddy. Will get back to you, with a success message, hopefully.


On Fri, Aug 22, 2008 at 6:26 PM, Boris Krivonog <boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:
The easiest way would be using XML-RPC
(http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache
XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code
would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
config.setBasicPassword("freeswitch");
config.setBasicUserName("works");
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate",
"sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory", take it for
illustrative purpose only, however you should get the idea.

If you need more control over the call(s), consider using
http://wiki.freeswitch.org/wiki/Event_Socket.

Hope this helps,
Boris


On Fri, Aug 22, 2008 at 12:24 PM, Boris Krivonog
<boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:

The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate", "sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory",

Quote:



Adeel Ansari wrote:

Hi All,

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.

===
--> originate sofia/gateway/gizmo2/01160176xxxxxx &java(net.digitalapps.freeswitch.CallTest)
===

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.

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.

Thanks.

--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari




Quote:
________________________________
_______________________________________________
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





--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari



_______________________________________________
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
adeel.gnome at gmail.com
Guest





PostPosted: Fri Aug 22, 2008 7:59 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

After looking at the code, I assume the command we have for freeswitch can be passed as a parameter. i.e. originate, conference, etc.
I doubt that we already have any document for it.

Cheers.

On Fri, Aug 22, 2008 at 7:55 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com (xtpl.gayatri@gmail.com)> wrote:
Quote:
Hey guys,

How would you find out list of APIs that you can provide as param[] member to the client.execute(...) call?
Really appreciate your help

Regards,
Gayatri Kulkarni


From: Adeel Ansari (adeel.gnome@gmail.com)
Sent: Friday, August 22, 2008 3:34 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

Subject: Re: [Freeswitch-users] How to originate a session from outside





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.

On Fri, Aug 22, 2008 at 6:32 PM, Adeel Ansari <adeel.gnome@gmail.com (adeel.gnome@gmail.com)> wrote:
Quote:
Glad to hear you, Gayatri.
Thanks, Boris. What else I need now. Thanks alot buddy. Will get back to you, with a success message, hopefully.


On Fri, Aug 22, 2008 at 6:26 PM, Boris Krivonog <boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:
The easiest way would be using XML-RPC
(http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache
XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code
would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
config.setBasicPassword("freeswitch");
config.setBasicUserName("works");
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate",
"sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory", take it for
illustrative purpose only, however you should get the idea.

If you need more control over the call(s), consider using
http://wiki.freeswitch.org/wiki/Event_Socket.

Hope this helps,
Boris


On Fri, Aug 22, 2008 at 12:24 PM, Boris Krivonog
<boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:

The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate", "sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory",

Quote:



Adeel Ansari wrote:

Hi All,

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.

===
--> originate sofia/gateway/gizmo2/01160176xxxxxx &java(net.digitalapps.freeswitch.CallTest)
===

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.

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.

Thanks.

--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari




Quote:
________________________________
_______________________________________________
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





--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari



_______________________________________________
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
adeel.gnome at gmail.com
Guest





PostPosted: Fri Aug 22, 2008 8:00 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

Borris, you are great. Actually, this code worked like charm, with no changes.
I will edit the xmlrpc-example wiki page to include the Java example, shortly.

Thanks once again.

On Fri, Aug 22, 2008 at 6:26 PM, Boris Krivonog <boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:
The easiest way would be using XML-RPC
(http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache
XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code
would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
config.setBasicPassword("freeswitch");
config.setBasicUserName("works");
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate",
"sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory", take it for
illustrative purpose only, however you should get the idea.

If you need more control over the call(s), consider using
http://wiki.freeswitch.org/wiki/Event_Socket.

Hope this helps,
Boris


On Fri, Aug 22, 2008 at 12:24 PM, Boris Krivonog
<boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:

The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate", "sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory",

Quote:



Adeel Ansari wrote:

Hi All,

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.

===
--> originate sofia/gateway/gizmo2/01160176xxxxxx &java(net.digitalapps.freeswitch.CallTest)
===

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.

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.

Thanks.

--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari




Quote:
________________________________
_______________________________________________
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
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Aug 26, 2008 8:10 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

Hey guys,
I got an XmlRpcClientException when I executed this code!

The stacktrace goes this way:
org.apache.xmlrpc.client.XmlRpcClientException: Failed to send request to server
: Connection refused: connect

at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc
SunHttpTransport.java:79)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.getInputStream(XmlRpcS
treamTransport.java:159)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.getInputStream(XmlRpcHtt
pTransport.java:49)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre
amTransport.java:213)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke
r.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at RMIServer.makeACall(RMIServer.java:36)
at RMIServer.main(RMIServer.java:49)
Caused by:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S
ource)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc
SunHttpTransport.java:75)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.getInputStream(XmlRpcS
treamTransport.java:159)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.getInputStream(XmlRpcHtt
pTransport.java:49)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre
amTransport.java:213)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke
r.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at RMIServer.makeACall(RMIServer.java:36)
at RMIServer.main(RMIServer.java:49)

Do I need to do any special configuration?

Regards,
Gayatri Kulkarni


From: Adeel Ansari (adeel.gnome@gmail.com)
Sent: Friday, August 22, 2008 5:58 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] How to originate a session from outside




Borris, you are great. Actually, this code worked like charm, with no changes.
I will edit the xmlrpc-example wiki page to include the Java example, shortly.

Thanks once again.

On Fri, Aug 22, 2008 at 6:26 PM, Boris Krivonog <boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:
The easiest way would be using XML-RPC
(http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache
XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code
would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
config.setBasicPassword("freeswitch");
config.setBasicUserName("works");
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate",
"sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory", take it for
illustrative purpose only, however you should get the idea.

If you need more control over the call(s), consider using
http://wiki.freeswitch.org/wiki/Event_Socket.

Hope this helps,
Boris


On Fri, Aug 22, 2008 at 12:24 PM, Boris Krivonog
<boris.krivonog@gmail.com (boris.krivonog@gmail.com)> wrote:
Quote:

The easiest way would be using XML-RPC (http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC), with Apache XML-RPC (http://ws.apache.org/xmlrpc/client.html) libraries the code would look something like:

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL( new URL("http://<freeswitchip>:8080/RPC2") );
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Object[] params = new Object[]{ "originate", "sofia/gateway/gizmo2/01160176xxxxxx &park()" };
client.execute( "freeswitch.api", params );

Since the code above is written "from my memory",

Quote:



Adeel Ansari wrote:

Hi All,

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.

===
--> originate sofia/gateway/gizmo2/01160176xxxxxx &java(net.digitalapps.freeswitch.CallTest)
===

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.

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.

Thanks.

--
Best,
Adeel Ansari

http://www.linkedin.com/in/adeelansari




Quote:
________________________________
_______________________________________________
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



_______________________________________________
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





PostPosted: Tue Aug 26, 2008 8:21 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

make sure mod_xml_rpc is loaded.

/b

On Aug 26, 2008, at 8:01 AM, Gayatri Kulkarni wrote:
Quote:
org.apache.xmlrpc.client.XmlRpcClientException: Failed to send request to server
: Connection refused: connect
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Aug 26, 2008 8:34 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

How to do that exactly?

Regards,
Gayatri Kulkarni


From: Brian West (brian@freeswitch.org)
Sent: Tuesday, August 26, 2008 6:14 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] How to originate a session from outside




make sure mod_xml_rpc is loaded.

/b

On Aug 26, 2008, at 8:01 AM, Gayatri Kulkarni wrote:
Quote:
org.apache.xmlrpc.client.XmlRpcClientException: Failed to send request to server
: Connection refused: connect





_______________________________________________
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
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Aug 26, 2008 9:52 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

How would you make sure mod_xml_rpc is loaded?

I could successfully run reloadxml
I got the exception again.

Regards,
Gayatri Kulkarni


From: Brian West (brian@freeswitch.org)
Sent: Tuesday, August 26, 2008 6:14 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] How to originate a session from outside




make sure mod_xml_rpc is loaded.

/b

On Aug 26, 2008, at 8:01 AM, Gayatri Kulkarni wrote:
Quote:
org.apache.xmlrpc.client.XmlRpcClientException: Failed to send request to server
: Connection refused: connect





_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Aug 26, 2008 9:53 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

conf/autoload_configs/modules.conf.xml and uncomment it. You can also load it by typing this at the cli "load mod_xml_rpc"

/b

On Aug 26, 2008, at 9:41 AM, Gayatri Kulkarni wrote:
Quote:
How would you make sure mod_xml_rpc is loaded?

I could successfully run reloadxml
I got the exception again.

Regards,
Gayatri Kulkarni



Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url]
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Aug 26, 2008 10:01 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

it loaded the module fine; but now it is saying this:

Caused by:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://192
.168.10.36:8080/RPC2
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc
SunHttpTransport.java:64)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc
SunHttpTransport.java:81)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.getInputStream(XmlRpcS
treamTransport.java:159)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.getInputStream(XmlRpcHtt
pTransport.java:49)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre
amTransport.java:213)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke
r.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at RMIServer.makeACall(RMIServer.java:36)
at RMIServer.main(RMIServer.java:49)

Regards,
Gayatri Kulkarni


From: Brian West (brian@freeswitch.org)
Sent: Tuesday, August 26, 2008 7:51 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] How to originate a session from outside




conf/autoload_configs/modules.conf.xml and uncomment it. You can also load it by typing this at the cli "load mod_xml_rpc"

/b

On Aug 26, 2008, at 9:41 AM, Gayatri Kulkarni wrote:
Quote:
How would you make sure mod_xml_rpc is loaded?

I could successfully run reloadxml
I got the exception again.

Regards,
Gayatri Kulkarni



Brian West
sip:brian@freeswitch.org (brian@freeswitch.org)








_______________________________________________
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
adeel.gnome at gmail.com
Guest





PostPosted: Tue Aug 26, 2008 10:36 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

Try to remove the credentials from the file <freeswitch-installation>/conf/autoload-configs/xmlrpc.conf.xml
and remove the username and password from your code as well. Then try it again.

Just to make sure its working. After that you can revert all back.

Otherwise, you can try the url in your internet browser. It should ask for the credential. By default username=freeswitch and password=works.

Cheers.

On Tue, Aug 26, 2008 at 10:54 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com (xtpl.gayatri@gmail.com)> wrote:
Quote:
it loaded the module fine; but now it is saying this:

Caused by:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://192
.168.10.36:8080/RPC2
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc

SunHttpTransport.java:64)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc

SunHttpTransport.java:81)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.getInputStream(XmlRpcS
treamTransport.java:159)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.getInputStream(XmlRpcHtt
pTransport.java:49)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre
amTransport.java:213)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke
r.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at RMIServer.makeACall(RMIServer.java:36)
at RMIServer.main(RMIServer.java:49)


Regards,
Gayatri Kulkarni


From: Brian West (brian@freeswitch.org)
Sent: Tuesday, August 26, 2008 7:51 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] How to originate a session from outside






conf/autoload_configs/modules.conf.xml and uncomment it. You can also load it by typing this at the cli "load mod_xml_rpc"

/b

On Aug 26, 2008, at 9:41 AM, Gayatri Kulkarni wrote:

Quote:
How would you make sure mod_xml_rpc is loaded?

I could successfully run reloadxml
I got the exception again.

Regards,
Gayatri Kulkarni




Brian West
sip:brian@freeswitch.org (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
xtpl.gayatri at gmail.com
Guest





PostPosted: Wed Aug 27, 2008 12:48 am    Post subject: [Freeswitch-users] How to originate a session from outside Reply with quote

Hey Adeel,

Thanks for the help - actually, I was swapping the username and password! shoot me!

Anyways, the code still executed partially. FreeSwitch now says this:

nsfer sofia/internal/1001 to XML[sofia/internal/1002@default]
2008-08-26 22:29:11 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing Fre
eSWITCH->sofia/internal/1002@default
2008-08-26 22:29:12 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Tra
nsfer sofia/internal/1001 to enum[sofia/internal/1002@default]
2008-08-26 22:29:13 [INFO] switch_core_state_machine.c:114 switch_core_standard_
on_routing() No Route, Aborting
2008-08-26 22:29:13 [NOTICE] switch_core_state_machine.c:115 switch_core_standar
d_on_routing() Hangup sofia/internal/1001 [CS_ROUTING] [NO_ROUTE_DESTINATION]
2008-08-26 22:29:13 [NOTICE] switch_core_session.c:807 switch_core_session_threa
d() Session 6 (sofia/internal/1001) Ended
2008-08-26 22:29:13 [NOTICE] switch_core_session.c:809 switch_core_session_threa
d() Close Channel sofia/internal/1001 [CS_HANGUP]

Any idea why this is happening? the destination extension is logged in alright and I can make a successful call to it using the xlite soft phone directly. I tried it out with other destination numbers as well. I am using a LAN IP for my domain.

Regards,
Gayatri Kulkarni


From: Adeel Ansari (adeel.gnome@gmail.com)
Sent: Tuesday, August 26, 2008 8:34 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] How to originate a session from outside




Try to remove the credentials from the file <freeswitch-installation>/conf/autoload-configs/xmlrpc.conf.xml
and remove the username and password from your code as well. Then try it again.

Just to make sure its working. After that you can revert all back.

Otherwise, you can try the url in your internet browser. It should ask for the credential. By default username=freeswitch and password=works.

Cheers.

On Tue, Aug 26, 2008 at 10:54 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com (xtpl.gayatri@gmail.com)> wrote:
Quote:
it loaded the module fine; but now it is saying this:

Caused by:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://192
.168.10.36:8080/RPC2
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc

SunHttpTransport.java:64)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.newInputStream(XmlRpc

SunHttpTransport.java:81)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.getInputStream(XmlRpcS
treamTransport.java:159)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.getInputStream(XmlRpcHtt
pTransport.java:49)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStre
amTransport.java:213)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorke
r.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at RMIServer.makeACall(RMIServer.java:36)
at RMIServer.main(RMIServer.java:49)


Regards,
Gayatri Kulkarni


From: Brian West (brian@freeswitch.org)
Sent: Tuesday, August 26, 2008 7:51 AM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] How to originate a session from outside






conf/autoload_configs/modules.conf.xml and uncomment it. You can also load it by typing this at the cli "load mod_xml_rpc"

/b

On Aug 26, 2008, at 9:41 AM, Gayatri Kulkarni wrote:

Quote:
How would you make sure mod_xml_rpc is loaded?

I could successfully run reloadxml
I got the exception again.

Regards,
Gayatri Kulkarni




Brian West
sip:brian@freeswitch.org (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



_______________________________________________
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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services