[SIP SIMPLE client] Version 0.03

Adrian Georgescu ag at ag-projects.com
Mon Jan 26 23:09:06 CET 2009


Hi Willem,

I get disconnected immediately to the test address. I tried locally  
between two macs and the server side exhibits the following problem:

Adrian

adigeo at ag-oxygen:~/work/sip_desktop_sharing-0.04$./sip_desktop_sharing  
-a umts
Accounts available: 'alice', 'ew', 'gert', 'mrg', 'p', 'pbx', 'tf',  
'umts', 'umts_test', 'unet', default
Using account 'umts': adi at umts.ro
Resolved DNS SRV record "_sip._udp.umts.ro" --> proxy.sipthor.net:5060
Resolved DNS A record "proxy.sipthor.net" --> 85.17.186.7,  
81.23.228.150, 81.23.228.129
Registering "Adi UMTS" <sip:adi at umts.ro> at 85.17.186.7:5060
Registered SIP contact address: sip:9iNQbjvyHc at 192.168.1.128:56636;transport=udp 
  (expires in 300 seconds)
ctrl-h = hangup, ctrl-n = next session, ctrl-d = quit
Waiting for incoming desktop sharing sessions...
"Mihaela G." <sip:mihaela at georgescu.info> whishes to connect to your  
desktop. Accept? y
No active session> Connecting SIP session to "Mihaela G." <sip:mihaela at georgescu.info 
 >
choosing random port...
random port 24832 chosen
starting x11vnx -rfbversion 3.3 -connect 127.0.0.1:24832 -q -inetd
accepting socket connects on 127.0.0.1:24832
connection made, closing listener
Copying data
000 26/01/2009 23:04:57 x11vnc version: 0.9.6 lastmod: 2008-12-08
001 26/01/2009 23:04:57 MacOSX: Ignoring $DISPLAY '/tmp/launch- 
oZVYF8/:0'
002 26/01/2009 23:04:57 MacOSX: Use -display $DISPLAY to force it.
003 26/01/2009 23:04:57 continuing without X display in -rawfb mode,  
hold on tight..
004 26/01/2009 23:04:57 macosxCG_init: initializing display.
005 26/01/2009 23:04:57 console_guess: file is /dev/null
006 26/01/2009 23:04:57 console_guess returned: map:macosx:/dev/ 
null at 1280x800x32:ff0000/ff00/ff
007 26/01/2009 23:04:57 raw fb is non-regular file: /dev/null
008 26/01/2009 23:04:57 rawfb: macosx fb: /dev/null
009 26/01/2009 23:04:57    w: 1280 h: 800 b: 32 addr: 0x2100000 sz:  
4096000
010 26/01/2009 23:04:57 initialize_screen: fb_depth/fb_bpp/fb_Bpl  
24/32/5120
011 26/01/2009 23:04:57
012 26/01/2009 23:04:57 Raw fb at addr 0x2100000 is 32bpp depth=24  
true color
013 26/01/2009 23:04:57
014 26/01/2009 23:04:57 setsockopt: Socket operation on non-socket
015 26/01/2009 23:04:57 fb read rate: 218 MB/sec
016 26/01/2009 23:04:57 fast read: reset wait  ms to: 10
017 26/01/2009 23:04:57 fast read: reset defer ms to: 10
018 26/01/2009 23:04:57 screen setup finished.
019 26/01/2009 23:04:57   other clients:
020 26/01/2009 23:04:57 setsockopt failed: Socket operation on non- 
socket
021 26/01/2009 23:04:57 Making connection to client on host 127.0.0.1  
port 24832
022 26/01/2009 23:04:57   other clients:
023 26/01/2009 23:04:57 macosxCG_callback: register
024 26/01/2009 23:04:57 reverse_connect: 127.0.0.1:24832/127.0.0.1 OK
025 26/01/2009 23:04:57 reverse_connect: turning on auth for 127.0.0.1
026 26/01/2009 23:04:57 Client Protocol Version 3.3
027 26/01/2009 23:04:57 Protocol version sent 3.3, using 3.3
028 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring  
unsupported encoding type Enc(0x05000000)
029 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring  
unsupported encoding type Enc(0x017F0000)
030 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring  
unsupported encoding type Enc(0x00010000)
031 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring  
unsupported encoding type Enc(0x00050000)
032 26/01/2009 23:04:58 rfbProcessClientNormalMessage: ignoring  
unsupported encoding type Enc(0x00040000)
033 26/01/2009 23:04:58 Defaulting to raw encoding for client 127.0.0.1
034 26/01/2009 23:04:58 Pixel format for client 127.0.0.1:
035 26/01/2009 23:04:58   0 bpp, depth 0, little endian
036 26/01/2009 23:04:58   uses a colour map (not true colour).
037 26/01/2009 23:04:58 rfbSetTranslateFunction: client bits per pixel  
not 8, 16 or 32
038 26/01/2009 23:04:58 client_count: 0
039 26/01/2009 23:04:58 inetd viewer exited.
040 26/01/2009 23:04:58 deleted 40 tile_row polling images.
041 26/01/2009 23:04:58 macosxCG_callback: unregister
Traceback (most recent call last):
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/hubs/twistedr.py", line 246, in run
     self.mainLoop(reactor)
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/hubs/twistedr.py", line 264, in mainLoop
     reactor.runUntilCurrent()
