<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Willem,<div><br></div><div>I get disconnected immediately to the test address. I tried locally between two macs and the server side exhibits the following problem:</div><div><div><br><div>Adrian</div><div><div><br></div><div><div><div>adigeo@ag-oxygen:~/work/sip_desktop_sharing-0.04$./sip_desktop_sharing -a umts </div><div>Accounts available: 'alice', 'ew', 'gert', 'mrg', 'p', 'pbx', 'tf', 'umts', 'umts_test', 'unet', default</div><div>Using account 'umts': <a href="mailto:adi@umts.ro">adi@umts.ro</a></div><div>Resolved DNS SRV record "_sip._udp.umts.ro" --> proxy.sipthor.net:5060</div><div>Resolved DNS A record "proxy.sipthor.net" --> 85.17.186.7, 81.23.228.150, 81.23.228.129</div><div>Registering "Adi UMTS" <<a href="sip:adi@umts.ro">sip:adi@umts.ro</a>> at 85.17.186.7:5060</div><div>Registered SIP contact address: <a href="sip:9iNQbjvyHc@192.168.1.128:56636;transport=udp">sip:9iNQbjvyHc@192.168.1.128:56636;transport=udp</a> (expires in 300 seconds)</div><div>ctrl-h = hangup, ctrl-n = next session, ctrl-d = quit</div><div>Waiting for incoming desktop sharing sessions...</div><div>"Mihaela G." <<a href="sip:mihaela@georgescu.info">sip:mihaela@georgescu.info</a>> whishes to connect to your desktop. Accept? y</div><div>No active session> Connecting SIP session to "Mihaela G." <<a href="sip:mihaela@georgescu.info">sip:mihaela@georgescu.info</a>></div><div>choosing random port...</div><div>random port 24832 chosen</div><div>starting x11vnx -rfbversion 3.3 -connect 127.0.0.1:24832 -q -inetd</div><div>accepting socket connects on 127.0.0.1:24832</div><div>connection made, closing listener</div><div>Copying data</div><div>000 26/01/2009 23:04:57 x11vnc version: 0.9.6 lastmod: 2008-12-08</div><div>001 26/01/2009 23:04:57 MacOSX: Ignoring $DISPLAY '/tmp/launch-oZVYF8/:0'</div><div>002 26/01/2009 23:04:57 MacOSX: Use -display $DISPLAY to force it.</div><div>003 26/01/2009 23:04:57 continuing without X display in -rawfb mode, hold on tight..</div><div>004 26/01/2009 23:04:57 macosxCG_init: initializing display.</div><div>005 26/01/2009 23:04:57 console_guess: file is /dev/null</div><div>006 26/01/2009 23:04:57 console_guess returned: map:macosx:/dev/null@1280x800x32:ff0000/ff00/ff</div><div>007 26/01/2009 23:04:57 raw fb is non-regular file: /dev/null</div><div>008 26/01/2009 23:04:57 rawfb: macosx fb: /dev/null</div><div>009 26/01/2009 23:04:57 w: 1280 h: 800 b: 32 addr: 0x2100000 sz: 4096000</div><div>010 26/01/2009 23:04:57 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120</div><div>011 26/01/2009 23:04:57 </div><div>012 26/01/2009 23:04:57 Raw fb at addr 0x2100000 is 32bpp depth=24 true color</div><div>013 26/01/2009 23:04:57 </div><div>014 26/01/2009 23:04:57 setsockopt: Socket operation on non-socket</div><div>015 26/01/2009 23:04:57 fb read rate: 218 MB/sec</div><div>016 26/01/2009 23:04:57 fast read: reset wait ms to: 10</div><div>017 26/01/2009 23:04:57 fast read: reset defer ms to: 10</div><div>018 26/01/2009 23:04:57 screen setup finished.</div><div>019 26/01/2009 23:04:57 other clients:</div><div>020 26/01/2009 23:04:57 setsockopt failed: Socket operation on non-socket</div><div>021 26/01/2009 23:04:57 Making connection to client on host 127.0.0.1 port 24832</div><div>022 26/01/2009 23:04:57 other clients:</div><div>023 26/01/2009 23:04:57 macosxCG_callback: register</div><div>024 26/01/2009 23:04:57 reverse_connect: 127.0.0.1:24832/127.0.0.1 OK</div><div>025 26/01/2009 23:04:57 reverse_connect: turning on auth for 127.0.0.1</div><div>026 26/01/2009 23:04:57 Client Protocol Version 3.3</div><div>027 26/01/2009 23:04:57 Protocol version sent 3.3, using 3.3</div><div>028 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x05000000)</div><div>029 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x017F0000)</div><div>030 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00010000)</div><div>031 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00050000)</div><div>032 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00040000)</div><div>033 26/01/2009 23:04:58 Defaulting to raw encoding for client 127.0.0.1</div><div>034 26/01/2009 23:04:58 Pixel format for client 127.0.0.1:</div><div>035 26/01/2009 23:04:58 0 bpp, depth 0, little endian</div><div>036 26/01/2009 23:04:58 uses a colour map (not true colour).</div><div>037 26/01/2009 23:04:58 rfbSetTranslateFunction: client bits per pixel not 8, 16 or 32</div><div>038 26/01/2009 23:04:58 client_count: 0</div><div>039 26/01/2009 23:04:58 inetd viewer exited.</div><div>040 26/01/2009 23:04:58 deleted 40 tile_row polling images.</div><div>041 26/01/2009 23:04:58 macosxCG_callback: unregister</div><div>Traceback (most recent call last):</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 246, in run</div><div> self.mainLoop(reactor)</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 264, in mainLoop</div><div> reactor.runUntilCurrent()</div><div>--- <exception caught here> ---</div><div> File "/Library/Python/2.5/site-packages/Twisted-8.1.0-py2.5-macosx-10.5-i386.egg/twisted/internet/base.py", line 705, in runUntilCurrent</div><div> call.func(*call.args, **call.kw)</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros.py", line 375, in _do_unlock</div><div> self._do_acquire()</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros.py", line 385, in _do_acquire</div><div> waiter.switch()</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/proc.py", line 503, in _run</div><div> result = function(*args, **kwargs)</div><div> File "/Users/adigeo/work/sip_desktop_shariDisconnecting SIP session to "Mihaela G." <<a href="sip:mihaela@georgescu.info">sip:mihaela@georgescu.info</a>></div><div>Disconnected SIP session to "Mihaela G." <<a href="sip:mihaela@georgescu.info">sip:mihaela@georgescu.info</a>></div><div>ng-0.04/vncserver.py", line 55, in sock2sock</div><div> data = data[sock2.send(data):]</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/greenio.py", line 82, in send</div><div> count = send_func(self.fd, data)</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/greenio.py", line 112, in socket_send</div><div> return descriptor.send(data)</div><div> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 141, in _dummy</div><div> raise error(EBADF, 'Bad file descriptor')</div><div>socket.error: (9, 'Bad file descriptor')</div><div>Traceback (most recent call last):</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 246, in run</div><div> self.mainLoop(reactor)</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 264, in mainLoop</div><div> reactor.runUntilCurrent()</div><div>--- <exception caught here> ---</div><div> File "/Library/Python/2.5/site-packages/Twisted-8.1.0-py2.5-macosx-10.5-i386.egg/twisted/internet/base.py", line 705, in runUntilCurrent</div><div> call.func(*call.args, **call.kw)</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/proc.py", line 391, in _do_send</div><div> link(self.name, tag, value)</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/proc.py", line 151, in _fire</div><div> self._fire_exception(source, result)</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/proc.py", line 171, in _fire_exception</div><div> self.listener.throw(getLinkedFailed(source, *throw_args))</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/proc.py", line 520, in throw</div><div> self.greenlet.throw(*throw_args)</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/proc.py", line 503, in _run</div><div> result = function(*args, **kwargs)</div><div> File "/Users/adigeo/work/sip_desktop_sharing-0.04/vncserver.py", line 68, in sock2sock</div><div> sock2.close()</div><div> File "./sip_desktop_sharing", line 109, in close</div><div> return self.session.end()</div><div> File "/Library/Python/2.5/site-packages/pypjua/clients/msrpsession.py", line 108, in end</div><div> self.sip.shutdown()</div><div> File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py", line 463, in shutdown</div><div> self.end(*args, **kwargs)</div><div> File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py", line 453, in end</div><div> params = self.skip_to_event('DISCONNECTED')[1]</div><div> File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py", line 175, in skip_to_event</div><div> xxx = self._wait()</div><div> File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py", line 148, in _wait</div><div> return q.wait()</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros.py", line 1034, in wait</div><div> self.sem.acquire()</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros.py", line 302, in acquire</div><div> api.get_hub().switch()</div><div> File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py", line 227, in switch</div><div> return self.greenlet.switch()</div><div>eventlet.proc.LinkedFailed: '<function sock2sock at 0x30daaf0>' failed with error</div><div>"Mihaela G." <<a href="sip:mihaela@georgescu.info">sip:mihaela@georgescu.info</a>>> </div><div><br></div></div></div></div></div></div><div><div>On Jan 26, 2009, at 10:41 PM, Willem Toorop wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi All,<br><br>Attached version 0.04 :)<br>The usage is now as follows:<br><br>Without target address:<br>./sip_desktop_sharing [--auto-answer <list of sip addresses | all>]<br><div id=":2bz" class="ArwC7c ckChnd"><br> With target address:<br>./sip_desktop_sharing [--desktop <remote | local>] <a href="mailto:user@domain.com">user@domain.com</a><br> <div id=":2bz" class="ArwC7c ckChnd"><br> </div>In the first form it will sit idle waiting for incoming desktop sharing sessions. When the --auto-answer option is given, it will share the local desktop automatically without user intervention to sessions set up by addresses from the <list of sip addresses>. When <all> is given, everybody is automatically authorized to share the local desktop. <br> Offers to share the remote desktop will always require manual permission.<br><br>In the second form it will call the targeted address, and request to share the remote desktop. If "--desktop local" is used, the local desktop is offered for sharing.<br> <ol><li>The <Enter>, <Backspace> and <Tab> and Control- keys are now working.</li><li>Multiple sessions from different callers can be set up with a called party.<br>The called parties desktop will be shared between all those callers.<br> </li></ol></div>I have a listening sip_desktop_sharing session, open for testing purposes.<br>You can reach it with:<br><br>./sip_desktop_sharing <a href="mailto:2233361709@sip2sip.info">2233361709@sip2sip.info</a><br><br> <br>I've added three lines to site-packages/pypjua/clients/config.py to allow for extra options for a specific program.<br><br>On line 81 i changed<br><br><span style="font-family: courier new,monospace;">def parse_options(usage, description):</span><br> <br>in<br><br><span style="font-family: courier new,monospace;">def parse_options(usage, description, extra_options = ()):</span><br><br>On line 129, just before<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> options, args = parser.parse_args()</span><br> <br>I added:<br><br><span style="font-family: courier new,monospace;"> for extra_option in extra_options:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> parser.add_option(*extra_option[0], **extra_option[1])</span><br> <br>The sip_desktop_sharing program has a local version this file (and of site-packages/pypjua/clients/clientconfig.py for finding the wav files), so you don't have to alter the originals.<br><br>Good luck sip_desktop_sharing !<br> Cheers,<br><br>Willem<br><br><div class="gmail_quote">2009/1/26 Adrian Georgescu <span dir="ltr"><<a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style="">Hi Willem,<div><br></div><div>Could you improve the program as follows:</div><div><br></div><div>1. Provide a ringing indication so that the called party can agree with it like for a normal session, use the --auto-answer option if you want to respond automatically </div> <div>2. Use --desktop argument instead of request, the values can be local or remote, default is remote</div><div><br></div><font color="#888888"><div>Adrian</div><div><br></div></font><div><div><div class="Ih2E3d"><div>On Jan 26, 2009, at 12:36 PM, Willem Toorop wrote:</div> <br></div><blockquote type="cite"><div><div></div><div class="Wj3C7c">Hi All,<br><div class="gmail_quote"><br>Attached version 0.03 of sip_desktop_sharing. The usage is:<br><br>./sip_desktop_sharing [<a href="mailto:target-user@target-domain.com" target="_blank">target-user@target-domain.com</a>] [request]<br> <br>Without arguments it will sit idle waiting for incoming desktop sharing requests, with a target address it will call that address to setup a desktop sharing session. If there is a second argument, request, the caller will ask the callee for its desktop, otherwise the callers desktop is offered to the callee.<br> <br>There are still many bugs.<br><ul><li>When SDP negotiation fails, the caller isn't notified.</li><li>Some keys still need to be translated properly from pygame to rfb key events. Notably the <enter> key doesn't work yet :)</li> <li>Sometimes the session just stops for several seconds (maybe the 30 seconds MSRP-Relay timeout?)</li></ul>I have a small desktop which I share using sip_desktop_sharing which auto-accepts desktop requests for testing purposes.<br> You can connect to it with:<br><br>./sip_desktop_sharing 2233361709 request<br><br>Let me know if this version works for you.<br>Cheers,<br><font color="#888888"><br>Willem<br><br> </font></div><br> </div></div><div class="Ih2E3d"> <span><sip_desktop_sharing-0.03.tgz></span>_______________________________________________<br>SIPclient mailing list<br><a href="mailto:SIPclient@lists.ag-projects.com" target="_blank">SIPclient@lists.ag-projects.com</a><br> <a href="http://lists.ag-projects.com/mailman/listinfo/sipclient" target="_blank">http://lists.ag-projects.com/mailman/listinfo/sipclient</a><br></div></blockquote></div><br></div></div></blockquote></div><br> <span><sip_desktop_sharing-0.04.tgz></span></blockquote></div><br></body></html>