<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Willem,<div><br></div><div>As this is probably the first time a SIP session for desktop sharing has been successfully negotiated, I paste it here. What a historical moment :-)</div><div><br></div><div>adigeo@ag-imac3:~/work/sipsimpleclient/scripts/sip_desktop_sharing-0.02$./sip_desktop_sharing -s -a umts <a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a></div><div><div>Accounts available: 'alice', 'bob', 'ew', 'mrg', 'pbx', 's', 'tf', 'ts', 'umts', 'umts_test', 'unet', 'unet_test', 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" --> 81.23.228.129, 85.17.186.7, 81.23.228.150</div><div>SENDING: Packet 1, +0:00:00</div><div>2009-01-25 17:20:19.442831: 192.168.1.6:51200 --> 81.23.228.150:5060</div><div><br></div><div>SENDING: Packet 4, +0:00:00.033663</div><div>2009-01-25 17:20:19.476494: 192.168.1.6:51200 --> 81.23.228.150:5060</div><div>INVITE <a href="sip:ag@ag-projects.com">sip:ag@ag-projects.com</a> SIP/2.0</div><div>Via: SIP/2.0/UDP 192.168.1.6:51200;rport;branch=z9hG4bKPjGgltTGJYmVGp19isKjblno5D2pCOheHj</div><div>Max-Forwards: 70</div><div>From: "Adi UMTS" <<a href="sip:adi@umts.ro">sip:adi@umts.ro</a>>;tag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq</div><div>To: <a href="sip:ag@ag-projects.com">sip:ag@ag-projects.com</a></div><div>Contact: <<a href="sip:mG1yFYcaiK@192.168.1.6:51200;transport=udp">sip:mG1yFYcaiK@192.168.1.6:51200;transport=udp</a>></div><div>Call-ID: X7ZPG0.2LCXywxWuqlwF98BIu-k-59cs</div><div>CSeq: 24803 INVITE</div><div>Route: <<a href="sip:81.23.228.150:5060;lr">sip:81.23.228.150:5060;lr</a>></div><div>Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE</div><div>Supported: 100rel</div><div>User-Agent: ag-projects/sipclient-0.4.0-pjsip-1.0.1-r2427</div><div>Proxy-Authorization: Digest username="adi", realm="umts.ro", nonce="497c9161af58e016ac681ff1b4da9c5c1cf1d20a", uri="<a href="sip:ag@ag-projects.com">sip:ag@ag-projects.com</a>", response="13e46b215e3c0dd35017cf722311f33f"</div><div>Content-Type: application/sdp</div><div>Content-Length:   281</div><div><br></div><div>v=0</div><div>o=- 3441889219 3441889219 IN IP4 192.168.1.6</div><div>s= </div><div>c=IN IP4 192.168.1.6</div><div>t=0 0</div><div>m=application 12345 TCP/TLS/MSRP/RFB *</div><div>a=path:msrps://192.168.1.6:12345/lieKZsC2c7sB;tcp</div><div>a=accept-types:message/cpim application/x-rfb</div><div>a=accept-wrapped-types:application/x-rfb</div><div>a=setup:active</div><div>RECEIVED: Packet 5, +0:00:00.060474</div><div>2009-01-25 17:20:19.503305: 81.23.228.150:5060 --> 192.168.1.6:51200</div><div>SIP/2.0 100 Trying</div><div>Via: SIP/2.0/UDP 192.168.1.6:51200;rport=51200;branch=z9hG4bKPjGgltTGJYmVGp19isKjblno5D2pCOheHj;received=80.101.96.20</div><div>From: "Adi UMTS" <<a href="sip:adi@umts.ro">sip:adi@umts.ro</a>>;tag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq</div><div>To: <a href="sip:ag@ag-projects.com">sip:ag@ag-projects.com</a></div><div>Call-ID: X7ZPG0.2LCXywxWuqlwF98BIu-k-59cs</div><div>CSeq: 24803 INVITE</div><div>Server: SIP Thor on OpenSIPS XS 1.4.4</div><div>Content-Length: 0</div><div><br></div><div>RECEIVED: Packet 8, +0:00:01.427882</div><div>2009-01-25 17:20:20.870713: 81.23.228.150:5060 --> 192.168.1.6:51200</div><div>SIP/2.0 200 OK</div><div>Via: SIP/2.0/UDP 192.168.1.6:51200;rport=51200;received=80.101.96.20;branch=z9hG4bKPjGgltTGJYmVGp19isKjblno5D2pCOheHj</div><div>Record-Route: <<a href="sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.406086e5">sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.406086e5</a>></div><div>Record-Route: <<a href="sip:85.17.186.7;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.89412b75">sip:85.17.186.7;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.89412b75</a>></div><div>Record-Route: <<a href="sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.306086e5">sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.306086e5</a>></div><div>Call-ID: X7ZPG0.2LCXywxWuqlwF98BIu-k-59cs</div><div>From: "Adi UMTS" <<a href="sip:adi@umts.ro">sip:adi@umts.ro</a>>;tag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq</div><div>To: <<a href="sip:ag@ag-projects.com">sip:ag@ag-projects.com</a>>;tag=IWFcJYiESuJtw6d4XVALjhigYL509eJM</div><div>CSeq: 24803 INVITE</div><div>Contact: <<a href="sip:0MimP0CN7g@80.101.96.20:56450">sip:0MimP0CN7g@80.101.96.20:56450</a>></div><div>Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE</div><div>Supported: 100rel</div><div>User-Agent: ag-projects/sipclient-0.4.0-pjsip-1.0.1-r2427</div><div>Content-Type: application/sdp</div><div>Content-Length:   390</div><div><br></div><div>v=0</div><div>o=- 3441889220 3441889221 IN IP4 192.168.1.128</div><div>s= </div><div>c=IN IP4 192.168.1.128</div><div>t=0 0</div><div>m=application 51613 TCP/TLS/MSRP/RFB *</div><div>a=path:msrps://node03.dns-hosting.info:2855/RKixno2I87MNr3qUxI3GBjEyMzI5MDA0MjAuNTczOjgwLjEwMS45Ni4yMA==;tcp msrps://192.168.1.128:51613/BnKumA450yCv;tcp</div><div>a=accept-types:message/cpim application/x-rfb</div><div>a=accept-wrapped-types:application/x-rfb</div><div>a=setup:passive</div><div>Connecting SIP session to <a href="sip:ag@ag-projects.com">sip:ag@ag-projects.com</a></div><div>SENDING: Packet 9, +0:00:01.428346</div><div>2009-01-25 17:20:20.871177: 192.168.1.6:51200 --> 81.23.228.150:5060</div><div>ACK <a href="sip:0MimP0CN7g@80.101.96.20:56450">sip:0MimP0CN7g@80.101.96.20:56450</a> SIP/2.0</div><div>Via: SIP/2.0/UDP 192.168.1.6:51200;rport;branch=z9hG4bKPjAIH2rmzNJMrNsba1UqqMq6tRBror544g</div><div>Max-Forwards: 70</div><div>From: "Adi UMTS" <<a href="sip:adi@umts.ro">sip:adi@umts.ro</a>>;tag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq</div><div>To: <a href="sip:ag@ag-projects.com;tag=IWFcJYiESuJtw6d4XVALjhigYL509eJM">sip:ag@ag-projects.com;tag=IWFcJYiESuJtw6d4XVALjhigYL509eJM</a></div><div>Call-ID: X7ZPG0.2LCXywxWuqlwF98BIu-k-59cs</div><div>CSeq: 24803 ACK</div><div>Route: <<a href="sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.306086e5">sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.306086e5</a>></div><div>Route: <<a href="sip:85.17.186.7;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.89412b75">sip:85.17.186.7;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.89412b75</a>></div><div>Route: <<a href="sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.406086e5">sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.406086e5</a>></div><div>Content-Length:  0</div><div><br></div><div>Confirmed SIP session to <a href="sip:ag@ag-projects.com">sip:ag@ag-projects.com</a></div><div><br></div><div>Now after SIP and MSRP session has been successfully established, things did not work well VNC wise on my Mac however, the  vnc clients crashed.  I have no Linux system around me so I still check the compatibility between vncviewer.py and x11vnc serev on my Mac before coming back with more info..</div><div> </div><div>Adrian</div><div><br></div><div><br></div></div><div><div><div><div>On Jan 25, 2009, at 3:15 PM, Willem Toorop wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Adrian,<br><br>As requested here you have an alternative clientconfig.py for in site-packages/pypjua/clients . <br>The get_path function in it tries several alternatives and returns the one that exists. First it checks ../share/sipclient (as in the original get_path), then it tries to find "sip_register" and tries the data-directory  ../share/sipclient relatively from the place it finds sip_register in. Then it tries if the requested file or dir is in the current directory, then if it is in /usr/share/sipclient, and then if it is in /usr/local/share/sipclient. <br> To find sip_register in a system independent way, it makes use of the python "which" library. That library is not in standard Ubuntu. I've also attached that. In the current version of clientconfig.py it expects which.py to be in the same directory as clientconfig.py.<br> <br>I've also attached a start with sip_desktop_sharing. It doesn't use the console yet. You can try it calling me, as I suspect that x11vnc is not working on Mac OS-X. sip_desktop_sharing expects to find clientconfig.py and which.py in the same directory.<br> <br>So try it with ./sip_desktop_sharing <a href="mailto:2233361709@sip2sip.info">2233361709@sip2sip.info</a><br>To call me.<br><br>Adrian, i don't know how to get more updated then I already are. I've done "hg pull" and "hg update" and "sudo python setup.py install" in eventlet_twisted, "darcs pull" and "sudo python setup.py install" in python-msrplib, python-xcaplib and sipsimpleclient.<br> The new sip_im_session (the one i sent seperately) works fine with me.<br><br>The vncviewer has very little graphical API dependencies. Any API which allows pixmaps to be written to area's on a canvas is fine. The only other thing it uses pygame for, is keyboard and mouse events. Pygame is thus easlily replaced by another system (did you want to use Qt?)<br> <br>B.t.w. on Ubuntu i just had to do "sudo apt-get install pygame" to get pygame.<br><br>Good look,<br><br>Willem<br><br><br><div class="gmail_quote">2009/1/25 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="">No, because the wav files are not found (despite your advise, I could not make it to work) and you are using an older version of sipclient that even if wav files are found it will not work. Try get the latest changes from darcs and mercurial and port your app to how  sip_im_session works.  These should do it, I hope  and we could hopefully test it !<div> <br><div><div>I had to do a lot of manual installs on Mac to support the SDL framework and pygame, so this parts I could work it out without instructions.</div><div><br></div></div><font color="#888888"><div>Adrian</div></font><div> <div></div><div class="Wj3C7c"><div><br></div><div><br><div><div> </div><div><div><div>On Jan 25, 2009, at 1:07 PM, Willem Toorop wrote:</div><br><blockquote type="cite">Good idea! I'll try to make that! Does the new sip_im_session work for you at the moment?<br> <br><div class="gmail_quote">2009/1/25 Adrian Georgescu <span dir="ltr"><<a href="mailto:ag@ag-projects.com" target="_blank">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;"> Hi Willem,<br> <br> Should the time allow you, could you look at how sip_im_session works in the latest darcs version.<br> <br> For the same of simplicity I imagine having a single 'sip_desktop_sharing' command line tool. When you call it without an URI argument, it REGISTERs and waits for an incoming INVITE. If you start it with an URI you start an INVITE session to it.<br> <br> <br> Regards,<br><font color="#888888"> Adrian<br> <br> </font></blockquote></div><br></blockquote></div><br></div></div></div></div></div></div></div></blockquote></div><br> <span><clientconfig.pyc></span><span><sip_desktop_sharing></span><span><which.py></span><span><which-1.1.0.tgz></span></blockquote></div><br></div></div></body></html>