send custom tcp message from esl
I am using esl in Ruby I want to send tcp messages to a server. When I tried to make my tcpsocket class it did not work it must be messing with the socket setup of esl. Is there a way without the need to manage the sockets seperatley to use els methods to send out custom tcp message. All I need is for a simple string to be fired to tcp port. How can I do this from inside esl.
Are you trying to send a simple string to the event socket port on FreeSWITCH? If so, what message are you sending? I'm not aware of any event socket messages that ESL cannot handle. -MC On Mon, Mar 21, 2011 at 4:10 PM, Ejay Greeves <ejay.greeves@yahoo.com>wrote:
I am using esl in Ruby I want to send tcp messages to a server. When I tried to make my tcpsocket class it did not work it must be messing with the socket setup of esl. Is there a way without the need to manage the sockets seperatley to use els methods to send out custom tcp message. All I need is for a simple string to be fired to tcp port. How can I do this from inside esl.
_______________________________________________ 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
This is for a collected call being processed in an event socket ruby script. I would want to connect out from Freeswitch to an external tcp port. Basic what I want is to sent the output string of a ruby puts command through tcp to a ecternal server. Can I do this with the esl object? --- On Tue, 22/3/11, Michael Collins <msc@freeswitch.org> wrote: From: Michael Collins <msc@freeswitch.org> Subject: Re: [Freeswitch-users] send custom tcp message from esl To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 22 March, 2011, 5:26 Are you trying to send a simple string to the event socket port on FreeSWITCH? If so, what message are you sending? I'm not aware of any event socket messages that ESL cannot handle. -MC On Mon, Mar 21, 2011 at 4:10 PM, Ejay Greeves <ejay.greeves@yahoo.com> wrote: I am using esl in Ruby I want to send tcp messages to a server. When I tried to make my tcpsocket class it did not work it must be messing with the socket setup of esl. Is there a way without the need to manage the sockets seperatley to use els methods to send out custom tcp message. All I need is for a simple string to be fired to tcp port. How can I do this from inside esl. _______________________________________________ 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 -----Inline Attachment Follows----- _______________________________________________ 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
On Tue, Mar 22, 2011 at 6:48 AM, Ejay Greeves <ejay.greeves@yahoo.com>wrote:
This is for a collected call being processed in an event socket ruby script. I would want to connect out from Freeswitch to an external tcp port. Basic what I want is to sent the output string of a ruby puts command through tcp to a ecternal server. Can I do this with the esl object?
Not that I'm aware of. I'm pretty sure you'd need to handle the socket connect in whatever Rubyish way you have available. -MC
participants (2)
-
Ejay Greeves
-
Michael Collins