No subject


Mon Jan 19 17:43:08 CET 2009


../share/sipclient/ for the wav files. So if you unpacked the tgz in
/home/adrian/desktop_sharing/ and thus the programs are in
/home/adreian/desktop_sharing/sip_desktop_sharing-0.02/ you can make a
symbolic link with:

ln -s /usr/share /home/adreian/desktop_sharing/share

Good luck,

Willem

2009/1/25 Adrian Georgescu <ag at ag-projects.com>

> Hi Willem,
>
> I am getting an exception on both sides when I try to establish the desktop
> sharing session scripts, it seems that the programs cannot find the ringing
> wav files to play.
>
> Initiating SIP session from "Adrian G." <sip:31208005169 at ag-projects.com>
> to sip:ag at ag-projects.com through proxy 85.17.186.7:5060...
> Early SIP session to sip:ag at ag-projects.com (180 Ringing)
> Ringing from sip:31208005169 at 80.101.96.20:61385
> 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 503, in _run
>     result = function(*args, **kwargs)
>   File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py", line
> 257, in _run
>     self.play_wav(*self.args, **self.kwargs)
>   File "core.ua.pxi", line 405, in pypjua.core.PJSIPUA.play_wav_file
> (pypjua/core.c:16132)
>
>   File "core.sound.pxi", line 260, in pypjua.core.WaveFile.__cinit__
> (pypjua/core.c:8411)
>
> pypjua.core.PJSIPError: Could not open WAV file: Not found (PJ_ENOTFOUND)
> Traceback (most recent call last):
>   File "./sip_offer_desktop", line 87, in <module>
>     main()
>   File "./sip_offer_desktop", line 72, in main
>     session = MSRPSession.invite(inv, msrp_connector,
> make_make_RFB_SDPMedia(desktop_request), ringer=ringer)
>   File "/Library/Python/2.5/site-packages/pypjua/clients/msrpsession.py",
> line 96, in invite
>     invite_response, msrp = invite(inv, msrp_connector, SDPMedia_factory,
> ringer)
>   File "/Library/Python/2.5/site-packages/pypjua/clients/msrpsession.py",
> line 46, in invite
>     invite_response = inv.invite(ringer=ringer)
>   File "/Library/Python/2.5/site-packages/pypjua/enginebuffer.py", line
> 436, in invite
>     event_name, params = 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: '<bound method Ringer._run of
> <pypjua.enginebuffer.Ringer instance at 0x2a06d78>>' failed with PJSIPError
>
> Regards,
> Adrian
>
> On Jan 24, 2009, at 11:46 PM, Willem Toorop wrote:
>
> Hi Adrian, Michiel, Ruud & Denis,
>
> Attached is a version that actually works quiet well. It is slow, but
> usable (less then a second response time). Cleanups are handled nicely (no
> crashing scripts) and they use the "m=application <port> TCP/TLS/MSRP/RFB *"
> media line in the SDP.
>
> While debugging packet order, going in and out, I noticed that sometimes an
> empty MSRP message is received, although the Byte-Range header indicates
> differently. Once those messages were filtered out, everything started
> working fine.
>
> Here is such a message:
>
> MSRP BnWVQ0OmGQBNgqMYT3KqvlYR SEND
> To-Path: msrps://192.168.178.33:38731/b4APciEdQfmw;tcp
> From-Path: msrps://
> node03.dns-hosting.info:2855/k5yd231nlUJOLUXKR1yz0DEyMzI4MzYwOTAuNjU5OjgyLjk1LjE0MS4xMjc=;tcpmsrps://
> node03.dns-hosting.info:2855/R0g1LsWuyTYghdQyDUIcOzEyMzI4MzYwODguNzI0OjgyLjk1LjE0MS4xMjc=;tcpmsrps://
> 192.168.178.33:38730/YFdsfYLisv1V;tcp
> Message-ID: vRlGOYQEyF
> Byte-Range: 1-42/42
> Content-Type: application/x-rfb
>
>
> -------BnWVQ0OmGQBNgqMYT3KqvlYR+
>
> The + on the end of the end-line<transaction id> indicates that more is
> coming, but in that case the Byte-Range should have been 1-*/42 (i think,
> because 1-1/42 would incidate one byte of data and 1-0/42 is just silly), or
> the message should not have been sent at all.
>
> So I was wrong thinking that the order of the messages was altered by
> MSRP-Relay. The garbage I saw in earlier versions where due to receiving
> those MSRP messages with no content; The socket connecting to the viewer was
> closed by them halfway in an update of several rectangles. When the
> connection was closed, the rectangles on the screen would be updated with
> data that was already in the buffer where the update data should have been
> loaded.
> MSRP-Relay is forwarding the messages in the order it received it in.
>
> Sorry about the confusion.
> Cheers,
>
> Willem
>
> <sip_desktop_sharing-0.02.tgz>
>
>
>
> _______________________________________________
> SIPclient mailing list
> SIPclient at lists.ag-projects.com
> http://lists.ag-projects.com/mailman/listinfo/sipclient
>
>

