[SIP SIMPLE client] sip_desktop_sharing script
Adrian Georgescu
ag at ag-projects.com
Sun Jan 25 17:29:59 CET 2009
Hi Willem,
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 :-)
adigeo at ag-imac3:~/work/sipsimpleclient/scripts/
sip_desktop_sharing-0.02$./sip_desktop_sharing -s -a umts ag at ag-projects.com
Accounts available: 'alice', 'bob', 'ew', 'mrg', 'pbx', 's', 'tf',
'ts', 'umts', 'umts_test', 'unet', 'unet_test', 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" --> 81.23.228.129,
85.17.186.7, 81.23.228.150
SENDING: Packet 1, +0:00:00
2009-01-25 17:20:19.442831: 192.168.1.6:51200 --> 81.23.228.150:5060
SENDING: Packet 4, +0:00:00.033663
2009-01-25 17:20:19.476494: 192.168.1.6:51200 --> 81.23.228.150:5060
INVITE sip:ag at ag-projects.com SIP/2.0
Via: SIP/2.0/UDP
192.168.1.6:51200;rport;branch=z9hG4bKPjGgltTGJYmVGp19isKjblno5D2pCOheHj
Max-Forwards: 70
From: "Adi UMTS" <sip:adi at umts.ro>;tag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq
To: sip:ag at ag-projects.com
Contact: <sip:mG1yFYcaiK at 192.168.1.6:51200;transport=udp>
Call-ID: X7ZPG0.2LCXywxWuqlwF98BIu-k-59cs
CSeq: 24803 INVITE
Route: <sip:81.23.228.150:5060;lr>
Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE,
MESSAGE
Supported: 100rel
User-Agent: ag-projects/sipclient-0.4.0-pjsip-1.0.1-r2427
Proxy-Authorization: Digest username="adi", realm="umts.ro",
nonce="497c9161af58e016ac681ff1b4da9c5c1cf1d20a", uri="sip:ag at ag-projects.com
", response="13e46b215e3c0dd35017cf722311f33f"
Content-Type: application/sdp
Content-Length: 281
v=0
o=- 3441889219 3441889219 IN IP4 192.168.1.6
s=
c=IN IP4 192.168.1.6
t=0 0
m=application 12345 TCP/TLS/MSRP/RFB *
a=path:msrps://192.168.1.6:12345/lieKZsC2c7sB;tcp
a=accept-types:message/cpim application/x-rfb
a=accept-wrapped-types:application/x-rfb
a=setup:active
RECEIVED: Packet 5, +0:00:00.060474
2009-01-25 17:20:19.503305: 81.23.228.150:5060 --> 192.168.1.6:51200
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
192.168.1.6
:
51200
;rport
=
51200
;branch=z9hG4bKPjGgltTGJYmVGp19isKjblno5D2pCOheHj;received=80.101.96.20
From: "Adi UMTS" <sip:adi at umts.ro>;tag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq
To: sip:ag at ag-projects.com
Call-ID: X7ZPG0.2LCXywxWuqlwF98BIu-k-59cs
CSeq: 24803 INVITE
Server: SIP Thor on OpenSIPS XS 1.4.4
Content-Length: 0
RECEIVED: Packet 8, +0:00:01.427882
2009-01-25 17:20:20.870713: 81.23.228.150:5060 --> 192.168.1.6:51200
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.1.6
:
51200
;rport
=
51200
;received=80.101.96.20;branch=z9hG4bKPjGgltTGJYmVGp19isKjblno5D2pCOheHj
Record-Route: <sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.406086e5
>
Record-Route: <sip:85.17.186.7;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.89412b75
>
Record-Route: <sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.306086e5
>
Call-ID: X7ZPG0.2LCXywxWuqlwF98BIu-k-59cs
From: "Adi UMTS" <sip:adi at umts.ro>;tag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq
To: <sip:ag at ag-projects.com>;tag=IWFcJYiESuJtw6d4XVALjhigYL509eJM
CSeq: 24803 INVITE
Contact: <sip:0MimP0CN7g at 80.101.96.20:56450>
Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE,
MESSAGE
Supported: 100rel
User-Agent: ag-projects/sipclient-0.4.0-pjsip-1.0.1-r2427
Content-Type: application/sdp
Content-Length: 390
v=0
o=- 3441889220 3441889221 IN IP4 192.168.1.128
s=
c=IN IP4 192.168.1.128
t=0 0
m=application 51613 TCP/TLS/MSRP/RFB *
a=path:msrps://node03.dns-hosting.info:2855/
RKixno2I87MNr3qUxI3GBjEyMzI5MDA0MjAuNTczOjgwLjEwMS45Ni4yMA==;tcp
msrps://192.168.1.128:51613/BnKumA450yCv;tcp
a=accept-types:message/cpim application/x-rfb
a=accept-wrapped-types:application/x-rfb
a=setup:passive
Connecting SIP session to sip:ag at ag-projects.com
SENDING: Packet 9, +0:00:01.428346
2009-01-25 17:20:20.871177: 192.168.1.6:51200 --> 81.23.228.150:5060
ACK sip:0MimP0CN7g at 80.101.96.20:56450 SIP/2.0
Via: SIP/2.0/UDP
192.168.1.6:51200;rport;branch=z9hG4bKPjAIH2rmzNJMrNsba1UqqMq6tRBror544g
Max-Forwards: 70
From: "Adi UMTS" <sip:adi at umts.ro>;tag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq
To: sip:ag at ag-projects.com;tag=IWFcJYiESuJtw6d4XVALjhigYL509eJM
Call-ID: X7ZPG0.2LCXywxWuqlwF98BIu-k-59cs
CSeq: 24803 ACK
Route: <sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.306086e5
>
Route: <sip:85.17.186.7;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.89412b75
>
Route: <sip:81.23.228.150;lr;ftag=N1XG99JS0AjwsRo-MY12f5.r5.fXM1qq;did=9ab.406086e5
>
Content-Length: 0
Confirmed SIP session to sip:ag at ag-projects.com
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..
Adrian
On Jan 25, 2009, at 3:15 PM, Willem Toorop wrote:
> Hi Adrian,
>
> As requested here you have an alternative clientconfig.py for in
> site-packages/pypjua/clients .
> 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.
> 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.
>
> 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.
>
> So try it with ./sip_desktop_sharing 2233361709 at sip2sip.info
> To call me.
>
> 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.
> The new sip_im_session (the one i sent seperately) works fine with me.
>
> 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?)
>
> B.t.w. on Ubuntu i just had to do "sudo apt-get install pygame" to
> get pygame.
>
> Good look,
>
> Willem
>
>
> 2009/1/25 Adrian Georgescu <ag at ag-projects.com>
> 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 !
>
> 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.
>
> Adrian
>
>
>
> On Jan 25, 2009, at 1:07 PM, Willem Toorop wrote:
>
>> Good idea! I'll try to make that! Does the new sip_im_session work
>> for you at the moment?
>>
>> 2009/1/25 Adrian Georgescu <ag at ag-projects.com>
>> Hi Willem,
>>
>> Should the time allow you, could you look at how sip_im_session
>> works in the latest darcs version.
>>
>> 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.
>>
>>
>> Regards,
>> Adrian
>>
>>
>
>
> <clientconfig.pyc><sip_desktop_sharing><which.py><which-1.1.0.tgz>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipclient/attachments/20090125/1b501464/attachment-0001.htm>
More information about the SIPclient
mailing list