Hi, Freeswitch is listening on port 8021 not 8041. Just tried the script below and works fine on my machine. Running python 2.7.3 and FS 1.2.12 -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Johan Brannlund Sent: Wednesday, September 04, 2013 5:33 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Event socket and python Sami Montour wrote:
Hi, Try this modified version of your code. It should work. You can also do "while(con.connected())" instead of "while(1)"
Hi. Thank you for replying. I'm afraid your version of the Python code does exactly the same thing as mine: if I connect to a closed port, con.connected is still True and I get an unending stream of SERVER_DISCONNECTED events. By the way, this is with Freeswitch version 1.5.2b+git~20130526T122251Z~076a7706db. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com 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