--0015175cba50bf6d6a0461493c0d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Adrian,<br><br>Yes, the sipsimpleclient library searches for those wavs =
relatively from the location of the client programs. I made a symbolic link=
 to /usr/share to overcome that.<br>From the location of the client program=
s, the library is looking in ../share/sipclient/ for the wav files. So if y=
ou unpacked the tgz in /home/adrian/desktop_sharing/ and thus the programs =
are in /home/adreian/desktop_sharing/sip_desktop_sharing-0.02/ you can make=
 a symbolic link with:<br>
<br>ln -s /usr/share /home/adreian/desktop_sharing/share<br><br>Good luck,<=
br><br>Willem<br><br><div class=3D"gmail_quote">2009/1/25 Adrian Georgescu =
<span dir=3D"ltr">&lt;<a href=3D"mailto:ag at ag-projects.com">ag at ag-projects.=
com</a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=3D"">H=
i Willem,<div><br></div><div><br></div><div>I am getting an exception on bo=
th sides when I try to establish the desktop sharing session scripts, it se=
ems that the programs cannot find the ringing wav files to play.&nbsp;</div=
>
<div><br></div><div>Initiating SIP session from &quot;Adrian G.&quot; &lt;<=
a>sip:31208005169 at ag-projects.com</a>&gt; to <a>sip:ag at ag-projects.com</a> =
through proxy 85.17.186.7:5060...</div><div><div>Early SIP session to <a>si=
p:ag at ag-projects.com</a> (180 Ringing)</div>
<div>Ringing from <a>sip:31208005169 at 80.101.96.20:61385</a></div><div>Trace=
back (most recent call last):</div><div>&nbsp;&nbsp;File &quot;/Library/Pyt=
hon/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py&q=
uot;, line 246, in run</div>
<div>&nbsp;&nbsp; &nbsp;self.mainLoop(reactor)</div><div>&nbsp;&nbsp;File &=
quot;/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/h=
ubs/twistedr.py&quot;, line 264, in mainLoop</div><div>&nbsp;&nbsp; &nbsp;r=
eactor.runUntilCurrent()</div><div>--- &lt;exception caught here&gt; ---</d=
iv>
<div>&nbsp;&nbsp;File &quot;/Library/Python/2.5/site-packages/Twisted-8.1.0=
-py2.5-macosx-10.5-i386.egg/twisted/internet/base.py&quot;, line 705, in ru=
nUntilCurrent</div><div>&nbsp;&nbsp; &nbsp;call.func(*call.args, **<a href=
=3D"http://call.kw" target=3D"_blank">call.kw</a>)</div>
<div>&nbsp;&nbsp;File &quot;/Library/Python/2.5/site-packages/eventlet-0.9p=
re-py2.5.egg/eventlet/proc.py&quot;, line 503, in _run</div><div>&nbsp;&nbs=
p; &nbsp;result =3D function(*args, **kwargs)</div><div>&nbsp;&nbsp;File &q=
uot;/Library/Python/2.5/site-packages/pypjua/enginebuffer.py&quot;, line 25=
7, in _run</div>
<div>&nbsp;&nbsp; &nbsp;self.play_wav(*self.args, **self.kwargs)</div><div>=
&nbsp;&nbsp;File &quot;core.ua.pxi&quot;, line 405, in pypjua.core.PJSIPUA.=
play_wav_file (pypjua/core.c:16132)</div><div>&nbsp;&nbsp; &nbsp;</div><div=
>&nbsp;&nbsp;File &quot;core.sound.pxi&quot;, line 260, in pypjua.core.Wave=
File.__cinit__ (pypjua/core.c:8411)</div>
<div>&nbsp;&nbsp; &nbsp;</div><div>pypjua.core.PJSIPError: Could not open W=
AV file: Not found (PJ_ENOTFOUND)</div><div>Traceback (most recent call las=
t):</div><div>&nbsp;&nbsp;File &quot;./sip_offer_desktop&quot;, line 87, in=
 &lt;module&gt;</div>
