<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi… <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I wrote mycontacts ( <a
href="http://talk.maemo.org/showthread.php?t=57162">http://talk.maemo.org/showthread.php?t=57162</a>
) for maemo5 (n900) and until today thought had figure out just enough of
telepathy to initiate “calls”. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>To start an audio call I used: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<pre><font size=2 color=silver face="Courier New"><span style='font-size:10.0pt;
color:silver'> </span></font><font color=purple><span
style='color:purple'>QVariantMap</span></font><font color=silver><span
style='color:silver'> </span></font>request<font color=black><span
style='color:black'>;</span></font><o:p></o:p></pre><pre style='-qt-block-indent:0'><font
size=2 color=silver face="Courier New"><span style='font-size:10.0pt;
color:silver'> </span></font><font color=green><span
style='color:green'>//</span></font><font color=silver><span style='color:silver'> </span></font><font
color=green><span style='color:green'>audio</span></font><font color=silver><span
style='color:silver'> </span></font><font color=green><span style='color:green'>works</span></font><o:p></o:p></pre><pre
style='-qt-block-indent:0'><font size=2 color=silver face="Courier New"><span
style='font-size:10.0pt;color:silver'> </span></font>request<font
color=black><span style='color:black'>.</span></font>insert<font color=black><span
style='color:black'>(</span></font><font color=purple><span style='color:purple'>QLatin1String</span></font><font
color=black><span style='color:black'>(</span></font>TELEPATHY_INTERFACE_CHANNEL<font
color=silver><span style='color:silver'> </span></font><font color=green><span
style='color:green'>".ChannelType"</span></font><font color=black><span
style='color:black'>),</span></font><font color=silver><span style='color:silver'> </span></font>TELEPATHY_INTERFACE_CHANNEL_TYPE_STREAMED_MEDIA<font
color=black><span style='color:black'>);</span></font><o:p></o:p></pre><pre
style='-qt-block-indent:0'><font size=2 color=silver face="Courier New"><span
style='font-size:10.0pt;color:silver'> </span></font>request<font
color=black><span style='color:black'>.</span></font>insert<font color=black><span
style='color:black'>(</span></font><font color=purple><span style='color:purple'>QLatin1String</span></font><font
color=black><span style='color:black'>(</span></font>TELEPATHY_INTERFACE_CHANNEL<font
color=silver><span style='color:silver'> </span></font><font color=green><span
style='color:green'>".TargetHandleType"</span></font><font
color=black><span style='color:black'>),</span></font><font color=silver><span
style='color:silver'> </span></font><font color=black><span style='color:black'>(</span></font>uint<font
color=black><span style='color:black'>)</span></font><font color=silver><span
style='color:silver'> </span></font>Tp<font color=black><span style='color:
black'>::</span></font>HandleTypeContact<font color=black><span
style='color:black'>);</span></font><o:p></o:p></pre><pre style='-qt-block-indent:0'><font
size=2 color=silver face="Courier New"><span style='font-size:10.0pt;
color:silver'> </span></font>request<font color=black><span
style='color:black'>.</span></font>insert<font color=black><span
style='color:black'>(</span></font><font color=purple><span style='color:purple'>QLatin1String</span></font><font
color=black><span style='color:black'>(</span></font>TELEPATHY_INTERFACE_CHANNEL<font
color=silver><span style='color:silver'> </span></font><font color=green><span
style='color:green'>".TargetID"</span></font><font color=black><span
style='color:black'>),</span></font><font color=silver><span style='color:silver'> </span></font>account<font
color=black><span style='color:black'>);</span></font><o:p></o:p></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><font size=2 color=silver
face="Courier New"><span style='font-size:10.0pt;color:silver'> </span></font>request<font
color=black><span style='color:black'>.</span></font>insert<font color=black><span
style='color:black'>(</span></font><font color=purple><span style='color:purple'>QLatin1String</span></font><font
color=black><span style='color:black'>(</span></font>TELEPATHY_INTERFACE_CHANNEL<font
color=silver><span style='color:silver'> </span></font><font color=green><span
style='color:green'>".Type.StreamedMedia.InitialAudio"</span></font><font
color=black><span style='color:black'>),</span></font><font color=silver><span
style='color:silver'> </span></font><font color=olive><span style='color:olive'>true</span></font><font
color=black><span style='color:black'>);</span></font><o:p></o:p></pre>
<p class=MsoNormal><font size=3 color=silver face="Times New Roman"><span
style='font-size:12.0pt;color:silver'> </span></font><font
color=olive><span style='color:olive'>return</span></font><font color=silver><span
style='color:silver'> </span></font>account<font color=black><span
style='color:black'>.</span></font>data<font color=black><span
style='color:black'>()-></span></font>ensureChannel<font color=black><span
style='color:black'>(</span></font>request<font color=black><span
style='color:black'>);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>To initiate a video call I added to the
previous code: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>request<font color=black><span style='color:black'>.</span></font>insert<font
color=black><span style='color:black'>(</span></font><font color=purple><span
style='color:purple'>QLatin1String</span></font><font color=black><span
style='color:black'>(</span></font>TELEPATHY_INTERFACE_CHANNEL<font
color=silver><span style='color:silver'> </span></font><font color=green><span
style='color:green'>".Type.StreamedMedia.InitialVideo"</span></font><font
color=black><span style='color:black'>),</span></font><font color=silver><span
style='color:silver'> </span></font><font color=olive><span style='color:olive'>true</span></font><font
color=black><span style='color:black'>);<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>…. and assumed everything was fine. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>With the code above I am able to successfully
initiate audio calls with “cellular” (tel/ring), sip and TOR. Also,
I am able to place audio calls with skype to “skype accounts” and apparently
was working for skype video calls…. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>But today a user, “Uvatbc”,
pointed out to me that he couldn’t use the application to call phone
numbers using spirit/skype (apparently I had never tried myself). After few (or
several) e-mails we figured out that after removing “InitialAudio” we
were also able to place calls to phone numbers using spirit.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>After checking the documentation (<a
href="http://telepathy.freedesktop.org/spec/org.freedesktop.Telepathy.Channel.Type.StreamedMedia.html#org.freedesktop.Telepathy.Channel.Type.StreamedMedia.InitialAudio">http://telepathy.freedesktop.org/spec/org.freedesktop.Telepathy.Channel.Type.StreamedMedia.html#org.freedesktop.Telepathy.Channel.Type.StreamedMedia.InitialAudio</a>)
he found that “InitialAudio” and “InitialVideo” SHOULD
be ignored by the connection manager if passed to ensureChannel.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>They are not ignored by spirit/skype at
all and oddly enough they seem to affect how the channel was created just as
one would expect/hope (initialvideo=video) - but after apparently starting as
expected it fails! <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>When InitialAudio is included the call to
a skype account (e.g. fcrochik) works fine; a call to a phone number (e.g. +155511223344)
will fail with “unable to establish connection” message after apparently
starting to dial. When InitialVideo is included we get the skype video call window
to show up but it fails before the connection is completed. It is clear that
InitialVideo and InitialAudio are not ignored at all. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>So the questions are:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>In order to start an audio call should I
just remove the “InitialAudio” line? It seems to work for every
case…. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>How should I proceed to start a video
call? Can I do that using ensureChannel? (I have not tried to remove
InitialAudio but leave InitialVideo… it would not make sense according to
the documentation but would not surprise me if it works).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>I would imagine that spirit/skype NOT ignoring
the InitialAudio and InitialVideo is considered a bug but don’t have any
idea where to report. Should I report anywhere?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>Thanks in advance,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>Felipe Crochik<o:p></o:p></span></font></p>
</div>
</body>
</html>