<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
Interesting issue ...<br>
<br>
If your asterisk serves as registrar, it stores the round trip time of
SIP "pings". You could uses this piece of info as chan_sip makes the
association between the INVITE and the Asterisk peer, to have your
codec selection.<br>
<br>
I understand / suspect that you would like to do this on the server
side to accomodate most of the UA but IMHO, this is not the most
efficent approach not the one which is consistent with the<br>
end to end networking philosophy underlying the SIP protocol (even
though I do not fully adhere to it).<br>
<br>
One question; why the latency would serve in the codec selection? IMHO
this is not the relevant parameter?<br>
<br>
In order to select a relevant codec, one needs to know<br>
<ul>
<li>The end to end bandwidth between the UAs that participate in <br>
</li>
<li>The processing power, capture and display size of each UA.<br>
</li>
</ul>
There is no direct way to determine this end to end so here is an
approach<br>
<ul>
<li>Asterisk needs to be modified to be more compliant with RFC 3264
and support multiple codec selection (we are currently dong this)</li>
<li>Asterisk needs to be modified to exchange video attribute
capacities: this is the purpose of the videocaps branch<br>
</li>
<li>Each UA do a download test to try to determine its available
bandwifth and properely negociate it with Asterisk. <br>
</li>
<li>During conversation, if the UA notice some packet loss (using
RTCP receiver reports sent by Asterisk) it should renegocation / reduce
its upstream bandwifth</li>
<li>If Asterisk notices packet loss from the UA, it should
renegociate the bandwith using the UPDATE primitive.<br>
</li>
</ul>
<br>
Emmanuel<br>
<br>
<br>
Juan Ignacio Jimenez Anguiano a écrit :
<blockquote
cite="mid:5f5cca8b0906021223s5687412y587aa28de03f2797@mail.gmail.com"
type="cite">Hi, I need to change some code of Asterisk. I want that
change to make possible a preliminary estimation of latency when
Asterisk receives an INVITE with SDP description to iniciate a session.<br>
<br>
This estimation will be used to choose the most appropiated parameters
for a determinated video codec ( i suppose that i know what
client-program is being used so I know what codecs are supported).
These parameters could be, for example, the resolution or the frame
rate of video codec.<br>
<br>
Once the new parameters are been selected, the SDP description must be
modified properly.<br>
Finally, an INVITE with the modified SDP description will be sent to
the destination,<br>
<br>
<br>
For simplicity:<br>
<br>
I know what client is used so I know what videocodecs are resolution
supported. In addition, i suppose that latency can be measure using
"pings". <br clear="all">
<br>
So, any ideas to face this issue?<br>
<br>
Thanks,<br>
-- <br>
Juan I. Jiménez Anguiano<br>
Telecommunication Engineer.<br>
·························································································<br>
Dep. Sistemas y Automática<br>
Área de Telemática<br>
Escuela Superior de Ingenieros (Universidad de Sevilla)<br>
·························································································<br>
C/ Camino de los Descubrimientos, s/n; 41092-Sevilla (SPAIN)<br>
e-mail: <a moz-do-not-send="true"
href="mailto:juanjimenez@trajano.us.es" target="_blank">juanjimenez@trajano.us.es</a><br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a>--
asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-video">http://lists.digium.com/mailman/listinfo/asterisk-video</a></pre>
</blockquote>
<br>
</body>
</html>