<div>&nbsp;&nbsp; &nbsp;main()</div><div>&nbsp;&nbsp;File &quot;./sip_offer=
_desktop&quot;, line 72, in main</div><div>&nbsp;&nbsp; &nbsp;session =3D M=
SRPSession.invite(inv, msrp_connector, make_make_RFB_SDPMedia(desktop_reque=
st), ringer=3Dringer)</div><div>&nbsp;&nbsp;File &quot;/Library/Python/2.5/=
site-packages/pypjua/clients/msrpsession.py&quot;, line 96, in invite</div>
<div>&nbsp;&nbsp; &nbsp;invite_response, msrp =3D invite(inv, msrp_connecto=
r, SDPMedia_factory, ringer)</div><div>&nbsp;&nbsp;File &quot;/Library/Pyth=
on/2.5/site-packages/pypjua/clients/msrpsession.py&quot;, line 46, in invit=
e</div><div>&nbsp;&nbsp; &nbsp;invite_response =3D inv.invite(ringer=3Dring=
er)</div>
<div>&nbsp;&nbsp;File &quot;/Library/Python/2.5/site-packages/pypjua/engine=
buffer.py&quot;, line 436, in invite</div><div>&nbsp;&nbsp; &nbsp;event_nam=
e, params =3D q.wait()</div><div>&nbsp;&nbsp;File &quot;/Library/Python/2.5=
/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros.py&quot;, line 1034=
, in wait</div>
<div>&nbsp;&nbsp; &nbsp;self.sem.acquire()</div><div>&nbsp;&nbsp;File &quot=
;/Library/Python/2.5/site-packages/eventlet-0.9pre-py2.5.egg/eventlet/coros=
.py&quot;, line 302, in acquire</div><div>&nbsp;&nbsp; &nbsp;api.get_hub().=
switch()</div><div>&nbsp;&nbsp;File &quot;/Library/Python/2.5/site-packages=
/eventlet-0.9pre-py2.5.egg/eventlet/hubs/twistedr.py&quot;, line 227, in sw=
itch</div>
<div>&nbsp;&nbsp; &nbsp;return self.greenlet.switch()</div><div>eventlet.pr=
oc.LinkedFailed: &#39;&lt;bound method Ringer._run of &lt;pypjua.enginebuff=
er.Ringer instance at 0x2a06d78&gt;&gt;&#39; failed with PJSIPError</div><d=
iv><br></div>
<div>Regards,</div></div><div>Adrian</div><div><br><div><div><div></div><di=
v class=3D"Wj3C7c"><div>On Jan 24, 2009, at 11:46 PM, Willem Toorop wrote:<=
/div><br></div></div><blockquote type=3D"cite"><div><div></div><div class=
=3D"Wj3C7c">
Hi Adrian, Michiel, Ruud &amp; Denis,<br><br>Attached is a version that act=
ually works quiet well. It is slow, but usable (less then a second response=
 time). Cleanups are handled nicely (no crashing scripts) and they use the =
