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

Anthony Minessale anthony.minessale at gmail.com
Mon Feb 14 20:07:22 MSK 2011


This is why I stopped and took the time to write the ESL library.  If
you want to do it yourself that's fine but were batting 1000 on people
who try to write their own and ask for help or report their own
mistakes as bugs along the way.

I'm not sure why you would want to take the risk to properly implement
the interface we have already spent the time on.


On Sun, Feb 13, 2011 at 10:40 PM, Bert Jones <rmbertjones at comcast.net> wrote:
> 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
>
>
>
> _______________________________________________
> 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
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list