--- <exception caught here> ---
   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
     call.func(*call.args, **call.kw)
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/coros.py", line 375, in _do_unlock
     self._do_acquire()
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/coros.py", line 385, in _do_acquire
     waiter.switch()
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/proc.py", line 503, in _run
     result = function(*args, **kwargs)
   File "/Users/adigeo/work/sip_desktop_shariDisconnecting SIP session  
to "Mihaela G." <sip:mihaela at georgescu.info>
Disconnected SIP session to "Mihaela G." <sip:mihaela at georgescu.info>
ng-0.04/vncserver.py", line 55, in sock2sock
     data = data[sock2.send(data):]
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/greenio.py", line 82, in send
     count = send_func(self.fd, data)
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/greenio.py", line 112, in socket_send
     return descriptor.send(data)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/socket.py", line 141, in _dummy
     raise error(EBADF, 'Bad file descriptor')
socket.error: (9, 'Bad file descriptor')
Traceback (most recent call last):
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/hubs/twistedr.py", line 246, in run
     self.mainLoop(reactor)
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/hubs/twistedr.py", line 264, in mainLoop
     reactor.runUntilCurrent()
--- <exception caught here> ---
   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
     call.func(*call.args, **call.kw)
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/proc.py", line 391, in _do_send
     link(self.name, tag, value)
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/proc.py", line 151, in _fire
     self._fire_exception(source, result)
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/proc.py", line 171, in _fire_exception
     self.listener.throw(getLinkedFailed(source, *throw_args))
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/proc.py", line 520, in throw
     self.greenlet.throw(*throw_args)
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/proc.py", line 503, in _run
     result = function(*args, **kwargs)
   File "/Users/adigeo/work/sip_desktop_sharing-0.04/vncserver.py",  
line 68, in sock2sock
     sock2.close()
   File "./sip_desktop_sharing", line 109, in close
     return self.session.end()
   File "/Library/Python/2.5/site-packages/pypjua/clients/ 
msrpsession.py", line 108, in end
     self.sip.shutdown()
   File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py",  
line 463, in shutdown
     self.end(*args, **kwargs)
   File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py",  
line 453, in end
     params = self.skip_to_event('DISCONNECTED')[1]
   File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py",  
line 175, in skip_to_event
     xxx = self._wait()
   File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py",  
line 148, in _wait
     return q.wait()
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/coros.py", line 1034, in wait
     self.sem.acquire()
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/coros.py", line 302, in acquire
     api.get_hub().switch()
   File "/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/ 
eventlet/hubs/twistedr.py", line 227, in switch
     return self.greenlet.switch()
eventlet.proc.LinkedFailed: '<function sock2sock at 0x30daaf0>' failed  
with error
"Mihaela G." <sip:mihaela at georgescu.info>>

On Jan 26, 2009, at 10:41 PM, Willem Toorop wrote:

> Hi All,
>
> Attached version 0.04 :)
> The usage is now as follows:
>
> Without target address:
> ./sip_desktop_sharing [--auto-answer <list of sip addresses | all>]
>
> With target address:
> ./sip_desktop_sharing [--desktop <remote | local>] user at domain.com
>
> 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.
> Offers to share the remote desktop will always require manual  
> permission.
>
> 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.
> The <Enter>, <Backspace> and <Tab> and Control- keys are now working.
> Multiple sessions from different callers can be set up with a called  
> party.
> The called parties desktop will be shared between all those callers.
> I have a listening sip_desktop_sharing session, open for testing  
> purposes.
> You can reach it with:
>
> ./sip_desktop_sharing 2233361709 at sip2sip.info
>
>
> I've added three lines to site-packages/pypjua/clients/config.py to  
> allow for extra options for a specific program.
>
> On line 81 i changed
>
> def parse_options(usage, description):
>
> in
>
> def parse_options(usage, description, extra_options = ()):
>
> On line 129, just before
>
>     options, args = parser.parse_args()
>
> I added:
>
>     for extra_option in extra_options:
>         parser.add_option(*extra_option[0], **extra_option[1])
>
> 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.
>
> Good luck sip_desktop_sharing !
> Cheers,
>
> Willem
>
> 2009/1/26 Adrian Georgescu <ag at ag-projects.com>
> Hi Willem,
>
> Could you improve the program  as follows:
>
> 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
> 2. Use --desktop argument instead of request, the values can be  
> local or remote, default is remote
>
> Adrian
>
> On Jan 26, 2009, at 12:36 PM, Willem Toorop wrote:
>
>> Hi All,
>>
>> Attached version 0.03 of sip_desktop_sharing. The usage is:
>>
>> ./sip_desktop_sharing [target-user at target-domain.com] [request]
>>
>> 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.
>>
>> There are still many bugs.
>> When SDP negotiation fails, the caller isn't notified.
>> Some keys still need to be translated properly from pygame to rfb  
>> key events. Notably the <enter> key doesn't work yet :)
>> Sometimes the session just stops for several seconds (maybe the 30  
>> seconds MSRP-Relay timeout?)
>> I have a small desktop which I share using sip_desktop_sharing  
>> which auto-accepts desktop requests for testing purposes.
>> You can connect to it with:
>>
>> ./sip_desktop_sharing 2233361709 request
>>
>> Let me know if this version works for you.
>> Cheers,
>>
>> Willem
>>
>>
>> < 
>> sip_desktop_sharing 
>> -0.03.tgz>_______________________________________________
>> SIPclient mailing list
>> SIPclient at lists.ag-projects.com
>> http://lists.ag-projects.com/mailman/listinfo/sipclient
>
>
> <sip_desktop_sharing-0.04.tgz>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20090126/ff985209/attachment-0001.html>


More information about the SIPBeyondVoIP mailing list