&quot;m=3Dapplication &lt;port&gt; TCP/TLS/MSRP/RFB *&quot; media line in t=
he SDP.<br>
 <br>While debugging packet order, going in and out, I noticed that sometim=
es an empty MSRP message is received, although the Byte-Range header indica=
tes differently. Once those messages were filtered out, everything started =
working fine.<br>
 <br>Here is such a message:<br><br><font face=3D"courier new,monospace">MS=
RP BnWVQ0OmGQBNgqMYT3KqvlYR SEND<br>To-Path: msrps://<a href=3D"http://192.=
168.178.33:38731/b4APciEdQfmw;tcp" target=3D"_blank">192.168.178.33:38731/b=
4APciEdQfmw;tcp</a><br>
 From-Path: msrps://<a href=3D"http://node03.dns-hosting.info:2855/k5yd231n=
lUJOLUXKR1yz0DEyMzI4MzYwOTAuNjU5OjgyLjk1LjE0MS4xMjc=3D;tcp" target=3D"_blan=
k">node03.dns-hosting.info:2855/k5yd231nlUJOLUXKR1yz0DEyMzI4MzYwOTAuNjU5Ojg=
yLjk1LjE0MS4xMjc=3D;tcp</a> msrps://<a href=3D"http://node03.dns-hosting.in=
fo:2855/R0g1LsWuyTYghdQyDUIcOzEyMzI4MzYwODguNzI0OjgyLjk1LjE0MS4xMjc=3D;tcp"=
 target=3D"_blank">node03.dns-hosting.info:2855/R0g1LsWuyTYghdQyDUIcOzEyMzI=
4MzYwODguNzI0OjgyLjk1LjE0MS4xMjc=3D;tcp</a> msrps://<a href=3D"http://192.1=
68.178.33:38730/YFdsfYLisv1V;tcp" target=3D"_blank">192.168.178.33:38730/YF=
dsfYLisv1V;tcp</a><br>
 Message-ID: vRlGOYQEyF<br>Byte-Range: 1-42/42<br>Content-Type: application=
/x-rfb<br><br><br>-------BnWVQ0OmGQBNgqMYT3KqvlYR+<br></font><br>The + on t=
he end of the end-line&lt;transaction id&gt; indicates that more is coming,=
 but in that case the Byte-Range should have been 1-*/42 (i think, because =
1-1/42 would incidate one byte of data and 1-0/42 is just silly), or the me=
ssage should not have been sent at all.<br>
 <br>So I was wrong thinking that the order of the messages was altered by =
MSRP-Relay. The garbage I saw in earlier versions where due to receiving th=
ose MSRP messages with no content; The socket connecting to the viewer was =
closed by them halfway in an update of several rectangles. When the connect=
ion was closed, the rectangles on the screen would be updated with data tha=
t was already in the buffer where the update data should have been loaded.<=
br>
 MSRP-Relay is forwarding the messages in the order it received it in.<br><=
br>Sorry about the confusion.<br>Cheers,<br><br>Willem<br><br> </div></div>=
<span>&lt;sip_desktop_sharing-0.02.tgz&gt;</span></blockquote></div><br>
</div></div><br>_______________________________________________<br>
SIPclient mailing list<br>
<a href=3D"mailto:SIPclient at lists.ag-projects.com">SIPclient at lists.ag-proje=
cts.com</a><br>
<a href=3D"http://lists.ag-projects.com/mailman/listinfo/sipclient" target=
=3D"_blank">http://lists.ag-projects.com/mailman/listinfo/sipclient</a><br>
<br></blockquote></div><br>

--0015175cba50bf6d6a0461493c0d--



More information about the SIPBeyondVoIP mailing list