2009/1/25 Adrian Georgescu <span dir="ltr"><<a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is it possible that you are not using the latest sipclient library from darcs, also your code seem to use some an old version of it (like eventlet, msrplib)?</blockquote><div><br>This was indeed the case.<br></div><br>Attached I have my modifications merged in the new version, but the new version from darcs doesn't work either. Now, not even when I try the original sip_im_session programs.<br>
<br>The client says:<br><span style="font-family: courier new,monospace;">willem@tijdelijk:~$ sip_im_session <a href="mailto:2233361709@sip2sip.info">2233361709@sip2sip.info</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Accounts available: default</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Using default account: <a href="mailto:2233361583@sip2sip.info">2233361583@sip2sip.info</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Domain <a href="http://proxy.sipthor.net">proxy.sipthor.net</a> has no DNS SRV record, attempting DNS A record lookup</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Resolved DNS A record "<a href="http://proxy.sipthor.net">proxy.sipthor.net</a>" --> 85.17.186.7, 81.23.228.150, 81.23.228.129</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Registering "Willem Toorop" <<a href="mailto:sip%3A2233361583@sip2sip.info">sip:2233361583@sip2sip.info</a>> at <a href="http://81.23.228.129:5060">81.23.228.129:5060</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Registered SIP contact address: sip:OEWUNTxlba@192.168.178.33:36868;transport=udp (expires in 300 seconds)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Press Ctrl-d to quit or Control-n to switch between active sessions</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Initiating SIP session from "Willem Toorop" <<a href="mailto:sip%3A2233361583@sip2sip.info">sip:2233361583@sip2sip.info</a>> to <a href="mailto:sip%3A2233361709@sip2sip.info">sip:2233361709@sip2sip.info</a> through proxy 81.23.228.129:5060...</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Early SIP session to <a href="mailto:sip%3A2233361709@sip2sip.info">sip:2233361709@sip2sip.info</a> (180 Ringing)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Ringing from <a href="http://sip:61f0ssEoQC@82.95.141.127:38830">sip:61f0ssEoQC@82.95.141.127:38830</a> (ag-projects/sipclient-0.4.0-pjsip-1.0.1-r2427)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Disconnected SIP session to <a href="mailto:sip%3A2233361709@sip2sip.info">sip:2233361709@sip2sip.info</a> (486 Busy Here)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Connection to <a href="mailto:sip%3A2233361709@sip2sip.info">sip:2233361709@sip2sip.info</a> FAILED: DISCONNECTED 486 Busy Here</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 245, in run</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    self.mainLoop(reactor)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 263, in mainLoop</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    reactor.runUntilCurrent()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">--- <exception caught here> ---</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 705, in runUntilCurrent</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    call.func(*call.args, **<a href="http://call.kw">call.kw</a>)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/proc.py", line 330, in _do_send</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    link(<a href="http://self.name">self.name</a>, tag, value)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exceptions.TypeError: <lambda>() takes exactly 1 argument (3 given)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Chat to <a href="mailto:2233361709@sip2sip.info">2233361709@sip2sip.info</a>: </span><br><br>The server:<br><span style="font-family: courier new,monospace;">haplo@tijdelijk:~$ sip_im_session</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Accounts available: default</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Using default account: <a href="mailto:2233361709@sip2sip.info">2233361709@sip2sip.info</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Domain <a href="http://proxy.sipthor.net">proxy.sipthor.net</a> has no DNS SRV record, attempting DNS A record lookup</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Resolved DNS A record "<a href="http://proxy.sipthor.net">proxy.sipthor.net</a>" --> 85.17.186.7, 81.23.228.150, 81.23.228.129</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Registering "Haplo Toorop" <<a href="mailto:sip%3A2233361709@sip2sip.info">sip:2233361709@sip2sip.info</a>> at <a href="http://81.23.228.150:5060">81.23.228.150:5060</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Registered SIP contact address: sip:61f0ssEoQC@192.168.178.33:38830;transport=udp (expires in 300 seconds)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Press Ctrl-d to quit or Control-n to switch between active sessions</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Waiting for incoming SIP session requests...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 245, in run</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    self.mainLoop(reactor)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 263, in mainLoop</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    reactor.runUntilCurrent()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">--- <exception caught here> ---</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 705, in runUntilCurrent</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    call.func(*call.args, **<a href="http://call.kw">call.kw</a>)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros.py", line 370, in _do_acquire</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    waiter.switch()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/proc.py", line 419, in _run</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    result = function(*args, **kwargs)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/bin/sip_im_session", line 466, in _accept_incoming_loop</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    handler.wait_and_handle(self.engine)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/enginebuffer.py", line 128, in wait_and_handle</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    session = self.handle(inv, *args, **kwargs)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/enginebuffer.py", line 122, in handle</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return handler.handle(inv, *args, **kwargs)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/bin/sip_im_session", line 199, in handle</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    if consult_user(inv, self._ask_user)==True:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/bin/sip_im_session", line 177, in consult_user</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    link = inv.call_on_disconnect(lambda *_args: ask_job.kill())</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/enginebuffer.py", line 474, in call_on_disconnect</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return self._queue.link(listener)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/eventletutil.py", line 43, in link</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    link = self.getLink(listener)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/eventletutil.py", line 62, in getLink</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return proc.LinkToCallable(listener)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exceptions.AttributeError: 'module' object has no attribute 'LinkToCallable'</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><a href="mailto:2233361709@sip2sip.info">2233361709@sip2sip.info</a>> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Early SIP session to "Willem Toorop" <<a href="mailto:sip%3A2233361583@sip2sip.info">sip:2233361583@sip2sip.info</a>></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Rejected SIP session to "Willem Toorop" <<a href="mailto:sip%3A2233361583@sip2sip.info">sip:2233361583@sip2sip.info</a>></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Rejected SIP session to "Willem Toorop" <<a href="mailto:sip%3A2233361583@sip2sip.info">sip:2233361583@sip2sip.info</a>></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/bin/sip_im_session", line 627, in <module></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    main()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/bin/sip_im_session", line 620, in main</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    start(options, console)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/bin/sip_im_session", line 527, in start</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    readloop(console, manager, get_commands(manager), get_shortcuts(manager))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/bin/sip_im_session", line 555, in readloop</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    for type, value in console:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/clients/consolebuffer.py", line 335, in next</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return self.recv()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/clients/consolebuffer.py", line 253, in recv</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return self._receive()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/clients/consolebuffer.py", line 245, in _receive</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return self.channel.receive()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/pypjua/clients/consolebuffer.py", line 52, in receive</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return self.output.wait()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros.py", line 1084, in wait</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    self.sem.acquire()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros.py", line 352, in acquire</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    api.get_hub().switch()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 226, in switch</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return self.greenlet.switch()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">eventlet.proc.LinkedFailed: linked proc '<bound method ChatManager._accept_incoming_loop of <__main__.ChatManager instance at 0x8940d2c>>' failed with AttributeError</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">haplo@tijdelijk:~$ </span><br><br>I also updated eventlet_twisted and python-msrplib. That does not make a difference either.<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If I were you I would try to find the wav files automatically.</blockquote><div><br>Okay... would you like me to write an alternative to the get_path function in site-packages/pypjua/clients/clientconfig.py ?<br><br>Willem<br>
</div></div><br>