I still can't connect to the event socket after doing what you told me. Here's the log:
2009-08-21 00:50:54+0000 [Uninitialized] Connection to 127.0.0.1:8021 refused, retrying attempt #10 in 5 seconds
2009-08-21 00:50:54+0000 [Uninitialized] Stopping factory <freepy.fseventlistener.FreeswitchEventListenerFactory instance at 0x957f78c>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] got post: <MultiValueDict: {'key_value': ['xml_cdr.conf'], 'key_name': ['name'], 'section': ['configuration'], 'hos
tname': ['wikipbx.worldteltech.com'], 'tag_name': ['configuration']}>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <document type="freeswitch/xml">
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <section name="configuration" description="Various Configuration">
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1]
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <configuration name='xml_cdr.conf' description='XML CDR CURL logger'>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <settings>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <param name='retries' value='1'/>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <param name='url' value='http://127.0.0.1:8086/add_cdr/'/>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <param name='delay' value='30'/>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <param name='log-dir' value='/usr/src/wikipbx/cdr'/>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <param name='encode' value='True'/>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <param name='cred' value='user:pass'/>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] <param name='err-log-dir' value='/usr/src/wikipbx/cdr/err'/>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] </settings>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] </configuration>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1]
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] </section>
2009-08-21 00:50:55+0000 [HTTPChannel,0,127.0.0.1] </document>
2009-08-21 00:50:55+0000 [-] 127.0.0.1 - - [21/Aug/2009:00:50:55 -0600] "POST /xml_dialplan/ HTTP/1.1" 200 581 "-" "freeswitch-xml/1.0"
2009-08-21 00:50:55+0000 [HTTPChannel,1,127.0.0.1] got post: <MultiValueDict: {'key_value': ['cdr_csv.conf'], 'key_name': ['name'], 'section': ['configuration'], 'hostname': ['wikipbx.worldteltech.com'], 'tag_name': ['configuration']}>
2009-08-21 00:50:55+0000 [-] 127.0.0.1 - - [21/Aug/2009:00:50:55 -0600] "POST /xml_dialplan/ HTTP/1.1" 200 127 "-" "freeswitch-xml/1.0"
2009-08-21 00:50:55+0000 [HTTPChannel,2,127.0.0.1] got post: <MultiValueDict: {'FreeSWITCH-IPv4': ['192.168.1.69'], 'key_value': ['sofia.conf'], 'FreeSWITCH-IPv6': ['::1'], 'Event-Date-Local': ['2009-08-20 18:50:55'], 'Event-Calling-Line-Number': ['2051'], 'key_name': ['name'], 'section': ['configuration'], 'hostname': ['wikipbx.worldteltech.com'], 'Event-Date-GMT': ['Fri, 21 Aug 2009 00:50:55 GMT'], 'Event-Name': ['REQUEST_PARAMS'], 'tag_name': ['configuration'], 'FreeSWITCH-Hostname': ['wikipbx.worldteltech.com'], 'Event-Date-Timestamp': ['1250815855142899'], 'Event-Calling-Function': ['config_sofia'], 'Event-Calling-File': ['sofia.c'], 'Core-UUID': ['1ec5600c-802b-4d14-b065-19145c85b00e']}>
SKIP -------------
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] <document type="freeswitch/xml">
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] <section name="configuration" description="Various Configuration">
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1]
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] <configuration name='event_socket.conf' description='Socket Client'>
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] <settings>
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] <param name='listen-ip' value='127.0.0.1'/>
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] <param name='password' value='ClueCon'/>
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] <!-- <param name='password' value='$${default_event_socket_password}'/> -->
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] <param name='listen-port' value='8021'/>
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] </settings>
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] </configuration>
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1]
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] </section>
2009-08-21 00:50:57+0000 [HTTPChannel,14,127.0.0.1] </document>
2009-08-21 00:50:57+0000 [-] 127.0.0.1 - - [21/Aug/2009:00:50:57 -0600] "POST /xml_dialplan/ HTTP/1.1" 200 455 "-" "freeswitch-xml/1.0"
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] No profile name given, will use domain to lookup account
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] ERROR!!
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] Error generating directory: not all arguments converted during string formatting
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] Traceback (most recent call last):
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] File "/usr/src/wikipbx/wikipbxweb/views.py", line 1915, in xml_dialplan
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] raw_xml = xmlconfig.directory_user(request)
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] File "/usr/src/wikipbx/xmlconfig.py", line 368, in directory_user
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] "WikiPBX. Not known to cause bugs. " % domain)
2009-08-21 00:50:57+0000 [HTTPChannel,15,127.0.0.1] TypeError: not all arguments converted during string formatting
2009-08-21 00:50:57+0000 [-] 127.0.0.1 - - [21/Aug/2009:00:50:57 -0600] "POST /xml_dialplan/ HTTP/1.1" 200 127 "-" "freeswitch-xml/1.0"
2009-08-21 00:50:57+0000 [HTTPChannel,16,127.0.0.1] got post: <MultiValueDict: {'key_value': ['post_load_switch.conf'], 'key_name': ['name'], 'section': ['configurati
on'], 'hostname': ['wikipbx.worldteltech.com'], 'tag_name': ['configuration']}>
2009-08-21 00:50:57+0000 [-] 127.0.0.1 - - [21/Aug/2009:00:50:57 -0600] "POST /xml_dialplan/ HTTP/1.1" 200 127 "-" "freeswitch-xml/1.0"
2009-08-21 00:50:59+0000 [-] Starting factory <freepy.fseventlistener.FreeswitchEventListenerFactory instance at 0x957f78c>
2009-08-21 00:50:59+0000 [Uninitialized] General error: [Failure instance: Traceback: <type 'exceptions.TypeError'>: __init__() takes exactly 2 arguments (1 given)
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/fseventlistener.py:73:connectionMade
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/fseventlistener.py:221:conncb
2009-08-21 00:50:59+0000 [Uninitialized] /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:243:callback
2009-08-21 00:50:59+0000 [Uninitialized] /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:312:_startRunCallbacks
2009-08-21 00:50:59+0000 [Uninitialized] --- <exception caught here> ---
2009-08-21 00:50:59+0000 [Uninitialized] /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:328:_runCallbacks
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/fseventlistener.py:260:dologin
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/fseventlistener.py:86:login
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/request.py:183:__init__
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/loginrequest_sm.py:173:__init__
2009-08-21 00:50:59+0000 [Uninitialized] ]
2009-08-21 00:50:59+0000 [Uninitialized] ERROR!!
2009-08-21 00:50:59+0000 [Uninitialized] Event logger failed to connect: [Failure instance: Traceback: <type 'exceptions.TypeError'>: __init__() takes exactly 2 arguments (1 given)
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/fseventlistener.py:73:connectionMade
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/fseventlistener.py:221:conncb
2009-08-21 00:50:59+0000 [Uninitialized] /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:243:callback
2009-08-21 00:50:59+0000 [Uninitialized] /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:312:_startRunCallbacks
2009-08-21 00:50:59+0000 [Uninitialized] --- <exception caught here> ---
2009-08-21 00:50:59+0000 [Uninitialized] /usr/local/lib/python2.5/site-packages/twisted/internet/defer.py:328:_runCallbacks
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/fseventlistener.py:260:dologin
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/fseventlistener.py:86:login
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/request.py:183:__init__
2009-08-21 00:50:59+0000 [Uninitialized] /usr/src/freeswitch/scripts/python/freepy/loginrequest_sm.py:173:__init__
2009-08-21 00:50:59+0000 [Uninitialized] ]
2009-08-21 00:50:59+0000 [Uninitialized] Traceback (most recent call last):
2009-08-21 00:50:59+0000 [Uninitialized] File "/usr/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
2009-08-21 00:50:59+0000 [Uninitialized] self.result = callback(self.result, *args, **kw)
2009-08-21 00:50:59+0000 [Uninitialized] File "/usr/src/freeswitch/scripts/python/freepy/fseventlistener.py", line 260, in dologin
2009-08-21 00:50:59+0000 [Uninitialized] return self.protocol.login(self.passwd)
2009-08-21 00:50:59+0000 [Uninitialized] File "/usr/src/freeswitch/scripts/python/freepy/fseventlistener.py", line 86, in login
2009-08-21 00:50:59+0000 [Uninitialized] req = request.LoginRequest()
2009-08-21 00:50:59+0000 [Uninitialized] File "/usr/src/freeswitch/scripts/python/freepy/request.py", line 183, in __init__
2009-08-21 00:50:59+0000 [Uninitialized] self._fsm = loginrequest_sm.LoginRequest_sm(self)
2009-08-21 00:50:59+0000 [Uninitialized] File "/usr/src/freeswitch/scripts/python/freepy/loginrequest_sm.py", line 173, in __init__
2009-08-21 00:50:59+0000 [Uninitialized] statemap.FSMContext.__init__(self)
2009-08-21 00:50:59+0000 [Uninitialized] TypeError: __init__() takes exactly 2 arguments (1 given)