[Freeswitch-users] Possible to communicate with FS using event_socket without ESL?

Bert Jones rmbertjones at comcast.net
Mon Feb 14 07:40:32 MSK 2011


Thanks for the clarification.  I too suspect something in my communications.
Just wanted to make sure I was not missing something. Will move my
communication app to a separate machine from the FS server and run
Wireshark.  Thanks for recommendation.

Bert

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Steven
Ayre
Sent: Sunday, February 13, 2011 7:29 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Possible to communicate with FS using
event_socket without ESL?

 

Without the use of the ESL *protocol* - no. Without the use of the supplied
ESL *libraries* - correct.

You're along the right lines on implementing your own protocol. If you can
connect and authenticate via telnet from the same computer you're trying
your app from then there should be no problem with FS.

The fact you say it takes 10s for FS to respond indicates you're not sending
the auth line. You should get either a success or failure message straight
away in reply to that. So it sounds like the auth isn't getting sent at all.

Try using Wireshark to view what's going over the network to check it's what
you expect.

-Steve







On 13 February 2011 03:27, Bert Jones <rmbertjones at comcast.net> wrote:

Hello,

 

Am I correct in assuming that an app can talk directly to FS using
event_socket without the use of the ESL?  I am attempting to do this, but
having trouble authenticating. I wanted to make sure I was not overlooking
something basis in my approach.

 

I have successfully loaded FS on a windows XP server and can register phones
and make calls.  Further I can talk to the server, authenticate and make
calls using telnet, but when attempting to do the same via an app written in
.net and using a socket, I am unable to authenticate.  

 

Running my app using a tcpSocket, I receive the "Content-Type: auth/request"
upon connection of the socket, but when sending "auth password\n\n" it
appears that the connection times out after about 10 seconds and I receive:
"Content-Type: text/disconnect-notice" & vbLf & "Content-Length: 67".
mod_event_socket is enabled in modules.conf.xml .

 

Is there something obvious that I am missing conceptually, or should this
work?

 

Thanks!

 

 

 

 


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110213/38e32a43/attachment.html 


More information about the FreeSWITCH-users mailing list